From 7dffe74f709be1d6cdced02c3c340dc1bfb8cee0 Mon Sep 17 00:00:00 2001 From: Stuart McLaren Date: Thu, 12 Dec 2024 16:43:08 +0000 Subject: [PATCH] Add "dataservices" to sdk This provides client bindings to /data-services/v1beta1/secrets This will allow creating a datasource for secrets. The datasource may be useful when adding a hypervisor server. --- ..._operations_get_response_escaped_items.go} | 0 ...caped_items_escaped_additional_details.go} | 0 ...ped_items_escaped_associated_resources.go} | 0 ...t_response_escaped_items_escaped_error.go} | 0 ..._response_escaped_items_escaped_groups.go} | 0 ...nse_escaped_items_escaped_log_messages.go} | 0 ..._response_escaped_items_escaped_parent.go} | 0 ..._escaped_items_escaped_recommendations.go} | 0 ...e_escaped_items_escaped_root_operation.go} | 0 ...et_response_escaped_additional_details.go} | 0 ..._response_escaped_associated_resources.go} | 0 ..._operations_get_response_escaped_error.go} | 0 ...operations_get_response_escaped_groups.go} | 0 ...ions_get_response_escaped_log_messages.go} | 0 ...operations_get_response_escaped_parent.go} | 0 ...s_get_response_escaped_recommendations.go} | 0 ...ns_get_response_escaped_root_operation.go} | 0 internal/sdk/async/kiota-lock.json | 3 +- internal/sdk/dataservices/api_client.go | 39 + ...c919f6126b46458034607019af916a124486dfd.go | 138 +++ ...39f5337f0613b516a7dde2282e1895be4ee7a2f.go | 80 ++ ...a18330fe900d3aec6d3c2e71932fce3d744ac3d.go | 80 ++ ...a1bf6b2c9f19830c8e84118311bd6082e9de94a.go | 150 +++ ...b7ebf60bb50f6070b179a45a5352955467461f6.go | 81 ++ ...94a8b08176564d1a86a5c3832ad88f636ff5b59.go | 138 +++ ...e6f2e29e8107091d190ca6321f88b2a4cd5c41d.go | 150 +++ ...dd47c09aca6031616d66b451199973a66672e00.go | 255 +++++ ...677b3cf4cff23668274ae2a8deddd1912bc06a1.go | 81 ++ ...9fe1d71654559d9388e5965aada930171026481.go | 150 +++ ...1d3ba17d15a25aed6ebb0eea1c4715f93c2497d.go | 110 +++ ...67541c502cb1068ad7413e392f2eb3921fb84d4.go | 80 ++ ...d9205039bd10c62d775baaf08523d69f9888a61.go | 80 ++ ...d9c603f9d8929011da2c61503283b8837f59a59.go | 80 ++ ...a9ea8f530a7fb60af61f59a92423214fac22cac.go | 81 ++ ...87c011e10baa0dc0061c493f47c5df061f84375.go | 156 +++ ...bca675217c4f47ad414113937b275105d668bf6.go | 138 +++ ...3dd6241b6c9a0f3c850e0ea026f3c7f23e09647.go | 150 +++ ...aa035bfbfca9f91baeccf52b29a83371d501232.go | 110 +++ ...16907937d6e0a0e524a9b868aa6a85aee610394.go | 150 +++ ...3cf05ef11864b44c0fde4f4747f1e18afe4f177.go | 150 +++ ...01120aa092f57effb809692d56d64a78dc5bef5.go | 150 +++ ...1bcd82c5ebdbfc7e88da44d0d51e1fcd9ffa59a.go | 80 ++ ...59351e5779b5752aff55df09cd59f772558bdbe.go | 150 +++ ...8d53bb69ed3aff5067d224e949f81cdfd2b7a28.go | 80 ++ ...ad95dc71ef43a1fab5a4b93dafdb710cce8e30f.go | 139 +++ ...44cf2942b3e0283b7d6d747ebdc7580ec896e47.go | 81 ++ ...fd6fa61736ba3614f4b942a06950b5024061370.go | 150 +++ ...e77506110ce5a606a55bcb8adcf51bc47916928.go | 80 ++ ...00f92d9540af4f2117c9b01d41d4aca21d9cd8d.go | 80 ++ ...a23ff2331c70b6ca0910c734de9c8ab28ea00f8.go | 138 +++ ...aca70d0f52abe55e8e21b86d291837275133059.go | 80 ++ .../data_services_request_builder.go | 28 + ...4a06b7bb655ec3ebfa0419dfb3c4c93af7b5dd2.go | 150 +++ ...1d957b017a8ac091eb3706dc6516a572856b425.go | 81 ++ ...a53b50157f62fa23d5e01f0072362bb6e3cefca.go | 109 ++ ...c431cf26463a6915bb71da50effab1b216db5e8.go | 80 ++ ...4164498bd2c73ded12a09891065c727fd6281c4.go | 81 ++ ...477ccba4cc67ef19705b2138f1ff4cc39b0ba30.go | 128 +++ ...992db71a932c76d3aa5d4103dc51aa99849d280.go | 150 +++ ...f554f467fd0fa670aa278c1f7b23ff97d69050c.go | 34 + ..._escaped_items_escaped_connection_state.go | 34 + ..._date_time_escaped_method_date_time_set.go | 31 + ...e_escaped_items_escaped_deployment_type.go | 34 + ...escaped_items_escaped_ntp_escaped_state.go | 34 + ...scaped_items_escaped_ntp_escaped_status.go | 37 + ...response_escaped_items_escaped_platform.go | 31 + ...ed_items_escaped_rda_info_escaped_state.go | 34 + ...d_items_escaped_rda_info_escaped_status.go | 37 + ...et_response_escaped_items_escaped_state.go | 40 + ...t_response_escaped_items_escaped_status.go | 37 + ...12d1611ea2f124c61b45d6cc0de3af5321a7075.go | 34 + ...s_get_response_escaped_connection_state.go | 34 + ..._date_time_escaped_method_date_time_set.go | 31 + ...rs_get_response_escaped_deployment_type.go | 34 + ..._get_response_escaped_ntp_escaped_state.go | 34 + ...get_response_escaped_ntp_escaped_status.go | 37 + ...onnectors_get_response_escaped_platform.go | 31 + ...response_escaped_rda_info_escaped_state.go | 34 + ...esponse_escaped_rda_info_escaped_status.go | 37 + ...s_connectors_get_response_escaped_state.go | 40 + ..._connectors_get_response_escaped_status.go | 37 + ...ations_patch_request_body_escaped_state.go | 34 + ...ponse_escaped_items_escaped_snoozed_for.go | 42 + ...issues_get_response_escaped_snoozed_for.go | 42 + ..._release_get_response_escaped_stability.go | 31 + ...tall_release_get_response_escaped_usage.go | 37 + ...download_post_request_body_escaped_file.go | 34 + ...ownloads_post_request_body_escaped_file.go | 34 + ...releases_get_response_escaped_stability.go | 31 + ...are_releases_get_response_escaped_usage.go | 37 + ...esponse_escaped_items_escaped_stability.go | 31 + ...et_response_escaped_items_escaped_usage.go | 37 + ...aped_software_release_escaped_stability.go | 31 + ..._escaped_software_release_escaped_usage.go | 37 + ...response_escaped_cloud_service_provider.go | 37 + ...ed_items_escaped_cloud_service_provider.go | 37 + .../tags/get_sort_query_parameter_type.go | 33 + ...767acafc19257a338b0e222f1400ff9bd1157d3.go | 31 + ...84fc0171f6c574fdf3409eed1097b8fd472f4dd.go | 31 + ...d58b242e3bb062dbfac940602eaceb52992ad83.go | 31 + ...46838255c89956e820dd3ba84b39235a90df314.go | 31 + ...onse_escaped_authorization_escaped_type.go | 31 + ...ponse_escaped_destinations_escaped_type.go | 31 + .../webhooks_get_response_escaped_status.go | 40 + ...onse_escaped_subscriptions_escaped_type.go | 31 + ...onse_escaped_authorization_escaped_type.go | 31 + ...ponse_escaped_destinations_escaped_type.go | 31 + .../webhooks_patch_response_escaped_status.go | 40 + ...onse_escaped_subscriptions_escaped_type.go | 31 + ...87f55f6d7479365e0a9788037ccf24fcf4953ce.go | 31 + ...t_body_escaped_destination_escaped_type.go | 31 + ...tems_escaped_authorization_escaped_type.go | 31 + ...items_escaped_destinations_escaped_type.go | 31 + ...t_response_escaped_items_escaped_status.go | 40 + ...tems_escaped_subscriptions_escaped_type.go | 31 + ...onse_escaped_authorization_escaped_type.go | 31 + ...ponse_escaped_destinations_escaped_type.go | 31 + .../webhooks_post_response_escaped_status.go | 40 + ...onse_escaped_subscriptions_escaped_type.go | 31 + .../v1beta1_announcements400_error.go | 88 ++ .../v1beta1_announcements401_error.go | 88 ++ .../v1beta1_announcements403_error.go | 88 ++ .../v1beta1_announcements500_error.go | 88 ++ .../v1beta1_announcements503_error.go | 88 ++ .../v1beta1_announcements_get_response.go | 179 ++++ ...nnouncements_get_response_escaped_items.go | 396 ++++++++ ...t_response_escaped_items_escaped_images.go | 62 ++ ...response_escaped_items_escaped_services.go | 91 ++ ...cements_item_with_announcement400_error.go | 88 ++ ...cements_item_with_announcement401_error.go | 88 ++ ...cements_item_with_announcement403_error.go | 88 ++ ...cements_item_with_announcement404_error.go | 88 ++ ...cements_item_with_announcement500_error.go | 88 ++ ...cements_item_with_announcement503_error.go | 88 ++ ...nts_item_with_announcement_get_response.go | 396 ++++++++ ...nnouncement_get_response_escaped_images.go | 62 ++ ...ouncement_get_response_escaped_services.go | 91 ++ ...cements_item_with_announcement_response.go | 28 + .../v1beta1_announcements_request_builder.go | 146 +++ .../v1beta1_announcements_response.go | 27 + ..._with_announcement_item_request_builder.go | 108 ++ .../v1beta1_async_operations400_error.go | 88 ++ .../v1beta1_async_operations401_error.go | 88 ++ .../v1beta1_async_operations403_error.go | 88 ++ .../v1beta1_async_operations500_error.go | 88 ++ .../v1beta1_async_operations503_error.go | 88 ++ ...s_async_operations_item_request_builder.go | 118 +++ .../v1beta1_async_operations_get_response.go | 92 ++ ...c_operations_get_response_escaped_items.go | 919 +++++++++++++++++ ...scaped_items_escaped_additional_details.go | 81 ++ ...aped_items_escaped_associated_resources.go | 121 +++ ...et_response_escaped_items_escaped_error.go | 52 + ...t_response_escaped_items_escaped_groups.go | 110 +++ ...onse_escaped_items_escaped_log_messages.go | 110 +++ ...t_response_escaped_items_escaped_parent.go | 52 + ...e_escaped_items_escaped_recommendations.go | 80 ++ ...se_escaped_items_escaped_root_operation.go | 52 + ...erations_item_async_operations400_error.go | 88 ++ ...erations_item_async_operations401_error.go | 88 ++ ...erations_item_async_operations403_error.go | 88 ++ ...erations_item_async_operations404_error.go | 88 ++ ...erations_item_async_operations500_error.go | 88 ++ ...erations_item_async_operations503_error.go | 88 ++ ...ions_item_async_operations_get_response.go | 919 +++++++++++++++++ ...get_response_escaped_additional_details.go | 81 ++ ...t_response_escaped_associated_resources.go | 121 +++ ...c_operations_get_response_escaped_error.go | 52 + ..._operations_get_response_escaped_groups.go | 110 +++ ...tions_get_response_escaped_log_messages.go | 110 +++ ..._operations_get_response_escaped_parent.go | 52 + ...ns_get_response_escaped_recommendations.go | 80 ++ ...ons_get_response_escaped_root_operation.go | 52 + ...erations_item_async_operations_response.go | 28 + ...1beta1_async_operations_request_builder.go | 146 +++ .../v1beta1_async_operations_response.go | 27 + ...beta1_data_services_connectors400_error.go | 175 ++++ ...beta1_data_services_connectors401_error.go | 175 ++++ ...beta1_data_services_connectors403_error.go | 175 ++++ ...beta1_data_services_connectors500_error.go | 175 ++++ ...beta1_data_services_connectors503_error.go | 175 ++++ ...ervices_connectors_item_request_builder.go | 234 +++++ ...1_data_services_connectors_get_response.go | 179 ++++ ...s_connectors_get_response_escaped_items.go | 895 +++++++++++++++++ ...esponse_escaped_items_escaped_date_time.go | 81 ++ ...caped_items_escaped_hypervisor_managers.go | 156 +++ ...sponse_escaped_items_escaped_interfaces.go | 80 ++ ...tems_escaped_interfaces_escaped_network.go | 255 +++++ ..._get_response_escaped_items_escaped_ntp.go | 121 +++ ...d_items_escaped_ntp_escaped_ntp_servers.go | 80 ++ ...response_escaped_items_escaped_rda_info.go | 296 ++++++ ...items_escaped_rda_info_escaped_features.go | 80 ++ ..._escaped_items_escaped_service_versions.go | 109 ++ ..._item_data_services_connectors400_error.go | 175 ++++ ..._item_data_services_connectors401_error.go | 175 ++++ ..._item_data_services_connectors403_error.go | 175 ++++ ..._item_data_services_connectors404_error.go | 175 ++++ ..._item_data_services_connectors500_error.go | 175 ++++ ..._item_data_services_connectors503_error.go | 175 ++++ ...m_data_services_connectors_get_response.go | 930 ++++++++++++++++++ ...nnectors_get_response_escaped_date_time.go | 81 ++ ...nectors_get_response_escaped_interfaces.go | 80 ++ ...ces_connectors_get_response_escaped_ntp.go | 121 +++ ...onnectors_get_response_escaped_rda_info.go | 296 ++++++ ...s_get_response_escaped_service_versions.go | 109 ++ ..._services_connectors_patch_request_body.go | 227 +++++ ...nnectors_patch_request_body_escaped_dns.go | 80 ++ ...nnectors_patch_request_body_escaped_ntp.go | 80 ++ ...ectors_patch_request_body_escaped_proxy.go | 138 +++ ..._item_data_services_connectors_response.go | 28 + ...s_item_generate_support_bundle400_error.go | 175 ++++ ...s_item_generate_support_bundle401_error.go | 175 ++++ ...s_item_generate_support_bundle403_error.go | 175 ++++ ...s_item_generate_support_bundle404_error.go | 175 ++++ ...s_item_generate_support_bundle500_error.go | 175 ++++ ...s_item_generate_support_bundle503_error.go | 175 ++++ ...nerate_support_bundle_post_request_body.go | 81 ++ ...generate_support_bundle_request_builder.go | 82 ++ ..._connectors_item_generate_totp400_error.go | 175 ++++ ..._connectors_item_generate_totp401_error.go | 175 ++++ ..._connectors_item_generate_totp403_error.go | 175 ++++ ..._connectors_item_generate_totp404_error.go | 175 ++++ ..._connectors_item_generate_totp500_error.go | 175 ++++ ..._connectors_item_generate_totp503_error.go | 175 ++++ ...ectors_item_generate_totp_post_response.go | 109 ++ ...tors_item_generate_totp_request_builder.go | 108 ++ ..._connectors_item_generate_totp_response.go | 27 + ...ectors_item_set_remote_support400_error.go | 175 ++++ ...ectors_item_set_remote_support401_error.go | 175 ++++ ...ectors_item_set_remote_support403_error.go | 175 ++++ ...ectors_item_set_remote_support404_error.go | 175 ++++ ...ectors_item_set_remote_support500_error.go | 175 ++++ ...ectors_item_set_remote_support503_error.go | 175 ++++ ...em_set_remote_support_post_request_body.go | 80 ++ ...item_set_remote_support_request_builder.go | 82 ++ ...a_services_connectors_post_request_body.go | 110 +++ ...ata_services_connectors_request_builder.go | 197 ++++ ...beta1_data_services_connectors_response.go | 27 + .../v1beta1_dual_auth_operations400_error.go | 175 ++++ .../v1beta1_dual_auth_operations401_error.go | 175 ++++ .../v1beta1_dual_auth_operations403_error.go | 175 ++++ .../v1beta1_dual_auth_operations404_error.go | 175 ++++ .../v1beta1_dual_auth_operations422_error.go | 175 ++++ .../v1beta1_dual_auth_operations500_error.go | 175 ++++ .../v1beta1_dual_auth_operations503_error.go | 175 ++++ ...al_auth_operations_item_request_builder.go | 203 ++++ ...beta1_dual_auth_operations_get_response.go | 179 ++++ ...h_operations_get_response_escaped_items.go | 694 +++++++++++++ ...aped_items_escaped_associated_resources.go | 121 +++ ...ped_associated_resources_escaped_groups.go | 110 +++ ...t_response_escaped_items_escaped_groups.go | 110 +++ ...scaped_items_escaped_operation_resource.go | 121 +++ ...ions_item_dual_auth_operations400_error.go | 175 ++++ ...ions_item_dual_auth_operations401_error.go | 175 ++++ ...ions_item_dual_auth_operations403_error.go | 175 ++++ ...ions_item_dual_auth_operations404_error.go | 175 ++++ ...ions_item_dual_auth_operations412_error.go | 175 ++++ ...ions_item_dual_auth_operations422_error.go | 175 ++++ ...ions_item_dual_auth_operations500_error.go | 175 ++++ ...ions_item_dual_auth_operations503_error.go | 175 ++++ ..._item_dual_auth_operations_get_response.go | 694 +++++++++++++ ...t_response_escaped_associated_resources.go | 121 +++ ..._operations_get_response_escaped_groups.go | 110 +++ ...get_response_escaped_operation_resource.go | 121 +++ ...dual_auth_operations_patch_request_body.go | 51 + ...tem_dual_auth_operations_patch_response.go | 694 +++++++++++++ ...h_response_escaped_associated_resources.go | 121 +++ ...perations_patch_response_escaped_groups.go | 110 +++ ...tch_response_escaped_operation_resource.go | 121 +++ ...ions_item_dual_auth_operations_response.go | 27 + ...a1_dual_auth_operations_request_builder.go | 154 +++ .../v1beta1_dual_auth_operations_response.go | 27 + .../v1beta1_email_subscriptions400_error.go | 88 ++ .../v1beta1_email_subscriptions401_error.go | 88 ++ .../v1beta1_email_subscriptions503_error.go | 88 ++ ...mail_subscriptions_item_request_builder.go | 134 +++ ...1beta1_email_subscriptions_get_response.go | 92 ++ ...ubscriptions_get_response_escaped_items.go | 244 +++++ ...t_response_escaped_items_escaped_groups.go | 110 +++ ...tions_item_email_subscriptions401_error.go | 88 ++ ...tions_item_email_subscriptions404_error.go | 88 ++ ...tions_item_email_subscriptions503_error.go | 88 ++ ..._item_email_subscriptions_post_response.go | 244 +++++ ...scriptions_post_response_escaped_groups.go | 110 +++ ...tions_item_email_subscriptions_response.go | 28 + ...ta1_email_subscriptions_request_builder.go | 138 +++ .../v1beta1_email_subscriptions_response.go | 27 + .../dataservices/v1beta1_groups400_error.go | 88 ++ .../dataservices/v1beta1_groups403_error.go | 88 ++ .../dataservices/v1beta1_groups409_error.go | 88 ++ .../dataservices/v1beta1_groups503_error.go | 88 ++ .../v1beta1_groups_get_response.go | 92 ++ ...beta1_groups_get_response_escaped_items.go | 470 +++++++++ ...items_escaped_associated_resource_types.go | 109 ++ ...eta1_groups_groups_item_request_builder.go | 230 +++++ ...oups_item_associated_resources400_error.go | 88 ++ ...oups_item_associated_resources403_error.go | 88 ++ ...oups_item_associated_resources404_error.go | 88 ++ ...oups_item_associated_resources503_error.go | 88 ++ ..._item_associated_resources_get_response.go | 92 ++ ...ed_resources_get_response_escaped_items.go | 225 +++++ ...em_associated_resources_request_builder.go | 118 +++ ...oups_item_associated_resources_response.go | 27 + .../v1beta1_groups_item_groups400_error.go | 88 ++ .../v1beta1_groups_item_groups403_error.go | 88 ++ .../v1beta1_groups_item_groups404_error.go | 88 ++ .../v1beta1_groups_item_groups409_error.go | 88 ++ .../v1beta1_groups_item_groups503_error.go | 88 ++ ...v1beta1_groups_item_groups_get_response.go | 470 +++++++++ ...ponse_escaped_associated_resource_types.go | 109 ++ ...1_groups_item_groups_patch_request_body.go | 138 +++ ...beta1_groups_item_groups_patch_response.go | 470 +++++++++ ...ponse_escaped_associated_resource_types.go | 109 ++ .../v1beta1_groups_item_groups_response.go | 27 + .../v1beta1_groups_post_request_body.go | 138 +++ .../v1beta1_groups_post_response.go | 470 +++++++++ ...ponse_escaped_associated_resource_types.go | 109 ++ .../v1beta1_groups_request_builder.go | 211 ++++ .../dataservices/v1beta1_groups_response.go | 27 + .../dataservices/v1beta1_issues400_error.go | 175 ++++ .../dataservices/v1beta1_issues401_error.go | 175 ++++ .../dataservices/v1beta1_issues403_error.go | 175 ++++ .../dataservices/v1beta1_issues404_error.go | 175 ++++ .../dataservices/v1beta1_issues405_error.go | 175 ++++ .../dataservices/v1beta1_issues422_error.go | 175 ++++ .../dataservices/v1beta1_issues500_error.go | 175 ++++ .../dataservices/v1beta1_issues503_error.go | 175 ++++ .../v1beta1_issues_get_response.go | 179 ++++ ...beta1_issues_get_response_escaped_items.go | 778 +++++++++++++++ ...t_response_escaped_items_escaped_groups.go | 110 +++ ...escaped_items_escaped_related_resources.go | 174 ++++ ...eta1_issues_issues_item_request_builder.go | 130 +++ .../v1beta1_issues_item_issues400_error.go | 175 ++++ .../v1beta1_issues_item_issues401_error.go | 175 ++++ .../v1beta1_issues_item_issues403_error.go | 175 ++++ .../v1beta1_issues_item_issues404_error.go | 175 ++++ .../v1beta1_issues_item_issues405_error.go | 175 ++++ .../v1beta1_issues_item_issues409_error.go | 175 ++++ .../v1beta1_issues_item_issues422_error.go | 175 ++++ .../v1beta1_issues_item_issues500_error.go | 175 ++++ .../v1beta1_issues_item_issues503_error.go | 175 ++++ ...v1beta1_issues_item_issues_get_response.go | 778 +++++++++++++++ ...item_issues_get_response_escaped_groups.go | 110 +++ ..._get_response_escaped_related_resources.go | 174 ++++ .../v1beta1_issues_item_issues_response.go | 27 + .../v1beta1_issues_metadata400_error.go | 175 ++++ .../v1beta1_issues_metadata401_error.go | 175 ++++ .../v1beta1_issues_metadata403_error.go | 175 ++++ .../v1beta1_issues_metadata404_error.go | 175 ++++ .../v1beta1_issues_metadata405_error.go | 175 ++++ .../v1beta1_issues_metadata422_error.go | 175 ++++ .../v1beta1_issues_metadata500_error.go | 175 ++++ .../v1beta1_issues_metadata503_error.go | 175 ++++ .../v1beta1_issues_metadata_get_response.go | 179 ++++ ...ues_metadata_get_response_escaped_items.go | 378 +++++++ ...sponse_escaped_items_escaped_categories.go | 109 ++ ...response_escaped_items_escaped_services.go | 109 ++ ...sponse_escaped_items_escaped_severities.go | 109 ++ ...v1beta1_issues_metadata_request_builder.go | 128 +++ .../v1beta1_issues_metadata_response.go | 27 + .../v1beta1_issues_request_builder.go | 158 +++ .../dataservices/v1beta1_issues_response.go | 27 + .../v1beta1_one_time_tokens400_error.go | 88 ++ .../v1beta1_one_time_tokens401_error.go | 88 ++ .../v1beta1_one_time_tokens500_error.go | 88 ++ .../v1beta1_one_time_tokens503_error.go | 88 ++ .../v1beta1_one_time_tokens_post_response.go | 190 ++++ ...v1beta1_one_time_tokens_request_builder.go | 100 ++ .../v1beta1_one_time_tokens_response.go | 27 + .../v1beta1_recent_searches400_error.go | 175 ++++ .../v1beta1_recent_searches401_error.go | 175 ++++ .../v1beta1_recent_searches500_error.go | 175 ++++ .../v1beta1_recent_searches_get_response.go | 180 ++++ ...ent_searches_get_response_escaped_items.go | 342 +++++++ ...response_escaped_items_escaped_resource.go | 319 ++++++ ...beta1_recent_searches_post_request_body.go | 132 +++ ...ches_post_request_body_escaped_resource.go | 319 ++++++ ...v1beta1_recent_searches_request_builder.go | 153 +++ .../v1beta1_recent_searches_response.go | 28 + .../dataservices/v1beta1_request_builder.go | 138 +++ .../dataservices/v1beta1_search400_error.go | 175 ++++ .../dataservices/v1beta1_search401_error.go | 175 ++++ .../dataservices/v1beta1_search500_error.go | 175 ++++ .../v1beta1_search_get_response.go | 238 +++++ ...beta1_search_get_response_escaped_items.go | 185 ++++ ...e_escaped_items_escaped_matching_fields.go | 52 + ...response_escaped_items_escaped_resource.go | 319 ++++++ .../v1beta1_search_metadata400_error.go | 175 ++++ .../v1beta1_search_metadata401_error.go | 175 ++++ .../v1beta1_search_metadata500_error.go | 175 ++++ .../v1beta1_search_metadata_get_response.go | 179 ++++ ...rch_metadata_get_response_escaped_items.go | 296 ++++++ ..._response_escaped_items_escaped_options.go | 109 ++ ...v1beta1_search_metadata_request_builder.go | 96 ++ .../v1beta1_search_metadata_response.go | 27 + .../v1beta1_search_request_builder.go | 114 +++ .../dataservices/v1beta1_search_response.go | 27 + .../v1beta1_search_summaries400_error.go | 175 ++++ .../v1beta1_search_summaries401_error.go | 175 ++++ .../v1beta1_search_summaries500_error.go | 175 ++++ .../v1beta1_search_summaries_get_response.go | 179 ++++ ...ch_summaries_get_response_escaped_items.go | 185 ++++ ...1beta1_search_summaries_request_builder.go | 108 ++ .../v1beta1_search_summaries_response.go | 27 + .../v1beta1_secret_assignments400_error.go | 175 ++++ .../v1beta1_secret_assignments401_error.go | 175 ++++ .../v1beta1_secret_assignments403_error.go | 175 ++++ .../v1beta1_secret_assignments404_error.go | 175 ++++ .../v1beta1_secret_assignments422_error.go | 175 ++++ .../v1beta1_secret_assignments500_error.go | 175 ++++ .../v1beta1_secret_assignments503_error.go | 175 ++++ ...v1beta1_secret_assignments_get_response.go | 209 ++++ ..._assignments_get_response_escaped_items.go | 559 +++++++++++ ...esponse_escaped_items_escaped_appliance.go | 81 ++ ...t_response_escaped_items_escaped_groups.go | 139 +++ ...t_response_escaped_items_escaped_secret.go | 169 ++++ ...nments_item_secret_assignments400_error.go | 175 ++++ ...nments_item_secret_assignments401_error.go | 175 ++++ ...nments_item_secret_assignments403_error.go | 175 ++++ ...nments_item_secret_assignments404_error.go | 175 ++++ ...nments_item_secret_assignments422_error.go | 175 ++++ ...nments_item_secret_assignments500_error.go | 175 ++++ ...nments_item_secret_assignments503_error.go | 175 ++++ ...ts_item_secret_assignments_get_response.go | 559 +++++++++++ ...ignments_get_response_escaped_appliance.go | 81 ++ ...assignments_get_response_escaped_groups.go | 139 +++ ...assignments_get_response_escaped_secret.go | 169 ++++ ...nments_item_secret_assignments_response.go | 28 + ...eta1_secret_assignments_request_builder.go | 152 +++ .../v1beta1_secret_assignments_response.go | 28 + ...secret_assignments_item_request_builder.go | 112 +++ .../dataservices/v1beta1_secrets400_error.go | 175 ++++ .../dataservices/v1beta1_secrets401_error.go | 175 ++++ .../dataservices/v1beta1_secrets403_error.go | 175 ++++ .../dataservices/v1beta1_secrets404_error.go | 175 ++++ .../dataservices/v1beta1_secrets409_error.go | 175 ++++ .../dataservices/v1beta1_secrets412_error.go | 175 ++++ .../dataservices/v1beta1_secrets422_error.go | 175 ++++ .../dataservices/v1beta1_secrets500_error.go | 175 ++++ .../dataservices/v1beta1_secrets503_error.go | 175 ++++ .../v1beta1_secrets_get_response.go | 209 ++++ ...eta1_secrets_get_response_escaped_items.go | 617 ++++++++++++ ...sponse_escaped_items_escaped_classifier.go | 81 ++ ...t_response_escaped_items_escaped_domain.go | 110 +++ ...items_escaped_domain_escaped_properties.go | 52 + ...t_response_escaped_items_escaped_groups.go | 139 +++ ...esponse_escaped_items_escaped_prototype.go | 169 ++++ ...nse_escaped_items_escaped_subclassifier.go | 110 +++ ...scaped_subclassifier_escaped_properties.go | 52 + .../v1beta1_secrets_item_secrets400_error.go | 175 ++++ .../v1beta1_secrets_item_secrets401_error.go | 175 ++++ .../v1beta1_secrets_item_secrets403_error.go | 175 ++++ .../v1beta1_secrets_item_secrets404_error.go | 175 ++++ .../v1beta1_secrets_item_secrets409_error.go | 175 ++++ .../v1beta1_secrets_item_secrets412_error.go | 175 ++++ .../v1beta1_secrets_item_secrets422_error.go | 175 ++++ .../v1beta1_secrets_item_secrets500_error.go | 175 ++++ .../v1beta1_secrets_item_secrets503_error.go | 175 ++++ ...beta1_secrets_item_secrets_get_response.go | 617 ++++++++++++ ...secrets_get_response_escaped_classifier.go | 81 ++ ...tem_secrets_get_response_escaped_domain.go | 110 +++ ...ponse_escaped_domain_escaped_properties.go | 52 + ...tem_secrets_get_response_escaped_groups.go | 139 +++ ..._secrets_get_response_escaped_prototype.go | 169 ++++ ...rets_get_response_escaped_subclassifier.go | 110 +++ ...scaped_subclassifier_escaped_properties.go | 52 + ...item_secrets_patch_request_body_member1.go | 460 +++++++++ ...est_body_member1_escaped_secret_member1.go | 81 ++ ...st_body_member1_escaped_secret_member10.go | 81 ++ ...ped_secret_member10_escaped_ssh_keypair.go | 110 +++ ...est_body_member1_escaped_secret_member2.go | 81 ++ ...caped_secret_member2_escaped_basic_auth.go | 110 +++ ...est_body_member1_escaped_secret_member3.go | 81 ++ ...aped_secret_member3_escaped_bearer_auth.go | 81 ++ ...est_body_member1_escaped_secret_member4.go | 81 ++ ...aped_secret_member4_escaped_certificate.go | 110 +++ ...est_body_member1_escaped_secret_member5.go | 81 ++ ..._escaped_secret_member5_escaped_generic.go | 81 ++ ...est_body_member1_escaped_secret_member6.go | 81 ++ ...est_body_member1_escaped_secret_member7.go | 81 ++ ...ped_secret_member7_escaped_oauth_client.go | 110 +++ ...est_body_member1_escaped_secret_member8.go | 81 ++ ...escaped_secret_member8_escaped_password.go | 81 ++ ...est_body_member1_escaped_secret_member9.go | 81 ++ ...aped_secret_member9_escaped_private_key.go | 81 ++ ...item_secrets_patch_request_body_member2.go | 145 +++ ...ta1_secrets_item_secrets_patch_response.go | 617 ++++++++++++ ...crets_patch_response_escaped_classifier.go | 81 ++ ...m_secrets_patch_response_escaped_domain.go | 110 +++ ...ponse_escaped_domain_escaped_properties.go | 52 + ...m_secrets_patch_response_escaped_groups.go | 139 +++ ...ecrets_patch_response_escaped_prototype.go | 169 ++++ ...ts_patch_response_escaped_subclassifier.go | 110 +++ ...scaped_subclassifier_escaped_properties.go | 52 + .../v1beta1_secrets_item_secrets_response.go | 28 + ...beta1_secrets_post_request_body_member1.go | 617 ++++++++++++ ..._request_body_member1_escaped_assignees.go | 81 ++ ...est_body_member1_escaped_secret_member1.go | 81 ++ ...st_body_member1_escaped_secret_member10.go | 81 ++ ...ped_secret_member10_escaped_ssh_keypair.go | 110 +++ ...secret_member1_escaped_azure_s_p_client.go | 139 +++ ...est_body_member1_escaped_secret_member2.go | 81 ++ ...caped_secret_member2_escaped_basic_auth.go | 110 +++ ...est_body_member1_escaped_secret_member3.go | 81 ++ ...aped_secret_member3_escaped_bearer_auth.go | 81 ++ ...est_body_member1_escaped_secret_member4.go | 81 ++ ...aped_secret_member4_escaped_certificate.go | 110 +++ ...est_body_member1_escaped_secret_member5.go | 81 ++ ..._escaped_secret_member5_escaped_generic.go | 81 ++ ...est_body_member1_escaped_secret_member6.go | 81 ++ ...d_secret_member6_escaped_json_web_token.go | 81 ++ ...est_body_member1_escaped_secret_member7.go | 81 ++ ...ped_secret_member7_escaped_oauth_client.go | 110 +++ ...est_body_member1_escaped_secret_member8.go | 81 ++ ...escaped_secret_member8_escaped_password.go | 81 ++ ...est_body_member1_escaped_secret_member9.go | 81 ++ ...aped_secret_member9_escaped_private_key.go | 81 ++ ...beta1_secrets_post_request_body_member2.go | 576 +++++++++++ ...est_body_member2_escaped_secret_member1.go | 81 ++ ...st_body_member2_escaped_secret_member10.go | 81 ++ ...ped_secret_member10_escaped_ssh_keypair.go | 110 +++ ...secret_member1_escaped_azure_s_p_client.go | 139 +++ ...est_body_member2_escaped_secret_member2.go | 81 ++ ...caped_secret_member2_escaped_basic_auth.go | 110 +++ ...est_body_member2_escaped_secret_member3.go | 81 ++ ...aped_secret_member3_escaped_bearer_auth.go | 81 ++ ...est_body_member2_escaped_secret_member4.go | 81 ++ ...aped_secret_member4_escaped_certificate.go | 110 +++ ...est_body_member2_escaped_secret_member5.go | 81 ++ ..._escaped_secret_member5_escaped_generic.go | 81 ++ ...est_body_member2_escaped_secret_member6.go | 81 ++ ...d_secret_member6_escaped_json_web_token.go | 81 ++ ...est_body_member2_escaped_secret_member7.go | 81 ++ ...ped_secret_member7_escaped_oauth_client.go | 110 +++ ...est_body_member2_escaped_secret_member8.go | 81 ++ ...escaped_secret_member8_escaped_password.go | 81 ++ ...est_body_member2_escaped_secret_member9.go | 81 ++ ...aped_secret_member9_escaped_private_key.go | 81 ++ .../v1beta1_secrets_post_response.go | 617 ++++++++++++ ...ecrets_post_response_escaped_classifier.go | 81 ++ ...a1_secrets_post_response_escaped_domain.go | 110 +++ ...ponse_escaped_domain_escaped_properties.go | 52 + ...a1_secrets_post_response_escaped_groups.go | 139 +++ ...secrets_post_response_escaped_prototype.go | 169 ++++ ...ets_post_response_escaped_subclassifier.go | 110 +++ ...scaped_subclassifier_escaped_properties.go | 52 + .../v1beta1_secrets_request_builder.go | 334 +++++++ .../dataservices/v1beta1_secrets_response.go | 28 + ...a1_secrets_secrets_item_request_builder.go | 354 +++++++ .../dataservices/v1beta1_settings400_error.go | 175 ++++ .../dataservices/v1beta1_settings401_error.go | 175 ++++ .../dataservices/v1beta1_settings403_error.go | 175 ++++ .../dataservices/v1beta1_settings404_error.go | 175 ++++ .../dataservices/v1beta1_settings422_error.go | 175 ++++ .../dataservices/v1beta1_settings500_error.go | 175 ++++ .../dataservices/v1beta1_settings503_error.go | 175 ++++ .../v1beta1_settings_get_response.go | 179 ++++ ...ta1_settings_get_response_escaped_items.go | 487 +++++++++ ...v1beta1_settings_item_settings400_error.go | 175 ++++ ...v1beta1_settings_item_settings401_error.go | 175 ++++ ...v1beta1_settings_item_settings403_error.go | 175 ++++ ...v1beta1_settings_item_settings404_error.go | 175 ++++ ...v1beta1_settings_item_settings412_error.go | 175 ++++ ...v1beta1_settings_item_settings422_error.go | 175 ++++ ...v1beta1_settings_item_settings500_error.go | 175 ++++ ...v1beta1_settings_item_settings503_error.go | 175 ++++ ...ta1_settings_item_settings_get_response.go | 487 +++++++++ ...ttings_item_settings_patch_request_body.go | 80 ++ ...1_settings_item_settings_patch_response.go | 487 +++++++++ ...v1beta1_settings_item_settings_response.go | 27 + .../v1beta1_settings_request_builder.go | 154 +++ .../dataservices/v1beta1_settings_response.go | 27 + ..._settings_settings_item_request_builder.go | 203 ++++ ...omponents_item_install_release400_error.go | 175 ++++ ...omponents_item_install_release401_error.go | 175 ++++ ...omponents_item_install_release404_error.go | 175 ++++ ...omponents_item_install_release500_error.go | 175 ++++ ...omponents_item_install_release503_error.go | 175 ++++ ...nents_item_install_release_get_response.go | 401 ++++++++ ..._release_get_response_escaped_signature.go | 139 +++ ...l_release_get_response_escaped_software.go | 139 +++ ...get_response_escaped_software_component.go | 128 +++ ...ts_item_install_release_request_builder.go | 104 ++ ...omponents_item_install_release_response.go | 28 + ...ta1_software_components_request_builder.go | 47 + ...oftware_components_item_request_builder.go | 28 + .../v1beta1_software_releases400_error.go | 175 ++++ .../v1beta1_software_releases401_error.go | 175 ++++ .../v1beta1_software_releases500_error.go | 175 ++++ .../v1beta1_software_releases503_error.go | 175 ++++ .../v1beta1_software_releases_get_response.go | 180 ++++ ...are_releases_get_response_escaped_items.go | 401 ++++++++ ...esponse_escaped_items_escaped_signature.go | 139 +++ ...response_escaped_items_escaped_software.go | 139 +++ ...scaped_items_escaped_software_component.go | 128 +++ ...oftware_releases_item_download400_error.go | 175 ++++ ...oftware_releases_item_download401_error.go | 175 ++++ ...oftware_releases_item_download403_error.go | 175 ++++ ...oftware_releases_item_download404_error.go | 175 ++++ ...oftware_releases_item_download500_error.go | 175 ++++ ...oftware_releases_item_download503_error.go | 175 ++++ ...eleases_item_download_post_request_body.go | 52 + ..._releases_item_download_request_builder.go | 77 ++ ...ftware_releases_item_downloads400_error.go | 175 ++++ ...ftware_releases_item_downloads401_error.go | 175 ++++ ...ftware_releases_item_downloads403_error.go | 175 ++++ ...ftware_releases_item_downloads404_error.go | 175 ++++ ...ftware_releases_item_downloads500_error.go | 175 ++++ ...ftware_releases_item_downloads503_error.go | 175 ++++ ...leases_item_downloads_post_request_body.go | 52 + ...e_releases_item_downloads_post_response.go | 228 +++++ ...releases_item_downloads_request_builder.go | 112 +++ ...ftware_releases_item_downloads_response.go | 28 + ...eleases_item_software_releases400_error.go | 175 ++++ ...eleases_item_software_releases401_error.go | 175 ++++ ...eleases_item_software_releases404_error.go | 175 ++++ ...eleases_item_software_releases500_error.go | 175 ++++ ...eleases_item_software_releases503_error.go | 175 ++++ ...ses_item_software_releases_get_response.go | 401 ++++++++ ...releases_get_response_escaped_signature.go | 139 +++ ..._releases_get_response_escaped_software.go | 139 +++ ...get_response_escaped_software_component.go | 128 +++ ...eleases_item_software_releases_response.go | 28 + ...beta1_software_releases_request_builder.go | 142 +++ .../v1beta1_software_releases_response.go | 28 + ..._software_releases_item_request_builder.go | 124 +++ .../v1beta1_software_upgrades400_error.go | 175 ++++ .../v1beta1_software_upgrades401_error.go | 175 ++++ .../v1beta1_software_upgrades404_error.go | 175 ++++ .../v1beta1_software_upgrades500_error.go | 175 ++++ .../v1beta1_software_upgrades503_error.go | 175 ++++ .../v1beta1_software_upgrades_get_response.go | 122 +++ ...are_upgrades_get_response_escaped_items.go | 198 ++++ ..._escaped_items_escaped_software_release.go | 401 ++++++++ ...aped_software_release_escaped_signature.go | 139 +++ ...caped_software_release_escaped_software.go | 139 +++ ...beta1_software_upgrades_request_builder.go | 121 +++ .../v1beta1_software_upgrades_response.go | 28 + .../v1beta1_storage_locations400_error.go | 175 ++++ .../v1beta1_storage_locations401_error.go | 175 ++++ .../v1beta1_storage_locations403_error.go | 175 ++++ .../v1beta1_storage_locations500_error.go | 175 ++++ .../v1beta1_storage_locations503_error.go | 175 ++++ .../v1beta1_storage_locations_get_response.go | 179 ++++ ...ge_locations_get_response_escaped_items.go | 407 ++++++++ ...cations_item_storage_locations400_error.go | 175 ++++ ...cations_item_storage_locations401_error.go | 175 ++++ ...cations_item_storage_locations403_error.go | 175 ++++ ...cations_item_storage_locations404_error.go | 88 ++ ...cations_item_storage_locations500_error.go | 175 ++++ ...cations_item_storage_locations503_error.go | 175 ++++ ...ons_item_storage_locations_get_response.go | 407 ++++++++ ...cations_item_storage_locations_response.go | 28 + ...beta1_storage_locations_request_builder.go | 126 +++ .../v1beta1_storage_locations_response.go | 27 + ..._storage_locations_item_request_builder.go | 108 ++ .../dataservices/v1beta1_tags400_error.go | 88 ++ .../dataservices/v1beta1_tags401_error.go | 88 ++ .../dataservices/v1beta1_tags403_error.go | 88 ++ .../dataservices/v1beta1_tags404_error.go | 88 ++ .../dataservices/v1beta1_tags500_error.go | 88 ++ .../dataservices/v1beta1_tags503_error.go | 88 ++ .../dataservices/v1beta1_tags_get_response.go | 92 ++ ...v1beta1_tags_get_response_escaped_items.go | 186 ++++ .../v1beta1_tags_request_builder.go | 130 +++ .../dataservices/v1beta1_tags_response.go | 27 + .../dataservices/v1beta1_webhooks400_error.go | 88 ++ .../dataservices/v1beta1_webhooks401_error.go | 88 ++ .../dataservices/v1beta1_webhooks403_error.go | 88 ++ .../dataservices/v1beta1_webhooks500_error.go | 88 ++ .../dataservices/v1beta1_webhooks503_error.go | 88 ++ .../v1beta1_webhooks_get_response.go | 180 ++++ ...ta1_webhooks_get_response_escaped_items.go | 454 +++++++++ ...nse_escaped_items_escaped_authorization.go | 81 ++ ...uthorization_escaped_client_credentials.go | 80 ++ ...onse_escaped_items_escaped_destinations.go | 81 ++ ...stinations_escaped_cloud_event_endpoint.go | 109 ++ ...t_response_escaped_items_escaped_groups.go | 104 ++ ...nse_escaped_items_escaped_subscriptions.go | 122 +++ ...ms_escaped_subscriptions_escaped_groups.go | 104 ++ ...ped_subscriptions_escaped_resource_type.go | 109 ++ ...v1beta1_webhooks_item_webhooks400_error.go | 88 ++ ...v1beta1_webhooks_item_webhooks401_error.go | 88 ++ ...v1beta1_webhooks_item_webhooks403_error.go | 88 ++ ...v1beta1_webhooks_item_webhooks404_error.go | 88 ++ ...v1beta1_webhooks_item_webhooks500_error.go | 88 ++ ...v1beta1_webhooks_item_webhooks503_error.go | 88 ++ ...ta1_webhooks_item_webhooks_get_response.go | 454 +++++++++ ...ooks_get_response_escaped_authorization.go | 81 ++ ...uthorization_escaped_client_credentials.go | 80 ++ ...hooks_get_response_escaped_destinations.go | 81 ++ ...stinations_escaped_cloud_event_endpoint.go | 109 ++ ...em_webhooks_get_response_escaped_groups.go | 104 ++ ...ooks_get_response_escaped_subscriptions.go | 122 +++ ...se_escaped_subscriptions_escaped_groups.go | 104 ++ ...ped_subscriptions_escaped_resource_type.go | 109 ++ ...bhooks_item_webhooks_patch_request_body.go | 52 + ...1_webhooks_item_webhooks_patch_response.go | 454 +++++++++ ...ks_patch_response_escaped_authorization.go | 81 ++ ...uthorization_escaped_client_credentials.go | 80 ++ ...oks_patch_response_escaped_destinations.go | 81 ++ ...stinations_escaped_cloud_event_endpoint.go | 109 ++ ..._webhooks_patch_response_escaped_groups.go | 104 ++ ...ks_patch_response_escaped_subscriptions.go | 122 +++ ...se_escaped_subscriptions_escaped_groups.go | 104 ++ ...ped_subscriptions_escaped_resource_type.go | 109 ++ ...v1beta1_webhooks_item_webhooks_response.go | 28 + .../v1beta1_webhooks_metadata400_error.go | 88 ++ .../v1beta1_webhooks_metadata401_error.go | 88 ++ .../v1beta1_webhooks_metadata403_error.go | 88 ++ .../v1beta1_webhooks_metadata500_error.go | 88 ++ .../v1beta1_webhooks_metadata503_error.go | 88 ++ .../v1beta1_webhooks_metadata_get_response.go | 180 ++++ ...oks_metadata_get_response_escaped_items.go | 296 ++++++ ...et_response_escaped_items_escaped_items.go | 138 +++ ...ed_items_escaped_items_escaped_resource.go | 139 +++ ...beta1_webhooks_metadata_request_builder.go | 104 ++ .../v1beta1_webhooks_metadata_response.go | 28 + .../v1beta1_webhooks_post_request_body.go | 52 + .../v1beta1_webhooks_post_response.go | 454 +++++++++ ...oks_post_response_escaped_authorization.go | 81 ++ ...uthorization_escaped_client_credentials.go | 80 ++ ...caped_client_credentials_escaped_secret.go | 150 +++ ...ooks_post_response_escaped_destinations.go | 81 ++ ...stinations_escaped_cloud_event_endpoint.go | 109 ++ ...1_webhooks_post_response_escaped_groups.go | 104 ++ ...oks_post_response_escaped_subscriptions.go | 122 +++ ...se_escaped_subscriptions_escaped_groups.go | 104 ++ ...ped_subscriptions_escaped_resource_type.go | 109 ++ .../v1beta1_webhooks_request_builder.go | 224 +++++ .../dataservices/v1beta1_webhooks_response.go | 28 + ...beta1_webhooks_test_connection400_error.go | 88 ++ ...beta1_webhooks_test_connection401_error.go | 88 ++ ...beta1_webhooks_test_connection403_error.go | 88 ++ ...beta1_webhooks_test_connection500_error.go | 88 ++ ...beta1_webhooks_test_connection503_error.go | 88 ++ ...hooks_test_connection_post_request_body.go | 80 ++ ...n_post_request_body_escaped_destination.go | 81 ++ ...estination_escaped_cloud_event_endpoint.go | 109 ++ ..._webhooks_test_connection_post_response.go | 109 ++ ..._connection_post_response_escaped_error.go | 167 ++++ ...ebhooks_test_connection_request_builder.go | 108 ++ ...beta1_webhooks_test_connection_response.go | 27 + ..._webhooks_webhooks_item_request_builder.go | 235 +++++ internal/sdk/dataservices/kiota-lock.json | 34 + internal/sdk/systems/kiota-lock.json | 3 +- ...dec11aa89854d9315da5fac348083c8c7e33c2.go} | 0 ...c2694f27302958156c212d03f26eccc33c1425.go} | 0 ...279dba4f5adb8f23d69bca918c648350149f08.go} | 0 ...15aeb540600ac6d55e3a92a518c7ed4fb5e0be.go} | 0 ...137ba0ea06147d4da85f68a2cb1aa3907d3761.go} | 0 ...8be3300072ee321a3110e8adb72b71c5d41287.go} | 0 ...e91c6231de6c000e588d0345501c9dad0c28b6.go} | 0 ...c45b67dcee7287bb1983d1c540f97fac5ed369.go} | 0 ...265fc2750350fb9bfd74ee29393781046c448d.go} | 0 ...cb6f5b7530ee6255c9dc5ddb9d6631abcb929b.go} | 0 ...56419e4207c421dc2fbf6623fd656e9b3837d2.go} | 0 ...de277d5e782026f2c3fdb1ee66e846bd05e63d.go} | 0 ...a7b8b4e65464cf75d6af520d998651c034c880.go} | 0 ...586ee0416eacee14fddae094ade6a88f2a178d.go} | 0 ...95f1ed5143cf65f619323c70f7d51679129e23.go} | 0 ...ae80ccab0a956752034e31b50880a4ace41d61.go} | 0 ...85fb0cbaa9016b861babcd8f9b17607467f0ee.go} | 0 ...27e7340f9899e19419c905a480f7fae058c2b3.go} | 0 ...565b56c64b5f500047096141e65f5960494334.go} | 0 ...a2897ff31959ab730db45534c91a4b6d8f49ac.go} | 0 ...d0422a636584db4d284a572c935fd3f9ee2e1b.go} | 0 ...20419cbcb9281141a98ccbb662137dec175a5d.go} | 0 ...39443551f492a4c099ca326c7cd6c4e640a861.go} | 0 ...82fcd8041473ec1b233a0f3c21f0b10c89a2fa.go} | 0 ...da4641411ffc619bc39891e1fdbf21820470d6.go} | 0 ...831797527f4b44ebdf1183397c0f823367c0f2.go} | 0 ...7c9a7a69137fe5324ff36adaef8f3200f198ef.go} | 0 ...a0dab62ad15544ef7ae2292af0ca2a4fd6a630.go} | 0 ...3b61582cf222b84b8d4d67d3c9734d4010b1df.go} | 0 ...4612c29d9038b09e14809379908622a6ee73f2.go} | 0 ...44463b3ecf30d43f07b6ecd930ecb6b6e6b48e.go} | 0 ...03b4525267eea3d01c523f1b7b06b080227091.go} | 0 ...e36218a9a7a4978123351f37ab0d0c48225777.go} | 0 ...71e17ce90604dc0ff3e7a892ac095db69fd8f2.go} | 0 ...253177c3ddeec526f09d1a38700e3a00a3c499.go} | 0 ...bd4206e76800d7e888fd5a4e7a9420af573eba.go} | 0 ...e21a754cb08ed4771911f61795ea78c1ae9b17.go} | 0 ...a62d1ad095dfb905bd0352f0baa8ef5db3cff7.go} | 0 ...9577ad48bd212b54dbe29bb346981498d1488c.go} | 0 ...f44bd79dda9a0201b80af964e60c2df20f4a7b.go} | 0 ...8543f5a8da83dfa6a1c19a671e3297d1ce4116.go} | 0 ...92df599843ae791e4a6d0881865e9306218181.go} | 0 ...cbb62d01febd75f0c5e07f9237135226acc6cd.go} | 0 ...ec314fc88d23070148d6a2b356e397033be4f7.go} | 0 ...23b4b5727ea0595f5a82b946a46b355998768d.go} | 0 ...0674bd76b2a95deb90b0fd4cd8fe628e880e8c.go} | 0 ...21780c611f923bbdb82193911aed4c187ef954.go} | 0 ...7e79bed63d21a20384f6724abf4911f2ecb5e3.go} | 0 ...9cff4ff3ebae90eb2cd1b74d0fa68d5725c5e4.go} | 0 ...04256ccffea3d0c5e28ac49a19e8c39e2dae7d.go} | 0 ...2d1c4b8178edb4edbb5aa4bb798c4f0aaaa4aa.go} | 0 ...9524e7dfc8aed9f3013838f125973b2feefeae.go} | 0 ...61b30a6dceee9749354fdadaa2b916d9436e77.go} | 0 ...e539c656aeda993ea7f80a3a769283be042dc9.go} | 0 ...e33060cffc1ff5bec83e21eae85cee5ffd5da8.go} | 0 ...6c10d1d4c343294754b447e92710d289da3e6a.go} | 0 ...867a9ba272b6ad8f45431019c61fb96788fdbe.go} | 0 ...cf6f8bdfb3516ab34c3c86913a7045dde574c0.go} | 0 ...579f687113efe53f4fb2f3799aff5f743697fa.go} | 0 ...e3706d16d169a7ab50d8b530790137995d7c62.go} | 0 ...50c7af833e09096dde8553a7449397f26517d5.go} | 0 ...a54fae8a01c36e0e857345d1e314cec3ed3acb.go} | 0 ...74fd1366c20ff185b0ea6f167d7e9d7fdc7d7e.go} | 0 ...a15ded611c097dff5f42b84b1658ee0edda066.go} | 0 ...0f6db7fa76fe726fc2596eb948e3cc00671a80.go} | 0 ...94f084ead51da87074aa94d9f66e1ec5ddaf3a.go} | 0 ...a0f1bf3bcc38d942f774d75f69910baf60c24d.go} | 0 ...731f50b74fe678c4535c69276737926b51ab10.go} | 0 ...d46ab1a3f9cb21f3e1041a7ba8b305b8a8461b.go} | 0 ..._secret_post_request_body_escaped_type.go} | 0 ...cc9231f6287a431e2d7c33fb4dbec7a048cdab.go} | 0 ...9d2e512e4136d55e18e63053e7b4ab22bb1d3c.go} | 0 ...42d280538ed476e682ab6db58729a5eaa7cb82.go} | 0 ..._clusters_escaped_compute_cluster_type.go} | 0 ...er_admin_password_secret_escaped_state.go} | 0 ...esponse_escaped_health_escaped_network.go} | 0 ..._escaped_health_escaped_overall_health.go} | 0 ...esponse_escaped_health_escaped_servers.go} | 0 ...esponse_escaped_health_escaped_storage.go} | 0 ...usters_escaped_hypervisor_cluster_type.go} | 0 ...ed_current_update_status_escaped_state.go} | 0 ....go => get_response_escaped_stack_type.go} | 0 ...state.go => get_response_escaped_state.go} | 0 ..._clusters_escaped_compute_cluster_type.go} | 0 ...esponse_escaped_health_escaped_network.go} | 0 ..._escaped_health_escaped_overall_health.go} | 0 ...esponse_escaped_health_escaped_servers.go} | 0 ...esponse_escaped_health_escaped_storage.go} | 0 ...usters_escaped_hypervisor_cluster_type.go} | 0 ...ed_current_update_status_escaped_state.go} | 0 ...o => patch_response_escaped_stack_type.go} | 0 ...ate.go => patch_response_escaped_state.go} | 0 ...aped_consumed_by_escaped_consumer_type.go} | 0 ...isor_host_escaped_hypervisor_host_type.go} | 0 ...oot_user_password_secret_escaped_state.go} | 0 ...min_user_password_secret_escaped_state.go} | 0 ...scaped_network_interfaces_escaped_type.go} | 0 ...redential_escaped_secret_escaped_state.go} | 0 ...tem_info_escaped_operating_system_type.go} | 0 ...redential_escaped_secret_escaped_state.go} | 0 ...erver_get_response_escaped_power_state.go} | 0 ...server_network_interfaces_escaped_type.go} | 0 ...aped_consumed_by_escaped_consumer_type.go} | 0 ...isor_host_escaped_hypervisor_host_type.go} | 0 ...oot_user_password_secret_escaped_state.go} | 0 ...min_user_password_secret_escaped_state.go} | 0 ...scaped_network_interfaces_escaped_type.go} | 0 ...redential_escaped_secret_escaped_state.go} | 0 ...tem_info_escaped_operating_system_type.go} | 0 ...redential_escaped_secret_escaped_state.go} | 0 ...onse_escaped_items_escaped_power_state.go} | 0 ...server_network_interfaces_escaped_type.go} | 0 ...tems_escaped_health_escaped_controller.go} | 0 ...aped_items_escaped_health_escaped_disk.go} | 0 ...d_items_escaped_health_escaped_network.go} | 0 ..._escaped_health_escaped_overall_health.go} | 0 ...ped_items_escaped_health_escaped_shelf.go} | 0 ...onse_escaped_health_escaped_cpu_health.go} | 0 ...nse_escaped_health_escaped_fans_health.go} | 0 ...e_escaped_health_escaped_memory_health.go} | 0 ...d_health_escaped_overall_switch_health.go} | 0 ...d_health_escaped_power_supplies_health.go} | 0 ...lth_escaped_temperature_sensors_health.go} | 0 ...tems_escaped_health_escaped_cpu_health.go} | 0 ...ems_escaped_health_escaped_fans_health.go} | 0 ...s_escaped_health_escaped_memory_health.go} | 0 ...d_health_escaped_overall_switch_health.go} | 0 ...d_health_escaped_power_supplies_health.go} | 0 ...lth_escaped_temperature_sensors_health.go} | 0 ..._clusters_escaped_compute_cluster_type.go} | 0 ...d_items_escaped_health_escaped_network.go} | 0 ..._escaped_health_escaped_overall_health.go} | 0 ...d_items_escaped_health_escaped_servers.go} | 0 ...d_items_escaped_health_escaped_storage.go} | 0 ...usters_escaped_hypervisor_cluster_type.go} | 0 ...ed_current_update_status_escaped_state.go} | 0 ...ponse_escaped_items_escaped_stack_type.go} | 0 ...t_response_escaped_items_escaped_state.go} | 0 ...re_catalogs_get_response_escaped_items.go} | 0 ...se_escaped_items_escaped_ai_essentials.go} | 0 ...ponse_escaped_items_escaped_hypervisor.go} | 0 ...caped_items_escaped_hypervisor_manager.go} | 0 ..._escaped_items_escaped_server_firmware.go} | 0 ...ems_escaped_storage_connection_manager.go} | 0 ...escaped_items_escaped_storage_software.go} | 0 ...items_escaped_systems_with_update_path.go} | 0 ...ogs_get_response_escaped_ai_essentials.go} | 0 ...talogs_get_response_escaped_hypervisor.go} | 0 ...s_get_response_escaped_server_firmware.go} | 0 ..._get_response_escaped_storage_software.go} | 0 ...ta1_systems_get_response_escaped_items.go} | 0 ...ems_escaped_associated_resource_counts.go} | 0 ...escaped_items_escaped_compute_clusters.go} | 0 ...se_escaped_items_escaped_compute_usage.go} | 0 ...d_items_escaped_config_analysis_status.go} | 0 ..._response_escaped_items_escaped_health.go} | 0 ...aped_items_escaped_hypervisor_clusters.go} | 0 ...esponse_escaped_items_escaped_location.go} | 0 ...se_escaped_items_escaped_software_info.go} | 0 ...are_info_escaped_current_update_status.go} | 0 ...tware_info_escaped_hypervisor_clusters.go} | 0 ...e_info_escaped_pc_for_ai_software_info.go} | 0 ...e_escaped_items_escaped_storage_system.go} | 0 ...se_escaped_items_escaped_storage_usage.go} | 0 ...ponse_escaped_items_escaped_system_vms.go} | 0 ...st_request_body_escaped_server_network.go} | 0 ...nse_escaped_associated_resource_counts.go} | 0 ..._get_response_escaped_compute_clusters.go} | 0 ...tem_get_response_escaped_compute_usage.go} | 0 ...esponse_escaped_config_analysis_status.go} | 0 ...stems_item_get_response_escaped_health.go} | 0 ...t_response_escaped_hypervisor_clusters.go} | 0 ...ems_item_get_response_escaped_location.go} | 0 ...tem_get_response_escaped_software_info.go} | 0 ...are_info_escaped_current_update_status.go} | 0 ...tware_info_escaped_hypervisor_clusters.go} | 0 ...e_info_escaped_pc_for_ai_software_info.go} | 0 ...em_get_response_escaped_storage_system.go} | 0 ...tem_get_response_escaped_storage_usage.go} | 0 ...s_item_get_response_escaped_system_vms.go} | 0 ...em_patch_request_body_escaped_location.go} | 0 ...nse_escaped_associated_resource_counts.go} | 0 ...atch_response_escaped_compute_clusters.go} | 0 ...m_patch_response_escaped_compute_usage.go} | 0 ...esponse_escaped_config_analysis_status.go} | 0 ...ems_item_patch_response_escaped_health.go} | 0 ...h_response_escaped_hypervisor_clusters.go} | 0 ...s_item_patch_response_escaped_location.go} | 0 ...m_patch_response_escaped_software_info.go} | 0 ...are_info_escaped_current_update_status.go} | 0 ...tware_info_escaped_hypervisor_clusters.go} | 0 ...e_info_escaped_pc_for_ai_software_info.go} | 0 ..._patch_response_escaped_storage_system.go} | 0 ...m_patch_response_escaped_storage_usage.go} | 0 ...item_patch_response_escaped_system_vms.go} | 0 ...tem_servers_get_response_escaped_items.go} | 0 ...aped_items_escaped_cloud_module_config.go} | 0 ...se_escaped_items_escaped_compute_usage.go} | 0 ...onse_escaped_items_escaped_consumed_by.go} | 0 ...et_response_escaped_items_escaped_gpus.go} | 0 ..._escaped_items_escaped_hypervisor_host.go} | 0 ...escaped_ilo_admin_user_password_secret.go} | 0 ...escaped_items_escaped_ilo_network_info.go} | 0 ...aped_items_escaped_ilo_user_credential.go} | 0 ...ped_ilo_user_credential_escaped_secret.go} | 0 ..._escaped_items_escaped_link_local_info.go} | 0 ...ed_items_escaped_operating_system_info.go} | 0 ...caped_items_escaped_os_user_credential.go} | 0 ...aped_os_user_credential_escaped_secret.go} | 0 ...tems_escaped_server_network_interfaces.go} | 0 ...t_response_escaped_cloud_module_config.go} | 0 ...ver_get_response_escaped_compute_usage.go} | 0 ...erver_get_response_escaped_consumed_by.go} | 0 ..._with_server_get_response_escaped_gpus.go} | 0 ...r_get_response_escaped_hypervisor_host.go} | 0 ...escaped_ilo_admin_user_password_secret.go} | 0 ..._get_response_escaped_ilo_network_info.go} | 0 ...t_response_escaped_ilo_user_credential.go} | 0 ...r_get_response_escaped_link_local_info.go} | 0 ...response_escaped_operating_system_info.go} | 0 ...et_response_escaped_os_user_credential.go} | 0 ...aped_os_user_credential_escaped_secret.go} | 0 ...onse_escaped_server_network_interfaces.go} | 0 ...rage_arrays_get_response_escaped_items.go} | 0 ...escaped_items_escaped_capacity_metrics.go} | 0 ...response_escaped_items_escaped_details.go} | 0 ..._response_escaped_items_escaped_health.go} | 0 ...orage_pools_get_response_escaped_items.go} | 0 ...on_partners_get_response_escaped_items.go} | 0 ...sponse_escaped_items_escaped_throttles.go} | 0 ...em_switches_get_response_escaped_items.go} | 0 ..._response_escaped_items_escaped_health.go} | 0 ...ith_switch_get_response_escaped_health.go} | 0 internal/sdk/virt/kiota-lock.json | 3 +- ...b6c2cf70bb0f85bc53f09a4982e6a5eaaf6d21.go} | 0 ...007bad909441116cbdae472b6e4c6222b889b0.go} | 0 ...eff7ae744e349252abd9dd1848566819d2615c.go} | 0 ...9fc121f0f94d6e69a5e87a8b01d208f029ca22.go} | 0 ...47d27e8021b2b86fa03cd760025de747958d7e.go} | 0 ...40b59dd7188d254f597b8254e775e56847ade2.go} | 0 ...eab6389e187bdcf2e74301e825e276a8ee9127.go} | 0 ...3a5bd4ebad56b87d05b5a407de3e44c02a9c64.go} | 0 ...21d42a0529a47361b4d4e85ab8a2dab5040e9d.go} | 0 ...31fbed55ede8d38ce3eadd0c73c7647a13caf8.go} | 0 ...dfc8b5688ba18469d2dea6376ce0fe5b80fb88.go} | 0 ...fa7ff385c13cd6937f304bd692167118f02d3b.go} | 0 ...36463ad71cee2f8a2f36f5ca8f207724a405c6.go} | 0 ...4774fd96696d029fc4b80c66ed8bbc032cb524.go} | 0 ...b1013f26779df7b32eb8762f1cd3cd486330fd.go} | 0 ...fcd2b85de8336c73d99f37c3602a632a12a863.go} | 0 ...9961115b2f3165afe86efe49a3838d0244283a.go} | 0 ...f6d5938f6f00bacf4a8a40d4e9a2584b5f9f50.go} | 0 ...59c5eb96f9654b6bd01ccb932d01ec414bdd8c.go} | 0 ...ba48e716f178ca9cb872d5630b79477a1b4c4f.go} | 0 ...b02885beb63e701104c755f615588a337af272.go} | 0 ...981f21c54ff0433191fa36e70c432adb219b50.go} | 0 ...e845b2b16010bed194cf08ff93450329b1bf48.go} | 0 ...d35a3f23d3f33c9ab459b0c85a63393cd994ab.go} | 0 ...17d223066926fcdde07202b5aeba97b64dca85.go} | 0 ...d015a286c2b507c339390b88de8cb0fc5b5d6c.go} | 0 ...a0c30295937aeb91744ad740bba42793f558cd.go} | 0 ...e56ac4beed1957905b7a19da8268e1f20e86a1.go} | 0 ...63cb92ae2f7dbcfae61827fbff82c9765215a8.go} | 0 ...0f05fc6fd7527e20e5e1ec1b8d2a364044b3fb.go} | 0 ...64c8d7756b465d04b6b5ae163223406bad24e5.go} | 0 ...35ff45cc095446fc039ad727d535f6b242cf4d.go} | 0 ...56c14ab140a3a4307d8d7855039728b585910e.go} | 0 ...abf2fb79b6b755047188bdc029627554db6999.go} | 0 ...029582e444d1acd2d0e8d648a82b5329d9a81f.go} | 0 ...04755c1a0d6b5af4350c013c4cacb628209de9.go} | 0 ...c41a368809b9df7a5742a5e94b115b0a9713b5.go} | 0 ...49d4b3f1f75d1c2ec86746012cda13f1262e57.go} | 0 ...b6039949a452c0e877ec497eb455403eb06891.go} | 0 ...4bf2119997e94e934aa618d9b5b30968fdd9bc.go} | 0 ...fbd7af735eee9cb48ecd00466bc3a64743d9a1.go} | 0 ...f484e44a4a35a66f5926b5b1fd397e548dcf89.go} | 0 ...fb853bb5753f66c80a7b6032da7eac8882d90e.go} | 0 ...50f4b951b77ed2fe60453e7f16cbc82c4baf04.go} | 0 ...120e81ce1b5eca413bbf15e4d199cf98f27cc6.go} | 0 ...e0eff9c5fc4710f6b6caac41edc0abd75e5492.go} | 0 ...c8fb2f5f7f6922e344d31b8caa72ba15c71bfe.go} | 0 ...9589a3849fe061559a838024d6b7e66350078a.go} | 0 ...2685f5e8543386f1626ffb98ae38730f6355c7.go} | 0 ...50c9a9c295aee05b8db8f17e4f6581975afde8.go} | 0 ...4efff74eb61fc9b684b9307a93ca4c5752bbec.go} | 0 ...a7fc5c69f7f4fbc5b3b4005c195e1f5cc3af75.go} | 0 ...ec7e7c6d3afc6522658533a529c91148f71bef.go} | 0 ...91ec862c4c96100461428373f563e7302bd9bb.go} | 0 ...7a9340e03113b9c70c8befe3074d669a3e829a.go} | 0 ...b52b3ff96f6bf3d6ff604874ea5c734f80c4a6.go} | 0 ...729f5d9e3a677f1d625b28d49c74e7f10cece4.go} | 0 ...92458f3b6de7d1975cf39a145f8e2d356dfebe.go} | 0 ...117def313f45f42a82604ae7e60eb6603b8f6b.go} | 0 ...a1b09bbf85c05fc9212bc93169820eb3df5b93.go} | 0 ...1d29d813e5271c220b153ea4c4843a29434a24.go} | 0 ...5c293ad627e67714d0ee3ad35111e089984f8c.go} | 0 ...fb3633636df28ae86f2dcf9e1f8b080e28d170.go} | 0 ...73832d92cfba30b068dbbd56ef95c995c41e7e.go} | 0 ...f49107df10ccb64ba3ab4c9b84ef6cf5d14356.go} | 0 ...6765bc5a93362cc2c162f43335ccfea9be5ba9.go} | 0 ...a67de2de1e1b366164f347e0ef1eafe95aea67.go} | 0 ...1920f1933432549656f0b0de22745bd8bd8c2e.go} | 0 ...9f8fffc782c077fc63614a6e24e08a8d23df74.go} | 0 ...f11fb6e8bb6cb01fef150b19d1b71110e5341b.go} | 0 ...6b7a6c825065f710184b3c109f9ea3ddac027a.go} | 0 ...2cd214d402d8f067462b38632dd6f300f5c64d.go} | 0 ...58dd675a459f16d25d99dc9515ac9f82371320.go} | 0 ...b7239473d2e30897567dc236beea4424f108c5.go} | 0 ...a996ae4d1f24dd2cd6e91c2d658bc44cbe83d2.go} | 0 ...ba30e7e38bf1bf248d63bd866cd6854689e9b4.go} | 0 ...f412f4999dc37888897c981b0f53808a036fb5.go} | 0 ...4fc7d0ad194b26f21baba7d7f760c0c93ef2a7.go} | 0 ...9a792506f04b8ae63426037e641684fa59ec1f.go} | 0 ...7201385aca58dca5bd3037c1091eb7a4c74783.go} | 0 ...e690556f8908701069d34cc6816c33015d1ede.go} | 0 ...004ab0356fc942a702caccb8b5d5d9b82fbb9c.go} | 0 ...2523c9a523749820f215bc3e81d7f46d31350e.go} | 0 ...f1b800fc3bf164e6e0f394cecae6484a2570ec.go} | 0 ...3d568df2a07662a4f2fd7071ebad8aabef37ce.go} | 0 ...68c2fce7d08ce79467bf665b303457188a2588.go} | 0 ...788ae88701bfcc3462ba08588c71ce2016d060.go} | 0 ...783c659b326cf0a37b0b38495f75641cd8ba05.go} | 0 ...d4ab29e0e1312d05ec3e712d987baed7f61ac1.go} | 0 ...b52cee8e7216b45cd4d2dcf0b854d38c14c4f1.go} | 0 ...c0599851a3017ad2703d980073e53d30764054.go} | 0 ...ebae4e54e2b25e41ba0425dd22f667b5257f24.go} | 0 ...84c6ac98fd594dd258e1a56e71650e13f1f87b.go} | 0 ...ca71a76ab1db5d92dadd7c0f38cd16ee871e87.go} | 0 ...8d3b09510752f1c31d843240484c5b6182d2bc.go} | 0 ...8910600c21cb5649a2e9f0f345e5d616917845.go} | 0 ...7083e29b65fafbc288b835f4cd649ef3f53633.go} | 0 ...67480bc0286bb9877ea1fde73710f888e986a3.go} | 0 ...4832cc2871e3a4a780b350a66ae91444a952f4.go} | 0 ...4cff11d9f0f6f2fb26dc1068a15a4853c3a654.go} | 0 ...1e03627a0e8e58921225af72e8e0fffa20fe7e.go} | 0 ...c4c61e8636ec465f0794ae829e06e4ba870ce1.go} | 0 ...60e1bede20065483e6fec186414957abf61a64.go} | 0 ...d2cc9e00944c19bb7b0e3d94122af4e3b1a113.go} | 0 ...bd6d2780fda2a79e51eac96da44724b61ff16d.go} | 0 ...827350422176bf46440eed67a4340aae33cd3e.go} | 0 ...7ea46de116ad35ac541293fa8099ade760eb89.go} | 0 ...b04840288321c77d757113f165604e28afc13f.go} | 0 ...9725254ff4de8933c4f4348e0e27abb53f78fb.go} | 0 ...3344a8949cd5b4ee5839ba0a9b9822ec2e8cc0.go} | 0 ...5b61ec557d1866190de6681544fa8e413a1eda.go} | 0 ...d6296b0005bc78dd81c8b04c6425d8a5419788.go} | 0 ...85e7bc5bf89d72eeb177c1880a798d3b305f1e.go} | 0 ...a3bb338f1465d31ce4f7c5e66e1b5b94e2f6b8.go} | 0 ...7da08a1dda00c4bda4ae3bf4fc21797def746e.go} | 0 ...92c1e9369e5bbe503052b8a3bfda26badaa774.go} | 0 ...d32316c3050c2f202474ca51cdd85a91b903d0.go} | 0 ...201598f57bb3a75a907439ec67352da02aafb8.go} | 0 ...81cc93acfafa629b40374ca34b2fad670abc3e.go} | 0 ...3144d42c0b902b0a5af4acb4df8dd3251158da.go} | 0 ...4a380a5b8c6e28606c2891e44bd699580a5fad.go} | 0 ...fcd1bdbe14c8ca7dc5945fd179ae5d1956acc0.go} | 0 ...4739b4570772cad5fcf0c86a91f6a0f920258a.go} | 0 ...f00969805f3459ade84f9e95f61f85e00ec037.go} | 0 ...a1ae3b3548cc240592aad4772810008e06d380.go} | 0 ...4eb10c93b97dcac2025f48f9ed01ccb39d8dc5.go} | 0 ...5ece44a6363f1f6c2deb238e2510281095b258.go} | 0 ...c409baa5151a8fff7e3771f7ef9e03a171333f.go} | 0 ...1747488d06b67267c7ad91b22d0af6f7519dc9.go} | 0 ...86615ab731eabf50d042009eada0eb3a793ea7.go} | 0 ...8ae20efb4b18123a2ff57960e1ba6501994e1a.go} | 0 ...c909cd846d13f0699abdccb0ad0f13e41a9f6d.go} | 0 ...e5635bc74a1c00bc31d6e3baa4499782b6a938.go} | 0 ...9614201a27f9878182def32b72bfe6374bd866.go} | 0 ...257042f0e4845f56f34fe724036c23709068d5.go} | 0 ...ccfd77030522f47e648045abac1a30948b9b1a.go} | 0 ...2733d676f90d21c73eb7aaf9a857b6e232746c.go} | 0 ...830690524728987c4818fbd3a45547355425a3.go} | 0 ...38ff7070d24759f823718c33a1861e040bf359.go} | 0 ...2d2b3ae50f20c87abf75afabf0f5671faafe2b.go} | 0 ...86553593e2b237df19505a26a25cb00c306754.go} | 0 ...365b605a4307ddb265b90eb49317cd1d555635.go} | 0 ...dcf7342c8474b488dae5b1bf5cdb506b686d10.go} | 0 ...esponse_escaped_items_escaped_csp_type.go} | 0 ...ry_refresh_info_escaped_inventory_type.go} | 0 ..._inventory_refresh_info_escaped_status.go} | 0 ...scaped_items_escaped_validation_status.go} | 0 ...nts_post_request_body_escaped_csp_type.go} | 0 ...ccounts_post_response_escaped_csp_type.go} | 0 ...ry_refresh_info_escaped_inventory_type.go} | 0 ..._inventory_refresh_info_escaped_status.go} | 0 ...ost_response_escaped_validation_status.go} | 0 ... account_get_response_escaped_csp_type.go} | 0 ...ry_refresh_info_escaped_inventory_type.go} | 0 ..._inventory_refresh_info_escaped_status.go} | 0 ...get_response_escaped_validation_status.go} | 0 ...esponse_escaped_items_escaped_csp_type.go} | 0 ...ce_group_get_response_escaped_csp_type.go} | 0 ...esponse_escaped_items_escaped_csp_type.go} | 0 ...h_subnet_get_response_escaped_csp_type.go} | 0 ...esponse_escaped_items_escaped_csp_type.go} | 0 ...cription_get_response_escaped_csp_type.go} | 0 ...esponse_escaped_items_escaped_csp_type.go} | 0 ...with_vpc_get_response_escaped_csp_type.go} | 0 ...esponse_escaped_items_escaped_csp_type.go} | 0 ...e_images_get_response_escaped_csp_type.go} | 0 ...89cb2a77a16dcf94100e080796cdf32ebc732c.go} | 0 ...scaped_backup_info_escaped_backup_type.go} | 0 ...escaped_csp_info_member1_escaped_state.go} | 0 ...escaped_csp_info_member2_escaped_state.go} | 0 ...esponse_escaped_items_escaped_csp_type.go} | 0 ...scaped_items_escaped_protection_status.go} | 0 ...t_response_escaped_items_escaped_state.go} | 0 ...ces_post_request_body_escaped_csp_type.go} | 0 ...scaped_backup_info_escaped_backup_type.go} | 0 ...escaped_csp_info_member1_escaped_state.go} | 0 ...escaped_csp_info_member2_escaped_state.go} | 0 ...nstances_get_response_escaped_csp_type.go} | 0 ...o_escaped_schedule_info_escaped_status.go} | 0 ...get_response_escaped_protection_status.go} | 0 ...e_instances_get_response_escaped_state.go} | 0 ...80cd6e14d4628c1ea026bd7c04ff13d7e9fcec.go} | 0 ...231efb85a730562c280cff595e8abe38acb9ad.go} | 0 ...esponse_escaped_items_escaped_csp_type.go} | 0 ...191c0d1698d17e0baed12c94e9c67d74dddddd.go} | 0 ...2c04297cb6e5e141b1c402570a329f5740e7ad.go} | 0 ...bc3e218397b8d18bd2e7f71202d4cd583a0768.go} | 0 ...d9387ffcb70e3e1f77b17221e228dcf4cece5f.go} | 0 ...6ae7b01023614a202d3b0f4f8b4face54091a2.go} | 0 ...r1_escaped_supported_root_device_types.go} | 0 ...ember1_escaped_supported_usage_classes.go} | 0 ...ce_types_get_response_escaped_csp_type.go} | 0 ...0dcd1b41609f351deca409c671a67e72477d69.go} | 0 ...8d1f689be7471f6ad5ae700b7478d8218ad96e.go} | 0 ...items_escaped_backup_info_escaped_type.go} | 0 ...scaped_items_escaped_protection_status.go} | 0 ...ms_escaped_refresh_info_escaped_status.go} | 0 ...t_response_escaped_items_escaped_state.go} | 0 ...ponse_escaped_backup_info_escaped_type.go} | 0 ...o_escaped_schedule_info_escaped_status.go} | 0 ...get_response_escaped_protection_status.go} | 0 ...se_escaped_refresh_info_escaped_status.go} | 0 ...s_instances_get_response_escaped_state.go} | 0 ...2b7af4f4d822c79da89092ce477502fdd198f3.go} | 0 ...scaped_backup_info_escaped_backup_type.go} | 0 ...esponse_escaped_items_escaped_csp_type.go} | 0 ...scaped_items_escaped_protection_status.go} | 0 ...t_response_escaped_items_escaped_state.go} | 0 ...scaped_backup_info_escaped_backup_type.go} | 0 ..._volumes_get_response_escaped_csp_type.go} | 0 ...o_escaped_schedule_info_escaped_status.go} | 0 ...get_response_escaped_protection_status.go} | 0 ...csp_volumes_get_response_escaped_state.go} | 0 ...27aae67f9c5805d597e2f4686e0cd7fa5c0b5f.go} | 0 ...caped_items_escaped_allowed_operations.go} | 0 ...esponse_escaped_items_escaped_app_type.go} | 0 ...items_escaped_datastore_classification.go} | 0 ...e_escaped_items_escaped_datastore_type.go} | 0 ...on_policy_applied_at_info_escaped_type.go} | 0 ...scaped_items_escaped_protection_status.go} | 0 ...o_escaped_partner_details_escaped_mode.go} | 0 ...t_response_escaped_items_escaped_state.go} | 0 ..._response_escaped_items_escaped_status.go} | 0 ...caped_storage_system_info_escaped_type.go} | 0 ...st_request_body_escaped_datastore_type.go} | 0 ...info_escaped_encryption_escaped_cipher.go} | 0 ...et_response_escaped_allowed_operations.go} | 0 ...tastores_get_response_escaped_app_type.go} | 0 ...ponse_escaped_datastore_classification.go} | 0 ...es_get_response_escaped_datastore_type.go} | 0 ...on_policy_applied_at_info_escaped_type.go} | 0 ...get_response_escaped_protection_status.go} | 0 ...o_escaped_partner_details_escaped_mode.go} | 0 ...ed_partner_details_escaped_vendor_name.go} | 0 ... datastores_get_response_escaped_state.go} | 0 ...datastores_get_response_escaped_status.go} | 0 ...caped_storage_system_info_escaped_type.go} | 0 ...esponse_escaped_items_escaped_app_type.go} | 0 ...nse_escaped_items_escaped_cluster_type.go} | 0 ...t_response_escaped_items_escaped_state.go} | 0 ..._response_escaped_items_escaped_status.go} | 0 ... cluster_get_response_escaped_app_type.go} | 0 ...ster_get_response_escaped_cluster_type.go} | 0 ... => cluster_get_response_escaped_state.go} | 0 ...=> cluster_get_response_escaped_status.go} | 0 ...esponse_escaped_items_escaped_app_type.go} | 0 ...sponse_escaped_items_escaped_host_type.go} | 0 ...items_escaped_parent_info_escaped_type.go} | 0 ...t_response_escaped_items_escaped_state.go} | 0 ..._response_escaped_items_escaped_status.go} | 0 ...d_storage_adapters_info_escaped_status.go} | 0 ... => host_get_response_escaped_app_type.go} | 0 ...=> host_get_response_escaped_host_type.go} | 0 ...ponse_escaped_parent_info_escaped_type.go} | 0 ....go => host_get_response_escaped_state.go} | 0 ...go => host_get_response_escaped_status.go} | 0 ...d_storage_adapters_info_escaped_status.go} | 0 ...esponse_escaped_items_escaped_app_type.go} | 0 ..._items_escaped_hypervisor_manager_type.go} | 0 ...t_response_escaped_items_escaped_state.go} | 0 ..._response_escaped_items_escaped_status.go} | 0 ...onse_escaped_items_escaped_folder_type.go} | 0 ...older_get_response_escaped_folder_type.go} | 0 ...pervisor_get_response_escaped_app_type.go} | 0 ...sponse_escaped_hypervisor_manager_type.go} | 0 ... hypervisor_get_response_escaped_state.go} | 0 ...hypervisor_get_response_escaped_status.go} | 0 ...sponse_escaped_items_escaped_file_type.go} | 0 ...y_image_get_response_escaped_file_type.go} | 0 ... => network_get_response_escaped_state.go} | 0 ...=> network_get_response_escaped_status.go} | 0 ...t_response_escaped_items_escaped_state.go} | 0 ..._response_escaped_items_escaped_status.go} | 0 ....go => pool_get_response_escaped_state.go} | 0 ...go => pool_get_response_escaped_status.go} | 0 ...t_response_escaped_items_escaped_state.go} | 0 ..._response_escaped_items_escaped_status.go} | 0 ...e.go => tag_get_response_escaped_state.go} | 0 ...t_response_escaped_items_escaped_state.go} | 0 ...a0472f368cc924bbae4dcdf334c0c28fc3b1a3.go} | 0 ...e5ba3366659568acb95dc9814e9cf3cd0b0459.go} | 0 ...55b9f85686fc6b749d79b4cf20e9c652823613.go} | 0 ...efd499f6551d2eb9a53a0e114535f2210806f0.go} | 0 ...f28a20717cb262316cdccfc9f9100489d04596.go} | 0 ...0c27f79de5238456ece53604ddd6aed9cbda47.go} | 0 ...s_escaped_network_details_escaped_type.go} | 0 ...ped_network_adapters_escaped_operation.go} | 0 ..._escaped_network_adapters_escaped_type.go} | 0 ...disks_escaped_disk_config_escaped_type.go} | 0 ...scaped_virtual_disks_escaped_operation.go} | 0 ...et_response_escaped_allowed_operations.go} | 0 ...ware_escaped_tools_info_escaped_status.go} | 0 ...d_app_info_escaped_vmware_escaped_type.go} | 0 ...machines_get_response_escaped_app_type.go} | 0 ...response_escaped_graphics_escaped_type.go} | 0 ...sponse_escaped_guest_info_escaped_type.go} | 0 ...work_adapters_escaped_mac_address_type.go} | 0 ..._escaped_network_details_escaped_state.go} | 0 ...hines_get_response_escaped_power_state.go} | 0 ...on_policy_applied_at_info_escaped_type.go} | 0 ...get_response_escaped_protection_status.go} | 0 ...al_machines_get_response_escaped_state.go} | 0 ...l_machines_get_response_escaped_status.go} | 0 ...d_app_info_escaped_vmware_escaped_type.go} | 0 ...get_response_escaped_vm_classification.go} | 0 ...caped_storage_system_info_escaped_type.go} | 0 ...caped_items_escaped_allowed_operations.go} | 0 ...d_app_info_escaped_vmware_escaped_type.go} | 0 ...esponse_escaped_items_escaped_app_type.go} | 0 ...ed_items_escaped_graphics_escaped_type.go} | 0 ..._items_escaped_guest_info_escaped_type.go} | 0 ...work_adapters_escaped_mac_address_type.go} | 0 ...onse_escaped_items_escaped_power_state.go} | 0 ...on_policy_applied_at_info_escaped_type.go} | 0 ...scaped_items_escaped_protection_status.go} | 0 ...t_response_escaped_items_escaped_state.go} | 0 ..._response_escaped_items_escaped_status.go} | 0 ...scaped_items_escaped_vm_classification.go} | 0 ...image_source_escaped_image_source_type.go} | 0 ...rk_config_escaped_ip_allocation_policy.go} | 0 ...orage_config_escaped_provisioning_type.go} | 0 ...sp_accounts_get_response_escaped_items.go} | 0 ...d_items_escaped_inventory_refresh_info.go} | 0 ...aped_items_escaped_onboarding_template.go} | 0 ...esponse_escaped_inventory_refresh_info.go} | 0 ...t_response_escaped_onboarding_template.go} | 0 ...urce_groups_get_response_escaped_items.go} | 0 ...nse_escaped_items_escaped_account_info.go} | 0 ...esponse_escaped_items_escaped_csp_info.go} | 0 ...scaped_items_escaped_subscription_info.go} | 0 ...ce_group_get_response_escaped_csp_info.go} | 0 ...csp_subnets_get_response_escaped_items.go} | 5 + ...nse_escaped_items_escaped_account_info.go} | 0 ...escaped_items_escaped_csp_info_member1.go} | 0 ...escaped_items_escaped_csp_info_member2.go} | 0 ...esponse_escaped_items_escaped_vpc_info.go} | 0 ...p_subnets_item_with_subnet_get_response.go | 5 + ...bnet_get_response_escaped_account_info.go} | 0 ..._get_response_escaped_csp_info_member1.go} | 0 ..._get_response_escaped_csp_info_member2.go} | 0 ...h_subnet_get_response_escaped_vpc_info.go} | 0 ...bscriptions_get_response_escaped_items.go} | 0 ...nse_escaped_items_escaped_account_info.go} | 0 ...tion_get_response_escaped_account_info.go} | 0 ...sp_tag_keys_get_response_escaped_items.go} | 0 ...em_csp_tags_get_response_escaped_items.go} | 0 ...em_csp_vpcs_get_response_escaped_items.go} | 5 + ...nse_escaped_items_escaped_account_info.go} | 0 ...escaped_items_escaped_csp_info_member1.go} | 0 ...escaped_items_escaped_csp_info_member2.go} | 0 ...scaped_items_escaped_subscription_info.go} | 0 ...tem_csp_vpcs_item_with_vpc_get_response.go | 5 + ..._vpc_get_response_escaped_account_info.go} | 0 ..._get_response_escaped_csp_info_member1.go} | 0 ..._get_response_escaped_csp_info_member2.go} | 0 ...get_response_escaped_subscription_info.go} | 0 ...esponse_escaped_inventory_refresh_info.go} | 0 ...t_response_escaped_onboarding_template.go} | 0 ...hine_images_get_response_escaped_items.go} | 5 + ...escaped_items_escaped_csp_info_member1.go} | 0 ...escaped_items_escaped_csp_info_member2.go} | 0 ...ed_csp_info_member2_escaped_disallowed.go} | 0 ...aped_csp_info_member2_escaped_features.go} | 0 ...csp_info_member2_escaped_os_disk_image.go} | 0 ..._csp_info_member2_escaped_version_info.go} | 0 ...es_item_csp_machine_images_get_response.go | 5 + ..._get_response_escaped_csp_info_member1.go} | 0 ..._get_response_escaped_csp_info_member2.go} | 0 ...tance_types_get_response_escaped_items.go} | 5 + ...escaped_items_escaped_csp_info_member1.go} | 0 ...escaped_items_escaped_csp_info_member2.go} | 0 ...csp_machine_instance_types_get_response.go | 5 + ...e_instances_get_response_escaped_items.go} | 5 + ...nse_escaped_items_escaped_account_info.go} | 0 ...onse_escaped_items_escaped_backup_info.go} | 0 ...escaped_items_escaped_csp_info_member1.go} | 0 ...aped_csp_info_member1_escaped_csp_tags.go} | 0 ...escaped_items_escaped_csp_info_member2.go} | 0 ...aped_csp_info_member2_escaped_csp_tags.go} | 0 ...ed_items_escaped_protection_group_info.go} | 0 ...aped_items_escaped_protection_job_info.go} | 0 ...aped_items_escaped_resource_group_info.go} | 0 ...scaped_items_escaped_subscription_info.go} | 0 ...d_items_escaped_volume_attachment_info.go} | 0 ...item_csp_machine_instances_get_response.go | 5 + ...nces_get_response_escaped_account_info.go} | 0 ...ances_get_response_escaped_backup_info.go} | 0 ..._get_response_escaped_csp_info_member1.go} | 0 ..._get_response_escaped_csp_info_member2.go} | 0 ...response_escaped_protection_group_info.go} | 0 ...t_response_escaped_protection_job_info.go} | 0 ...t_response_escaped_resource_group_info.go} | 0 ...get_response_escaped_subscription_info.go} | 0 ...esponse_escaped_volume_attachment_info.go} | 0 ...csp_machine_instances_post_request_body.go | 5 + ...aped_csp_machine_instance_info_member1.go} | 0 ...aped_csp_machine_instance_info_member2.go} | 0 ...st_request_body_escaped_csp_tags_added.go} | 0 ...s_instances_get_response_escaped_items.go} | 0 ...nse_escaped_items_escaped_account_info.go} | 0 ...onse_escaped_items_escaped_backup_info.go} | 0 ...esponse_escaped_items_escaped_csp_info.go} | 0 ...tems_escaped_csp_info_escaped_csp_tags.go} | 0 ..._escaped_csp_info_escaped_network_info.go} | 0 ..._escaped_csp_info_escaped_storage_info.go} | 0 ...esponse_escaped_items_escaped_metadata.go} | 0 ...aped_items_escaped_protection_job_info.go} | 0 ...nse_escaped_items_escaped_refresh_info.go} | 0 ...nces_get_response_escaped_account_info.go} | 0 ...ances_get_response_escaped_backup_info.go} | 0 ...nstances_get_response_escaped_csp_info.go} | 0 ...onse_escaped_csp_info_escaped_csp_tags.go} | 0 ..._escaped_csp_info_escaped_network_info.go} | 0 ..._escaped_csp_info_escaped_storage_info.go} | 0 ...nstances_get_response_escaped_metadata.go} | 0 ...t_response_escaped_protection_job_info.go} | 0 ...nces_get_response_escaped_refresh_info.go} | 0 ...csp_volumes_get_response_escaped_items.go} | 5 + ...nse_escaped_items_escaped_account_info.go} | 0 ...onse_escaped_items_escaped_backup_info.go} | 0 ...escaped_items_escaped_csp_info_member1.go} | 0 ...aped_csp_info_member1_escaped_csp_tags.go} | 0 ...escaped_items_escaped_csp_info_member2.go} | 0 ...aped_csp_info_member2_escaped_csp_tags.go} | 0 ...caped_machine_instance_attachment_info.go} | 0 ...ed_items_escaped_protection_group_info.go} | 0 ...aped_items_escaped_protection_job_info.go} | 0 ...protection_job_info_escaped_asset_info.go} | 0 ...tection_job_info_escaped_schedule_info.go} | 0 ...aped_items_escaped_resource_group_info.go} | 0 ...scaped_items_escaped_subscription_info.go} | 0 ...p_volumes_item_csp_volumes_get_response.go | 5 + ...umes_get_response_escaped_account_info.go} | 0 ...lumes_get_response_escaped_backup_info.go} | 0 ..._get_response_escaped_csp_info_member1.go} | 0 ...aped_csp_info_member1_escaped_csp_tags.go} | 0 ..._get_response_escaped_csp_info_member2.go} | 0 ...aped_csp_info_member2_escaped_csp_tags.go} | 0 ...caped_machine_instance_attachment_info.go} | 0 ...response_escaped_protection_group_info.go} | 0 ...t_response_escaped_protection_job_info.go} | 0 ...protection_job_info_escaped_asset_info.go} | 0 ...tection_job_info_escaped_schedule_info.go} | 0 ...t_response_escaped_resource_group_info.go} | 0 ...get_response_escaped_subscription_info.go} | 0 ...st_request_body_escaped_csp_tags_added.go} | 0 ..._datastores_get_response_escaped_items.go} | 0 ...nse_escaped_items_escaped_cluster_info.go} | 0 ...escaped_items_escaped_datacenters_info.go} | 0 ...onse_escaped_items_escaped_folder_info.go} | 0 ...ponse_escaped_items_escaped_hosts_info.go} | 0 ..._items_escaped_hypervisor_manager_info.go} | 0 ...aped_items_escaped_protection_job_info.go} | 0 ...aped_protection_policy_applied_at_info.go} | 0 ...items_escaped_provisioning_policy_info.go} | 0 ...escaped_items_escaped_replication_info.go} | 0 ...plication_info_escaped_partner_details.go} | 0 ...ped_items_escaped_storage_systems_info.go} | 0 ...tems_escaped_vm_protection_groups_info.go} | 0 ...nse_escaped_items_escaped_volumes_info.go} | 0 ...lumes_info_escaped_storage_folder_info.go} | 0 ...volumes_info_escaped_storage_pool_info.go} | 0 ...lumes_info_escaped_storage_system_info.go} | 0 ...d_volumes_info_escaped_volume_set_info.go} | 0 ...ores_get_response_escaped_cluster_info.go} | 0 ..._get_response_escaped_datacenters_info.go} | 0 ...tores_get_response_escaped_folder_info.go} | 0 ...stores_get_response_escaped_hosts_info.go} | 0 ...sponse_escaped_hypervisor_manager_info.go} | 0 ...t_response_escaped_protection_job_info.go} | 0 ...aped_protection_policy_applied_at_info.go} | 0 ...ponse_escaped_provisioning_policy_info.go} | 0 ..._get_response_escaped_replication_info.go} | 0 ...plication_info_escaped_partner_details.go} | 0 ..._response_escaped_storage_systems_info.go} | 0 ...onse_escaped_vm_protection_groups_info.go} | 0 ...ores_get_response_escaped_volumes_info.go} | 0 ...lumes_info_escaped_storage_folder_info.go} | 0 ...volumes_info_escaped_storage_pool_info.go} | 0 ...lumes_info_escaped_storage_system_info.go} | 0 ...d_volumes_info_escaped_volume_set_info.go} | 0 ...astores_patch_request_body_escaped_qos.go} | 0 ..._post_request_body_escaped_volume_info.go} | 0 ...escaped_volume_info_escaped_encryption.go} | 0 ...t_body_escaped_volume_info_escaped_qos.go} | 0 ...or_clusters_get_response_escaped_items.go} | 0 ...esponse_escaped_items_escaped_app_info.go} | 0 ..._items_escaped_app_info_escaped_vmware.go} | 0 ...items_escaped_cluster_perf_metric_info.go} | 0 ...escaped_items_escaped_hypervisor_hosts.go} | 0 ..._items_escaped_hypervisor_manager_info.go} | 0 ..._cluster_get_response_escaped_app_info.go} | 0 ...sponse_escaped_app_info_escaped_vmware.go} | 0 ...ponse_escaped_cluster_perf_metric_info.go} | 0 ..._get_response_escaped_hypervisor_hosts.go} | 0 ...sponse_escaped_hypervisor_manager_info.go} | 0 ...visor_hosts_get_response_escaped_items.go} | 0 ...esponse_escaped_items_escaped_app_info.go} | 0 ..._items_escaped_app_info_escaped_vmware.go} | 0 ...esponse_escaped_items_escaped_cpu_info.go} | 0 ...onse_escaped_items_escaped_cpu_sockets.go} | 0 ...aped_items_escaped_host_network_system.go} | 0 ...ost_network_system_escaped_port_groups.go} | 0 ...ed_items_escaped_host_perf_metric_info.go} | 0 ..._items_escaped_hypervisor_manager_info.go} | 0 ...onse_escaped_items_escaped_parent_info.go} | 0 ...ed_items_escaped_storage_adapters_info.go} | 0 ...tem_host_get_response_escaped_app_info.go} | 0 ...sponse_escaped_app_info_escaped_vmware.go} | 0 ...tem_host_get_response_escaped_cpu_info.go} | 0 ..._host_get_response_escaped_cpu_sockets.go} | 0 ...t_response_escaped_host_network_system.go} | 0 ...ost_network_system_escaped_port_groups.go} | 0 ...response_escaped_host_perf_metric_info.go} | 0 ...sponse_escaped_hypervisor_manager_info.go} | 0 ..._host_get_response_escaped_parent_info.go} | 0 ...response_escaped_storage_adapters_info.go} | 0 ...or_managers_get_response_escaped_items.go} | 0 ...esponse_escaped_items_escaped_app_info.go} | 0 ..._items_escaped_app_info_escaped_vmware.go} | 0 ...d_items_escaped_data_orchestrator_info.go} | 0 ..._escaped_data_services_connectors_info.go} | 0 ...anagers_hypervisor_item_request_builder.go | 43 +- ...tem_folders_get_response_escaped_items.go} | 0 ...esponse_escaped_items_escaped_app_info.go} | 0 ..._items_escaped_app_info_escaped_vmware.go} | 0 ..._items_escaped_hypervisor_manager_info.go} | 0 ...caped_items_escaped_parent_folder_info.go} | 0 ...onse_escaped_items_escaped_sub_folders.go} | 0 ...m_folder_get_response_escaped_app_info.go} | 0 ...sponse_escaped_app_info_escaped_vmware.go} | 0 ...sponse_escaped_hypervisor_manager_info.go} | 0 ...et_response_escaped_parent_folder_info.go} | 0 ...older_get_response_escaped_sub_folders.go} | 0 ...pervisor_get_response_escaped_app_info.go} | 0 ...sponse_escaped_app_info_escaped_vmware.go} | 0 ...esponse_escaped_data_orchestrator_info.go} | 0 ..._escaped_data_services_connectors_info.go} | 0 ...rary_images_get_response_escaped_items.go} | 0 ...quest_body_member1_escaped_credentials.go} | 0 ...em_networks_get_response_escaped_items.go} | 0 ...esponse_escaped_items_escaped_app_info.go} | 0 ..._items_escaped_app_info_escaped_vmware.go} | 0 ...nse_escaped_items_escaped_cluster_info.go} | 0 ...ponse_escaped_items_escaped_hosts_info.go} | 0 ..._items_escaped_hypervisor_manager_info.go} | 0 ..._network_get_response_escaped_app_info.go} | 0 ...sponse_escaped_app_info_escaped_vmware.go} | 0 ...work_get_response_escaped_cluster_info.go} | 0 ...etwork_get_response_escaped_hosts_info.go} | 0 ...sponse_escaped_hypervisor_manager_info.go} | 0 ...ource_pools_get_response_escaped_items.go} | 0 ...esponse_escaped_items_escaped_app_info.go} | 0 ...nse_escaped_items_escaped_cluster_info.go} | 0 ...ponse_escaped_items_escaped_hosts_info.go} | 0 ...ponse_escaped_items_escaped_owner_info.go} | 0 ...tem_pool_get_response_escaped_app_info.go} | 0 ..._response_escaped_child_resource_pools.go} | 0 ...pool_get_response_escaped_cluster_info.go} | 0 ...m_pool_get_response_escaped_hosts_info.go} | 0 ...m_pool_get_response_escaped_owner_info.go} | 0 ...s_item_tags_get_response_escaped_items.go} | 0 ...ped_items_escaped_associated_resources.go} | 0 ..._items_escaped_hypervisor_manager_info.go} | 0 ...tems_escaped_vm_protection_groups_info.go} | 0 ..._response_escaped_associated_resources.go} | 0 ...sponse_escaped_hypervisor_manager_info.go} | 0 ...onse_escaped_vm_protection_groups_info.go} | 0 ...quest_body_member1_escaped_credentials.go} | 0 ...ta1_hypervisor_managers_request_builder.go | 41 +- ...al_machines_get_response_escaped_items.go} | 0 ...esponse_escaped_items_escaped_app_info.go} | 0 ..._items_escaped_app_info_escaped_vmware.go} | 0 ...nse_escaped_items_escaped_cluster_info.go} | 0 ...nse_escaped_items_escaped_compute_info.go} | 0 ...onse_escaped_items_escaped_folder_info.go} | 0 ...esponse_escaped_items_escaped_graphics.go} | 0 ...ponse_escaped_items_escaped_guest_info.go} | 0 ...tems_escaped_guest_info_escaped_routes.go} | 0 ...aped_guest_info_escaped_vm_dns_setting.go} | 0 ...scaped_items_escaped_high_availability.go} | 0 ...sponse_escaped_items_escaped_host_info.go} | 0 ..._items_escaped_hypervisor_manager_info.go} | 0 ...escaped_items_escaped_network_adapters.go} | 0 ...twork_adapters_escaped_network_details.go} | 0 ...aped_items_escaped_protection_job_info.go} | 0 ...aped_protection_policy_applied_at_info.go} | 0 ...ped_items_escaped_storage_systems_info.go} | 0 ...items_escaped_virtual_ahci_controllers.go} | 0 ...se_escaped_items_escaped_virtual_disks.go} | 0 ...escaped_virtual_disks_escaped_app_info.go} | 0 ..._items_escaped_virtual_ide_controllers.go} | 0 ...items_escaped_virtual_nvme_controllers.go} | 0 ...items_escaped_virtual_scsi_controllers.go} | 0 ...aped_items_escaped_vm_perf_metric_info.go} | 0 ...tems_escaped_vm_protection_groups_info.go} | 0 ...nse_escaped_items_escaped_volumes_info.go} | 0 ...lumes_info_escaped_storage_folder_info.go} | 0 ...volumes_info_escaped_storage_pool_info.go} | 0 ...lumes_info_escaped_storage_system_info.go} | 0 ...d_volumes_info_escaped_volume_set_info.go} | 0 ...s_post_request_body_escaped_cloud_init.go} | 0 ...post_request_body_escaped_linux_config.go} | 0 ...st_request_body_escaped_cpu_mem_config.go} | 0 ...ody_escaped_cpu_mem_config_escaped_cpu.go} | 0 ..._request_body_escaped_network_adapters.go} | 0 ...ost_request_body_escaped_virtual_disks.go} | 0 ...machines_get_response_escaped_app_info.go} | 0 ...sponse_escaped_app_info_escaped_vmware.go} | 0 ...ines_get_response_escaped_cluster_info.go} | 0 ...ines_get_response_escaped_compute_info.go} | 0 ...hines_get_response_escaped_folder_info.go} | 0 ...machines_get_response_escaped_graphics.go} | 0 ...chines_get_response_escaped_guest_info.go} | 0 ...onse_escaped_guest_info_escaped_routes.go} | 0 ...get_response_escaped_high_availability.go} | 0 ...achines_get_response_escaped_host_info.go} | 0 ...sponse_escaped_hypervisor_manager_info.go} | 0 ..._get_response_escaped_network_adapters.go} | 0 ...t_response_escaped_protection_job_info.go} | 0 ..._response_escaped_storage_systems_info.go} | 0 ...ponse_escaped_virtual_ahci_controllers.go} | 0 ...nes_get_response_escaped_virtual_disks.go} | 0 ...escaped_virtual_disks_escaped_app_info.go} | 0 ...sponse_escaped_virtual_ide_controllers.go} | 0 ...ponse_escaped_virtual_nvme_controllers.go} | 0 ...ponse_escaped_virtual_scsi_controllers.go} | 0 ...t_response_escaped_vm_perf_metric_info.go} | 0 ...onse_escaped_vm_protection_groups_info.go} | 0 ...ines_get_response_escaped_volumes_info.go} | 0 ..._post_request_body_escaped_destination.go} | 0 ...post_request_body_escaped_image_source.go} | 0 ...st_request_body_escaped_network_config.go} | 0 ...network_config_escaped_network_mapping.go} | 0 ...st_request_body_escaped_storage_config.go} | 0 ...ped_storage_config_escaped_volume_info.go} | 0 ...config_escaped_volume_info_escaped_qos.go} | 0 ...es_post_request_body_escaped_vm_config.go} | 0 ...aped_vm_config_escaped_property_config.go} | 0 1618 files changed, 101911 insertions(+), 76 deletions(-) rename internal/sdk/async/dataservices/{v1beta1_async_operations_get_response_items.go => v1beta1_async_operations_get_response_escaped_items.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_get_response_items_additional_details.go => v1beta1_async_operations_get_response_escaped_items_escaped_additional_details.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_get_response_items_associated_resources.go => v1beta1_async_operations_get_response_escaped_items_escaped_associated_resources.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_get_response_items_error.go => v1beta1_async_operations_get_response_escaped_items_escaped_error.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_get_response_items_groups.go => v1beta1_async_operations_get_response_escaped_items_escaped_groups.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_get_response_items_log_messages.go => v1beta1_async_operations_get_response_escaped_items_escaped_log_messages.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_get_response_items_parent.go => v1beta1_async_operations_get_response_escaped_items_escaped_parent.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_get_response_items_recommendations.go => v1beta1_async_operations_get_response_escaped_items_escaped_recommendations.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_get_response_items_root_operation.go => v1beta1_async_operations_get_response_escaped_items_escaped_root_operation.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_item_async_operations_get_response_additional_details.go => v1beta1_async_operations_item_async_operations_get_response_escaped_additional_details.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_item_async_operations_get_response_associated_resources.go => v1beta1_async_operations_item_async_operations_get_response_escaped_associated_resources.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_item_async_operations_get_response_error.go => v1beta1_async_operations_item_async_operations_get_response_escaped_error.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_item_async_operations_get_response_groups.go => v1beta1_async_operations_item_async_operations_get_response_escaped_groups.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_item_async_operations_get_response_log_messages.go => v1beta1_async_operations_item_async_operations_get_response_escaped_log_messages.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_item_async_operations_get_response_parent.go => v1beta1_async_operations_item_async_operations_get_response_escaped_parent.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_item_async_operations_get_response_recommendations.go => v1beta1_async_operations_item_async_operations_get_response_escaped_recommendations.go} (100%) rename internal/sdk/async/dataservices/{v1beta1_async_operations_item_async_operations_get_response_root_operation.go => v1beta1_async_operations_item_async_operations_get_response_escaped_root_operation.go} (100%) create mode 100644 internal/sdk/dataservices/api_client.go create mode 100644 internal/sdk/dataservices/dataservices/0e8907411e5667c0ff819ea8ac919f6126b46458034607019af916a124486dfd.go create mode 100644 internal/sdk/dataservices/dataservices/1445d6b17c974f84a94765a1239f5337f0613b516a7dde2282e1895be4ee7a2f.go create mode 100644 internal/sdk/dataservices/dataservices/15adc0ddde3559ec8550f279da18330fe900d3aec6d3c2e71932fce3d744ac3d.go create mode 100644 internal/sdk/dataservices/dataservices/1a76d09e5d0fbb5b9b88088c2a1bf6b2c9f19830c8e84118311bd6082e9de94a.go create mode 100644 internal/sdk/dataservices/dataservices/240c7aad0e7df5d3094e4e5a8b7ebf60bb50f6070b179a45a5352955467461f6.go create mode 100644 internal/sdk/dataservices/dataservices/2b4f67cc83d01402f3e7b7f0a94a8b08176564d1a86a5c3832ad88f636ff5b59.go create mode 100644 internal/sdk/dataservices/dataservices/338232b4ff90debadb46c2ee0e6f2e29e8107091d190ca6321f88b2a4cd5c41d.go create mode 100644 internal/sdk/dataservices/dataservices/3753350379effcfbc33e5d909dd47c09aca6031616d66b451199973a66672e00.go create mode 100644 internal/sdk/dataservices/dataservices/39d48924939d27a3e325f15c6677b3cf4cff23668274ae2a8deddd1912bc06a1.go create mode 100644 internal/sdk/dataservices/dataservices/52db5b4d0347073bb2d1ef5619fe1d71654559d9388e5965aada930171026481.go create mode 100644 internal/sdk/dataservices/dataservices/55a96aa565767544937d7639a1d3ba17d15a25aed6ebb0eea1c4715f93c2497d.go create mode 100644 internal/sdk/dataservices/dataservices/56b65ff6814800f49e550b3d167541c502cb1068ad7413e392f2eb3921fb84d4.go create mode 100644 internal/sdk/dataservices/dataservices/6e7edecff7cdf03482511ac0dd9205039bd10c62d775baaf08523d69f9888a61.go create mode 100644 internal/sdk/dataservices/dataservices/75b69046bd5efca5dd37add1fd9c603f9d8929011da2c61503283b8837f59a59.go create mode 100644 internal/sdk/dataservices/dataservices/7da011e81d63aeaccd7d22f27a9ea8f530a7fb60af61f59a92423214fac22cac.go create mode 100644 internal/sdk/dataservices/dataservices/7f7fa7b299f188f1ca2bd6afb87c011e10baa0dc0061c493f47c5df061f84375.go create mode 100644 internal/sdk/dataservices/dataservices/9564bb1f2f0de77550af3be54bca675217c4f47ad414113937b275105d668bf6.go create mode 100644 internal/sdk/dataservices/dataservices/972940733cfdb4ab9c226b76f3dd6241b6c9a0f3c850e0ea026f3c7f23e09647.go create mode 100644 internal/sdk/dataservices/dataservices/99686df2ae3f892cb2d0bc63baa035bfbfca9f91baeccf52b29a83371d501232.go create mode 100644 internal/sdk/dataservices/dataservices/9eb56bbe5bfe0b73a0610cab316907937d6e0a0e524a9b868aa6a85aee610394.go create mode 100644 internal/sdk/dataservices/dataservices/9fc6a2ecbb14a7b063f1412543cf05ef11864b44c0fde4f4747f1e18afe4f177.go create mode 100644 internal/sdk/dataservices/dataservices/a0e2c2d87df1d6a67c27e7ce201120aa092f57effb809692d56d64a78dc5bef5.go create mode 100644 internal/sdk/dataservices/dataservices/a3f15fc5a51d6ec869059469f1bcd82c5ebdbfc7e88da44d0d51e1fcd9ffa59a.go create mode 100644 internal/sdk/dataservices/dataservices/a5d287c8335e3fbe971ea64d359351e5779b5752aff55df09cd59f772558bdbe.go create mode 100644 internal/sdk/dataservices/dataservices/aad8d3b29dbd76adaa34e48c98d53bb69ed3aff5067d224e949f81cdfd2b7a28.go create mode 100644 internal/sdk/dataservices/dataservices/af7d4d8d28823790a460346a1ad95dc71ef43a1fab5a4b93dafdb710cce8e30f.go create mode 100644 internal/sdk/dataservices/dataservices/b25c0204871aacadee4d384f944cf2942b3e0283b7d6d747ebdc7580ec896e47.go create mode 100644 internal/sdk/dataservices/dataservices/b89d857a883993626f719fd21fd6fa61736ba3614f4b942a06950b5024061370.go create mode 100644 internal/sdk/dataservices/dataservices/c8bf61795bfbb80231b3626f8e77506110ce5a606a55bcb8adcf51bc47916928.go create mode 100644 internal/sdk/dataservices/dataservices/d0fa932a479848ab2a1ba48a500f92d9540af4f2117c9b01d41d4aca21d9cd8d.go create mode 100644 internal/sdk/dataservices/dataservices/d72ed6b649cc94ca32be1ad2ea23ff2331c70b6ca0910c734de9c8ab28ea00f8.go create mode 100644 internal/sdk/dataservices/dataservices/d8b9da0a65e198415bd68af30aca70d0f52abe55e8e21b86d291837275133059.go create mode 100644 internal/sdk/dataservices/dataservices/data_services_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/dcd90cecef94ce546e89ae2b34a06b7bb655ec3ebfa0419dfb3c4c93af7b5dd2.go create mode 100644 internal/sdk/dataservices/dataservices/df81b42d3354aef3ff409ae3c1d957b017a8ac091eb3706dc6516a572856b425.go create mode 100644 internal/sdk/dataservices/dataservices/e7a24d77e9a156d83d31cf74fa53b50157f62fa23d5e01f0072362bb6e3cefca.go create mode 100644 internal/sdk/dataservices/dataservices/f84daf234b30e1d909580dc50c431cf26463a6915bb71da50effab1b216db5e8.go create mode 100644 internal/sdk/dataservices/dataservices/f88a996fbdaa0f81363b5a6874164498bd2c73ded12a09891065c727fd6281c4.go create mode 100644 internal/sdk/dataservices/dataservices/f9a46a0f54a163493921b9337477ccba4cc67ef19705b2138f1ff4cc39b0ba30.go create mode 100644 internal/sdk/dataservices/dataservices/fb5aa008a8770d53a8a28352e992db71a932c76d3aa5d4103dc51aa99849d280.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/9f9e1bb0a3f4692afb9cca54ff554f467fd0fa670aa278c1f7b23ff97d69050c.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_connection_state.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_date_time_escaped_method_date_time_set.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_deployment_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_ntp_escaped_state.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_ntp_escaped_status.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_platform.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_rda_info_escaped_state.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_rda_info_escaped_status.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_state.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_status.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/7d58ba794c192f10726961e1f12d1611ea2f124c61b45d6cc0de3af5321a7075.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_connection_state.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_date_time_escaped_method_date_time_set.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_deployment_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_ntp_escaped_state.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_ntp_escaped_status.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_platform.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_rda_info_escaped_state.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_rda_info_escaped_status.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_state.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_status.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/dualauthoperations/item/dual_auth_operations_patch_request_body_escaped_state.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/issues/issues_get_response_escaped_items_escaped_snoozed_for.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/issues/item/issues_get_response_escaped_snoozed_for.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/softwarecomponents/item/installrelease/install_release_get_response_escaped_stability.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/softwarecomponents/item/installrelease/install_release_get_response_escaped_usage.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/download/download_post_request_body_escaped_file.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/downloads/downloads_post_request_body_escaped_file.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/software_releases_get_response_escaped_stability.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/software_releases_get_response_escaped_usage.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/software_releases_get_response_escaped_items_escaped_stability.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/software_releases_get_response_escaped_items_escaped_usage.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/softwareupgrades/software_upgrades_get_response_escaped_items_escaped_software_release_escaped_stability.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/softwareupgrades/software_upgrades_get_response_escaped_items_escaped_software_release_escaped_usage.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/storagelocations/item/storage_locations_get_response_escaped_cloud_service_provider.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/storagelocations/storage_locations_get_response_escaped_items_escaped_cloud_service_provider.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/tags/get_sort_query_parameter_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/36f56959e861812059fd607cf767acafc19257a338b0e222f1400ff9bd1157d3.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/456fbb568c90b413a080cdbae84fc0171f6c574fdf3409eed1097b8fd472f4dd.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/991d9d217f365e4808038e24ad58b242e3bb062dbfac940602eaceb52992ad83.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/b7d75a2fbcee393aca0a6c55546838255c89956e820dd3ba84b39235a90df314.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_authorization_escaped_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_destinations_escaped_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_status.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_subscriptions_escaped_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_authorization_escaped_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_destinations_escaped_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_status.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_subscriptions_escaped_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/testconnection/315d6aefe90aa79ec5419a52587f55f6d7479365e0a9788037ccf24fcf4953ce.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/testconnection/test_connection_post_request_body_escaped_destination_escaped_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_authorization_escaped_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_destinations_escaped_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_status.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_subscriptions_escaped_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_authorization_escaped_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_destinations_escaped_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_status.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_subscriptions_escaped_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response_escaped_items_escaped_images.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response_escaped_items_escaped_services.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_get_response_escaped_images.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_get_response_escaped_services.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_announcements_with_announcement_item_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_async_operations_item_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_additional_details.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_associated_resources.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_log_messages.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_parent.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_recommendations.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_root_operation.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_additional_details.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_associated_resources.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_log_messages.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_parent.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_recommendations.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_root_operation.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_async_operations_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_data_services_connectors_item_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_date_time.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_hypervisor_managers.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_interfaces.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_interfaces_escaped_network.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_ntp.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_ntp_escaped_ntp_servers.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_rda_info.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_rda_info_escaped_features.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_service_versions.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_date_time.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_interfaces.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_ntp.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_rda_info.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_service_versions.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body_escaped_dns.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body_escaped_ntp.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body_escaped_proxy.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle_post_request_body.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp_post_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support_post_request_body.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_post_request_body.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations422_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_dual_auth_operations_item_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_associated_resources.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_associated_resources_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_operation_resource.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations412_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations422_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response_escaped_associated_resources.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response_escaped_operation_resource.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_request_body.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response_escaped_associated_resources.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response_escaped_operation_resource.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_email_subscriptions_item_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_get_response_escaped_items_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions_post_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions_post_response_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups409_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_get_response_escaped_items_escaped_associated_resource_types.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_groups_item_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups409_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_get_response_escaped_associated_resource_types.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_patch_request_body.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_patch_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_patch_response_escaped_associated_resource_types.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_post_request_body.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_post_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_post_response_escaped_associated_resource_types.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_groups_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues405_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues422_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_get_response_escaped_items_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_get_response_escaped_items_escaped_related_resources.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_issues_item_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues405_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues409_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues422_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_get_response_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_get_response_escaped_related_resources.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_metadata400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_metadata401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_metadata403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_metadata404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_metadata405_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_metadata422_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_metadata500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_metadata503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items_escaped_categories.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items_escaped_services.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items_escaped_severities.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_issues_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens_post_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_recent_searches400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_recent_searches401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_recent_searches500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_recent_searches_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_recent_searches_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_recent_searches_get_response_escaped_items_escaped_resource.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_recent_searches_post_request_body.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_recent_searches_post_request_body_escaped_resource.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_recent_searches_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_recent_searches_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_get_response_escaped_items_escaped_matching_fields.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_get_response_escaped_items_escaped_resource.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_metadata400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_metadata401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_metadata500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_metadata_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_metadata_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_metadata_get_response_escaped_items_escaped_options.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_metadata_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_metadata_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_summaries400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_summaries401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_summaries500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_summaries_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_summaries_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_summaries_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_search_summaries_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments422_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items_escaped_appliance.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items_escaped_secret.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments422_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response_escaped_appliance.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response_escaped_secret.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_secret_assignments_item_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets409_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets412_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets422_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_classifier.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_domain.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_domain_escaped_properties.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_prototype.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_subclassifier.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_subclassifier_escaped_properties.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets409_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets412_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets422_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_classifier.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_domain.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_domain_escaped_properties.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_prototype.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_subclassifier.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_subclassifier_escaped_properties.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member1.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member10.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member10_escaped_ssh_keypair.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member2.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member2_escaped_basic_auth.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member3.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member3_escaped_bearer_auth.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member4.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member4_escaped_certificate.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member5.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member5_escaped_generic.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member6.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member7.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member7_escaped_oauth_client.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member8.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member8_escaped_password.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member9.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member9_escaped_private_key.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member2.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_classifier.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_domain.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_domain_escaped_properties.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_prototype.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_subclassifier.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_subclassifier_escaped_properties.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_assignees.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member1.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member10.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member10_escaped_ssh_keypair.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member1_escaped_azure_s_p_client.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member2.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member2_escaped_basic_auth.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member3.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member3_escaped_bearer_auth.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member4.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member4_escaped_certificate.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member5.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member5_escaped_generic.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member6.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member6_escaped_json_web_token.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member7.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member7_escaped_oauth_client.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member8.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member8_escaped_password.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member9.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member9_escaped_private_key.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member1.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member10.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member10_escaped_ssh_keypair.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member1_escaped_azure_s_p_client.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member2.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member2_escaped_basic_auth.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member3.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member3_escaped_bearer_auth.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member4.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member4_escaped_certificate.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member5.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member5_escaped_generic.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member6.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member6_escaped_json_web_token.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member7.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member7_escaped_oauth_client.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member8.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member8_escaped_password.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member9.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member9_escaped_private_key.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_classifier.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_domain.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_domain_escaped_properties.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_prototype.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_subclassifier.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_subclassifier_escaped_properties.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_secrets_secrets_item_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings422_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings412_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings422_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_patch_request_body.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_patch_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_settings_settings_item_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response_escaped_signature.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response_escaped_software.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response_escaped_software_component.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_components_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_components_software_components_item_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items_escaped_signature.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items_escaped_software.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items_escaped_software_component.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download_post_request_body.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_post_request_body.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_post_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response_escaped_signature.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response_escaped_software.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response_escaped_software_component.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_releases_software_releases_item_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_upgrades400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_upgrades401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_upgrades404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_upgrades500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_upgrades503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items_escaped_software_release.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items_escaped_software_release_escaped_signature.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items_escaped_software_release_escaped_software.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_storage_locations_storage_locations_item_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_tags400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_tags401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_tags403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_tags404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_tags500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_tags503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_tags_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_tags_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_tags_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_tags_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_authorization.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_authorization_escaped_client_credentials.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_destinations.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_destinations_escaped_cloud_event_endpoint.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_subscriptions.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_subscriptions_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_subscriptions_escaped_resource_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks404_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_authorization.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_authorization_escaped_client_credentials.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_destinations.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_destinations_escaped_cloud_event_endpoint.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_subscriptions.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_subscriptions_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_subscriptions_escaped_resource_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_request_body.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_authorization.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_authorization_escaped_client_credentials.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_destinations.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_destinations_escaped_cloud_event_endpoint.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_subscriptions.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_subscriptions_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_subscriptions_escaped_resource_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response_escaped_items_escaped_items.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response_escaped_items_escaped_items_escaped_resource.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_request_body.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_authorization.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_authorization_escaped_client_credentials.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_authorization_escaped_client_credentials_escaped_secret.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_destinations.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_destinations_escaped_cloud_event_endpoint.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_subscriptions.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_subscriptions_escaped_groups.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_subscriptions_escaped_resource_type.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection400_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection401_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection403_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection500_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection503_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_request_body.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_request_body_escaped_destination.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_request_body_escaped_destination_escaped_cloud_event_endpoint.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_response_escaped_error.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_request_builder.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_response.go create mode 100644 internal/sdk/dataservices/dataservices/v1beta1_webhooks_webhooks_item_request_builder.go create mode 100644 internal/sdk/dataservices/kiota-lock.json rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_software_info_hypervisor_clusters_current_software_catalog.go => 06adedc07dc4e656e5e53b8e22dec11aa89854d9315da5fac348083c8c7e33c2.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_software_info_hypervisor_clusters_unavailable_software_catalogs.go => 0730660299ca6de99f1b70cc20c2694f27302958156c212d03f26eccc33c1425.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{edc76ef0b1e151cace7f263a7784da63e9b32e04e8a2e188531f001397046857.go => 09b4acc373d9b448c027845fb9279dba4f5adb8f23d69bca918c648350149f08.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{5ca4906de37c20fadb3caa2ffd693cd1209f80fd9ff216f47fc7265b707594ca.go => 0d06213388723c3e9b3171079615aeb540600ac6d55e3a92a518c7ed4fb5e0be.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_software_info_hypervisor_clusters_available_software_catalogs.go => 104102c184300b8e1dec495801137ba0ea06147d4da85f68a2cb1aa3907d3761.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{0ec8661b2c9e4e8a8306b29faca730c3a7c0b4dacd3b7d4de0b4d13548d0b8e9.go => 1c84d33a9db69423c0770f70978be3300072ee321a3110e8adb72b71c5d41287.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_software_info_hypervisor_clusters_unavailable_software_catalogs.go => 1f47d0e38516847a21f8844a14e91c6231de6c000e588d0345501c9dad0c28b6.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{7e14844a2e74185c660d6c3721c3755427ce1e31f831a02fbd213e1469200e9f.go => 25bf76832fad6ad2a897f35cdac45b67dcee7287bb1983d1c540f97fac5ed369.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_hypervisor_clusters_hypervisor_manager_admin_password_secret.go => 277b377cc2418d5d861e5aade6265fc2750350fb9bfd74ee29393781046c448d.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_software_info_hypervisor_clusters_current_update_status.go => 2bdc5a5917fc26b4c0f186453ccb6f5b7530ee6255c9dc5ddb9d6631abcb929b.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_ilo_user_credential_secret.go => 31a668f1ce3eac6786b6164ffb56419e4207c421dc2fbf6623fd656e9b3837d2.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{8c795cc433c7b40cdbbb63ca164c4b2035875a50d114529911a431e976a3d5e5.go => 3313a62f015d57f81b026dd834de277d5e782026f2c3fdb1ee66e846bd05e63d.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_software_info_pc_for_ai_software_info_current_update_status.go => 3cdd705b36f9d3643cf1ef8f66a7b8b4e65464cf75d6af520d998651c034c880.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{f93efd113888ea5dae2f688dfcf529b02ca46dbda623214d0af276bce9695075.go => 44818158c76fc7e660cd04216b586ee0416eacee14fddae094ade6a88f2a178d.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_software_info_pc_for_ai_software_info_current_software_catalog.go => 46547cae9357ab15435939ca5395f1ed5143cf65f619323c70f7d51679129e23.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{9bc2b24d4eae0485a893d746c66c2cfa4b296596a9c56d4012a77c2e32d9e057.go => 4a5528981f81040abe96987e45ae80ccab0a956752034e31b50880a4ace41d61.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{a29f9daf9cb6d69a63ef1137951b14140e7c22702798f235fa4dace30fb8ac7c.go => 4c31976905a9bac10a0ecfd3c785fb0cbaa9016b861babcd8f9b17607467f0ee.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_software_info_hypervisor_clusters_unavailable_software_catalogs.go => 52fda2ad35f5a5df7aaa50339127e7340f9899e19419c905a480f7fae058c2b3.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_ilo_mgmt_ip_info.go => 619978a575d93ac1fd98e5af5a565b56c64b5f500047096141e65f5960494334.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{61bd0b4705de8b63e6a43f6cdfc40f88019748ed31a6c9bd3a0184d05c75c866.go => 631ffce83bf1218ff3c6e93ae1a2897ff31959ab730db45534c91a4b6d8f49ac.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{faaa11e6d18a2628a19c49fe8159bd23c6845683a5dcbc9e9ef685e74df14dbd.go => 636d9272dbcc6146af8f19a8a1d0422a636584db4d284a572c935fd3f9ee2e1b.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{9fe1233f4c1036603046b5d478a70c40a036cdb9bbb9b4cac0b7a1eb8786f0f2.go => 6b983eae77cef7019607699cbf20419cbcb9281141a98ccbb662137dec175a5d.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{d572ed524a3bcfd81f7ba74a708dc46e0c481c610ad40f1aa9f188547717a5e0.go => 6bd9f017dfa27f6b1ae35056fe39443551f492a4c099ca326c7cd6c4e640a861.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{6ec8d5ca2392666f5e33254e3b0fa04bdef750e07447ecf031e072a49c703eed.go => 6be486281b86fad6de3e44219a82fcd8041473ec1b233a0f3c21f0b10c89a2fa.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_compute_clusters_hypervisor_manager_admin_password_secret.go => 6c3464fcf37355853d99032adada4641411ffc619bc39891e1fdbf21820470d6.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{adccb2f1a47ba3ea6938f85910e8c5c4af12513bdcd1c551bb8c3431d742aaef.go => 6d51835c974ffe0bbc4bea82af831797527f4b44ebdf1183397c0f823367c0f2.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{609251c2a38ac2d73c3acb023a79ebbe44180d8f733ae543716702d3ce4db6c4.go => 708a084145e309b8468def9e547c9a7a69137fe5324ff36adaef8f3200f198ef.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_hypervisor_manager.go => 728a8b1bc9af6c9e3eac554ee8a0dab62ad15544ef7ae2292af0ca2a4fd6a630.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_software_info_hypervisor_clusters_available_software_catalogs.go => 7a5bf20c4df898347b589e8df33b61582cf222b84b8d4d67d3c9734d4010b1df.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{f9120d2188856b313f4850ab58a902b6b6eddc06628b80d01f5206070ec1a7d9.go => 7b2e132d103b7898dbac5f02154612c29d9038b09e14809379908622a6ee73f2.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_software_info_hypervisor_clusters_current_software_catalog.go => 7baf79c5521447784c0c3f042d44463b3ecf30d43f07b6ecd930ecb6b6e6b48e.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_software_info_hypervisor_clusters_current_software_catalog.go => 7cdcafab0f2d2ddb9e05656e3403b4525267eea3d01c523f1b7b06b080227091.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_software_info_pc_for_ai_software_info_available_software_catalogs.go => 8b5364cb1994c0ee2531dde1ece36218a9a7a4978123351f37ab0d0c48225777.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{b4c67cbf1f9741a3dca4eb5e60c62a682f12f27ee2aa395cdab7eaa859bda34e.go => 92ea938c099e111a8b9f5bb00071e17ce90604dc0ff3e7a892ac095db69fd8f2.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{ec99e3f768f780218faf4d94c85d0d10650249433b1c02d7d30903b67e169ba7.go => 96b9b2a43ca0c827f44d591413253177c3ddeec526f09d1a38700e3a00a3c499.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_software_info_hypervisor_clusters_current_update_status.go => 991b9a51f0cc978de1f4f3164ebd4206e76800d7e888fd5a4e7a9420af573eba.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_hypervisor_host_root_user_password_secret.go => 9d722b5904464e2d6b32759b46e21a754cb08ed4771911f61795ea78c1ae9b17.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_software_info_pc_for_ai_software_info_current_software_catalog.go => a21bfe14837a49779a9ab28f8da62d1ad095dfb905bd0352f0baa8ef5db3cff7.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{cd99868a60a183310980f82dbd701b1d7c2c246e0e2e273c072229914b3506a6.go => a25cd043ab5575be12412dfe549577ad48bd212b54dbe29bb346981498d1488c.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_software_info_hypervisor_clusters_current_update_status.go => a3a0c0321631fd45926e28fcc6f44bd79dda9a0201b80af964e60c2df20f4a7b.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_software_info_pc_for_ai_software_info_available_software_catalogs.go => a835b27c39ec112d1bb9b8a2d88543f5a8da83dfa6a1c19a671e3297d1ce4116.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_systems_with_update_path.go => ad82c81c3c49682a46d0e6229792df599843ae791e4a6d0881865e9306218181.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_hypervisor_host_root_user_password_secret.go => afbf582dc86c6ed7905d816f9dcbb62d01febd75f0c5e07f9237135226acc6cd.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_ilo_network_info_network_interfaces.go => b430e2e16a90301e46befb9517ec314fc88d23070148d6a2b356e397033be4f7.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_software_info_pc_for_ai_software_info_current_software_catalog.go => b69af8e3aebf5736be2c88163823b4b5727ea0595f5a82b946a46b355998768d.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_system_software_catalogs_get_response_items_systems_with_update_path_hypervisor_clusters.go => bec7e5c0d20cb32fcd05b8e1a80674bd76b2a95deb90b0fd4cd8fe628e880e8c.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{1aef9b7c93d4513625518d8df3a6891f03172bffe6f6c2882b76a3aa9c30813a.go => c8920659607f93afddd39a849821780c611f923bbdb82193911aed4c187ef954.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_software_info_pc_for_ai_software_info_current_update_status.go => c90bb39759dc19bbc876b424fd7e79bed63d21a20384f6724abf4911f2ecb5e3.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_data_ip_infos.go => d11bd3b4c70298d5a38daf80dd9cff4ff3ebae90eb2cd1b74d0fa68d5725c5e4.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_software_info_hypervisor_clusters_available_software_catalogs.go => d1c7c9e1621afeb98020b8125e04256ccffea3d0c5e28ac49a19e8c39e2dae7d.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{fdf5d2b6f1c9f7635bf0a5bf7976082e26fdf8658e299a129c537020af9ba8fe.go => d409aad580a1d90eadb4c373952d1c4b8178edb4edbb5aa4bb798c4f0aaaa4aa.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{7750d3c1c616df98f77d350f0eaf567efd7bb00063a8ba89448c09e1501c8c42.go => d4b0e2c0d1360bc8aa78cd93b39524e7dfc8aed9f3013838f125973b2feefeae.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{2822b57053367bd7b26e2d3bf02d3b770bcf26f5aff99cd06aa6fd0f24badaea.go => d9fdc25770555bd9cfe43b98e061b30a6dceee9749354fdadaa2b916d9436e77.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_software_info_pc_for_ai_software_info_current_update_status.go => e650073a269362fe6739f5ecdfe539c656aeda993ea7f80a3a769283be042dc9.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_compute_clusters_hypervisor_manager_admin_password_secret.go => f0720e11a0b00cafa7f77f980be33060cffc1ff5bec83e21eae85cee5ffd5da8.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_ilo_network_info_network_interfaces.go => f0df208f63bf90df735e51e46b6c10d1d4c343294754b447e92710d289da3e6a.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_hypervisor_clusters_hypervisor_manager_admin_password_secret.go => f148ea8362ae46eb13af1d6750867a9ba272b6ad8f45431019c61fb96788fdbe.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_hypervisor_clusters_hypervisor_manager_admin_password_secret.go => f22a25d51383e64178e698b7f0cf6f8bdfb3516ab34c3c86913a7045dde574c0.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{970e5af0b1376f5f187e6de7c70fcb24292c71b8eb7fd0071e1a6cdd37364cad.go => f8f88f2c5ae014b7fd21522fa1579f687113efe53f4fb2f3799aff5f743697fa.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_compute_clusters_hypervisor_manager_admin_password_secret.go => fa8760323d45f09819e1221691e3706d16d169a7ab50d8b530790137995d7c62.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_esx_mgmt_ip_info.go => fd7d464f98063dad8b31f816dc50c7af833e09096dde8553a7449397f26517d5.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/{systems_get_response_items_compute_clusters_hypervisor_manager_admin_password_secret_state.go => 1dfd092d1794fd4cce6b801071a54fae8a01c36e0e857345d1e314cec3ed3acb.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/{systems_get_response_items_software_info_hypervisor_clusters_current_update_status_state.go => 3440c842ef527b3ea1f974c59274fd1366c20ff185b0ea6f167d7e9d7fdc7d7e.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/{systems_get_response_items_software_info_pc_for_ai_software_info_current_update_status_state.go => 5df81134d55c892476968a3daaa15ded611c097dff5f42b84b1658ee0edda066.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/{systems_get_response_items_hypervisor_clusters_hypervisor_manager_admin_password_secret_state.go => 7c9f6fc4e4cca111b25f33b3600f6db7fa76fe726fc2596eb948e3cc00671a80.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{patch_response_hypervisor_clusters_hypervisor_manager_admin_password_secret_state.go => 1c2278308dc080d4f9e384a44294f084ead51da87074aa94d9f66e1ec5ddaf3a.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{patch_response_software_info_hypervisor_clusters_current_update_status_state.go => 743553f516546362dd223f0541a0f1bf3bcc38d942f774d75f69910baf60c24d.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{patch_response_compute_clusters_hypervisor_manager_admin_password_secret_state.go => 8e17ea427214bb49732f154a0e731f50b74fe678c4535c69276737926b51ab10.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{get_response_hypervisor_clusters_hypervisor_manager_admin_password_secret_state.go => ae332c5c1336bb807e843fa852d46ab1a3f9cb21f3e1041a7ba8b305b8a8461b.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/assignsecret/{assign_secret_post_request_body_type.go => assign_secret_post_request_body_escaped_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{get_response_software_info_hypervisor_clusters_current_update_status_state.go => b2c85a8c52bd3b7698f414b6b9cc9231f6287a431e2d7c33fb4dbec7a048cdab.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{patch_response_software_info_pc_for_ai_software_info_current_update_status_state.go => d590216282a05329b0216fa66c9d2e512e4136d55e18e63053e7b4ab22bb1d3c.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{get_response_software_info_pc_for_ai_software_info_current_update_status_state.go => f42c80cdace68f952a55bad5ad42d280538ed476e682ab6db58729a5eaa7cb82.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{get_response_compute_clusters_compute_cluster_type.go => get_response_escaped_compute_clusters_escaped_compute_cluster_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{get_response_compute_clusters_hypervisor_manager_admin_password_secret_state.go => get_response_escaped_compute_clusters_escaped_hypervisor_manager_admin_password_secret_escaped_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{get_response_health_network.go => get_response_escaped_health_escaped_network.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{get_response_health_overall_health.go => get_response_escaped_health_escaped_overall_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{get_response_health_servers.go => get_response_escaped_health_escaped_servers.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{get_response_health_storage.go => get_response_escaped_health_escaped_storage.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{get_response_hypervisor_clusters_hypervisor_cluster_type.go => get_response_escaped_hypervisor_clusters_escaped_hypervisor_cluster_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{get_response_software_info_current_update_status_state.go => get_response_escaped_software_info_escaped_current_update_status_escaped_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{get_response_stack_type.go => get_response_escaped_stack_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{get_response_state.go => get_response_escaped_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{patch_response_compute_clusters_compute_cluster_type.go => patch_response_escaped_compute_clusters_escaped_compute_cluster_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{patch_response_health_network.go => patch_response_escaped_health_escaped_network.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{patch_response_health_overall_health.go => patch_response_escaped_health_escaped_overall_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{patch_response_health_servers.go => patch_response_escaped_health_escaped_servers.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{patch_response_health_storage.go => patch_response_escaped_health_escaped_storage.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{patch_response_hypervisor_clusters_hypervisor_cluster_type.go => patch_response_escaped_hypervisor_clusters_escaped_hypervisor_cluster_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{patch_response_software_info_current_update_status_state.go => patch_response_escaped_software_info_escaped_current_update_status_escaped_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{patch_response_stack_type.go => patch_response_escaped_stack_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/{patch_response_state.go => patch_response_escaped_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/{with_server_get_response_consumed_by_consumer_type.go => with_server_get_response_escaped_consumed_by_escaped_consumer_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/{with_server_get_response_hypervisor_host_hypervisor_host_type.go => with_server_get_response_escaped_hypervisor_host_escaped_hypervisor_host_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/{with_server_get_response_hypervisor_host_root_user_password_secret_state.go => with_server_get_response_escaped_hypervisor_host_root_user_password_secret_escaped_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/{with_server_get_response_ilo_admin_user_password_secret_state.go => with_server_get_response_escaped_ilo_admin_user_password_secret_escaped_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/{with_server_get_response_ilo_network_info_network_interfaces_type.go => with_server_get_response_escaped_ilo_network_info_escaped_network_interfaces_escaped_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/{with_server_get_response_ilo_user_credential_secret_state.go => with_server_get_response_escaped_ilo_user_credential_escaped_secret_escaped_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/{with_server_get_response_operating_system_info_operating_system_type.go => with_server_get_response_escaped_operating_system_info_escaped_operating_system_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/{with_server_get_response_os_user_credential_secret_state.go => with_server_get_response_escaped_os_user_credential_escaped_secret_escaped_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/{with_server_get_response_power_state.go => with_server_get_response_escaped_power_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/{with_server_get_response_server_network_interfaces_type.go => with_server_get_response_escaped_server_network_interfaces_escaped_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/{servers_get_response_items_consumed_by_consumer_type.go => servers_get_response_escaped_items_escaped_consumed_by_escaped_consumer_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/{servers_get_response_items_hypervisor_host_hypervisor_host_type.go => servers_get_response_escaped_items_escaped_hypervisor_host_escaped_hypervisor_host_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/{servers_get_response_items_hypervisor_host_root_user_password_secret_state.go => servers_get_response_escaped_items_escaped_hypervisor_host_root_user_password_secret_escaped_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/{servers_get_response_items_ilo_admin_user_password_secret_state.go => servers_get_response_escaped_items_escaped_ilo_admin_user_password_secret_escaped_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/{servers_get_response_items_ilo_network_info_network_interfaces_type.go => servers_get_response_escaped_items_escaped_ilo_network_info_escaped_network_interfaces_escaped_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/{servers_get_response_items_ilo_user_credential_secret_state.go => servers_get_response_escaped_items_escaped_ilo_user_credential_escaped_secret_escaped_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/{servers_get_response_items_operating_system_info_operating_system_type.go => servers_get_response_escaped_items_escaped_operating_system_info_escaped_operating_system_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/{servers_get_response_items_os_user_credential_secret_state.go => servers_get_response_escaped_items_escaped_os_user_credential_escaped_secret_escaped_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/{servers_get_response_items_power_state.go => servers_get_response_escaped_items_escaped_power_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/{servers_get_response_items_server_network_interfaces_type.go => servers_get_response_escaped_items_escaped_server_network_interfaces_escaped_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/{storage_arrays_get_response_items_health_controller.go => storage_arrays_get_response_escaped_items_escaped_health_escaped_controller.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/{storage_arrays_get_response_items_health_disk.go => storage_arrays_get_response_escaped_items_escaped_health_escaped_disk.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/{storage_arrays_get_response_items_health_network.go => storage_arrays_get_response_escaped_items_escaped_health_escaped_network.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/{storage_arrays_get_response_items_health_overall_health.go => storage_arrays_get_response_escaped_items_escaped_health_escaped_overall_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/{storage_arrays_get_response_items_health_shelf.go => storage_arrays_get_response_escaped_items_escaped_health_escaped_shelf.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/{with_switch_get_response_health_cpu_health.go => with_switch_get_response_escaped_health_escaped_cpu_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/{with_switch_get_response_health_fans_health.go => with_switch_get_response_escaped_health_escaped_fans_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/{with_switch_get_response_health_memory_health.go => with_switch_get_response_escaped_health_escaped_memory_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/{with_switch_get_response_health_overall_switch_health.go => with_switch_get_response_escaped_health_escaped_overall_switch_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/{with_switch_get_response_health_power_supplies_health.go => with_switch_get_response_escaped_health_escaped_power_supplies_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/{with_switch_get_response_health_temperature_sensors_health.go => with_switch_get_response_escaped_health_escaped_temperature_sensors_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/{switches_get_response_items_health_cpu_health.go => switches_get_response_escaped_items_escaped_health_escaped_cpu_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/{switches_get_response_items_health_fans_health.go => switches_get_response_escaped_items_escaped_health_escaped_fans_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/{switches_get_response_items_health_memory_health.go => switches_get_response_escaped_items_escaped_health_escaped_memory_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/{switches_get_response_items_health_overall_switch_health.go => switches_get_response_escaped_items_escaped_health_escaped_overall_switch_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/{switches_get_response_items_health_power_supplies_health.go => switches_get_response_escaped_items_escaped_health_escaped_power_supplies_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/{switches_get_response_items_health_temperature_sensors_health.go => switches_get_response_escaped_items_escaped_health_escaped_temperature_sensors_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/{systems_get_response_items_compute_clusters_compute_cluster_type.go => systems_get_response_escaped_items_escaped_compute_clusters_escaped_compute_cluster_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/{systems_get_response_items_health_network.go => systems_get_response_escaped_items_escaped_health_escaped_network.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/{systems_get_response_items_health_overall_health.go => systems_get_response_escaped_items_escaped_health_escaped_overall_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/{systems_get_response_items_health_servers.go => systems_get_response_escaped_items_escaped_health_escaped_servers.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/{systems_get_response_items_health_storage.go => systems_get_response_escaped_items_escaped_health_escaped_storage.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/{systems_get_response_items_hypervisor_clusters_hypervisor_cluster_type.go => systems_get_response_escaped_items_escaped_hypervisor_clusters_escaped_hypervisor_cluster_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/{systems_get_response_items_software_info_current_update_status_state.go => systems_get_response_escaped_items_escaped_software_info_escaped_current_update_status_escaped_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/{systems_get_response_items_stack_type.go => systems_get_response_escaped_items_escaped_stack_type.go} (100%) rename internal/sdk/systems/privatecloudbusiness/v1beta1/systems/{systems_get_response_items_state.go => systems_get_response_escaped_items_escaped_state.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_system_software_catalogs_get_response_items.go => v1beta1_system_software_catalogs_get_response_escaped_items.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_system_software_catalogs_get_response_items_ai_essentials.go => v1beta1_system_software_catalogs_get_response_escaped_items_escaped_ai_essentials.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_system_software_catalogs_get_response_items_hypervisor.go => v1beta1_system_software_catalogs_get_response_escaped_items_escaped_hypervisor.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_system_software_catalogs_get_response_items_hypervisor_manager.go => v1beta1_system_software_catalogs_get_response_escaped_items_escaped_hypervisor_manager.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_system_software_catalogs_get_response_items_server_firmware.go => v1beta1_system_software_catalogs_get_response_escaped_items_escaped_server_firmware.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_system_software_catalogs_get_response_items_storage_connection_manager.go => v1beta1_system_software_catalogs_get_response_escaped_items_escaped_storage_connection_manager.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_system_software_catalogs_get_response_items_storage_software.go => v1beta1_system_software_catalogs_get_response_escaped_items_escaped_storage_software.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_system_software_catalogs_get_response_items_systems_with_update_path.go => v1beta1_system_software_catalogs_get_response_escaped_items_escaped_systems_with_update_path.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_ai_essentials.go => v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_escaped_ai_essentials.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_hypervisor.go => v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_escaped_hypervisor.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_server_firmware.go => v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_escaped_server_firmware.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_storage_software.go => v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_escaped_storage_software.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items.go => v1beta1_systems_get_response_escaped_items.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_associated_resource_counts.go => v1beta1_systems_get_response_escaped_items_escaped_associated_resource_counts.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_compute_clusters.go => v1beta1_systems_get_response_escaped_items_escaped_compute_clusters.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_compute_usage.go => v1beta1_systems_get_response_escaped_items_escaped_compute_usage.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_config_analysis_status.go => v1beta1_systems_get_response_escaped_items_escaped_config_analysis_status.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_health.go => v1beta1_systems_get_response_escaped_items_escaped_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_hypervisor_clusters.go => v1beta1_systems_get_response_escaped_items_escaped_hypervisor_clusters.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_location.go => v1beta1_systems_get_response_escaped_items_escaped_location.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_software_info.go => v1beta1_systems_get_response_escaped_items_escaped_software_info.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_software_info_current_update_status.go => v1beta1_systems_get_response_escaped_items_escaped_software_info_escaped_current_update_status.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_software_info_hypervisor_clusters.go => v1beta1_systems_get_response_escaped_items_escaped_software_info_escaped_hypervisor_clusters.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_software_info_pc_for_ai_software_info.go => v1beta1_systems_get_response_escaped_items_escaped_software_info_escaped_pc_for_ai_software_info.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_storage_system.go => v1beta1_systems_get_response_escaped_items_escaped_storage_system.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_storage_usage.go => v1beta1_systems_get_response_escaped_items_escaped_storage_usage.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_get_response_items_system_vms.go => v1beta1_systems_get_response_escaped_items_escaped_system_vms.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network.go => v1beta1_systems_item_add_hypervisor_servers_post_request_body_escaped_server_network.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_associated_resource_counts.go => v1beta1_systems_item_get_response_escaped_associated_resource_counts.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_compute_clusters.go => v1beta1_systems_item_get_response_escaped_compute_clusters.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_compute_usage.go => v1beta1_systems_item_get_response_escaped_compute_usage.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_config_analysis_status.go => v1beta1_systems_item_get_response_escaped_config_analysis_status.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_health.go => v1beta1_systems_item_get_response_escaped_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_hypervisor_clusters.go => v1beta1_systems_item_get_response_escaped_hypervisor_clusters.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_location.go => v1beta1_systems_item_get_response_escaped_location.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_software_info.go => v1beta1_systems_item_get_response_escaped_software_info.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_software_info_current_update_status.go => v1beta1_systems_item_get_response_escaped_software_info_escaped_current_update_status.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_software_info_hypervisor_clusters.go => v1beta1_systems_item_get_response_escaped_software_info_escaped_hypervisor_clusters.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_software_info_pc_for_ai_software_info.go => v1beta1_systems_item_get_response_escaped_software_info_escaped_pc_for_ai_software_info.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_storage_system.go => v1beta1_systems_item_get_response_escaped_storage_system.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_storage_usage.go => v1beta1_systems_item_get_response_escaped_storage_usage.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_get_response_system_vms.go => v1beta1_systems_item_get_response_escaped_system_vms.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_request_body_location.go => v1beta1_systems_item_patch_request_body_escaped_location.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_associated_resource_counts.go => v1beta1_systems_item_patch_response_escaped_associated_resource_counts.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_compute_clusters.go => v1beta1_systems_item_patch_response_escaped_compute_clusters.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_compute_usage.go => v1beta1_systems_item_patch_response_escaped_compute_usage.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_config_analysis_status.go => v1beta1_systems_item_patch_response_escaped_config_analysis_status.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_health.go => v1beta1_systems_item_patch_response_escaped_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_hypervisor_clusters.go => v1beta1_systems_item_patch_response_escaped_hypervisor_clusters.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_location.go => v1beta1_systems_item_patch_response_escaped_location.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_software_info.go => v1beta1_systems_item_patch_response_escaped_software_info.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_software_info_current_update_status.go => v1beta1_systems_item_patch_response_escaped_software_info_escaped_current_update_status.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_software_info_hypervisor_clusters.go => v1beta1_systems_item_patch_response_escaped_software_info_escaped_hypervisor_clusters.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_software_info_pc_for_ai_software_info.go => v1beta1_systems_item_patch_response_escaped_software_info_escaped_pc_for_ai_software_info.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_storage_system.go => v1beta1_systems_item_patch_response_escaped_storage_system.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_storage_usage.go => v1beta1_systems_item_patch_response_escaped_storage_usage.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_patch_response_system_vms.go => v1beta1_systems_item_patch_response_escaped_system_vms.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items.go => v1beta1_systems_item_servers_get_response_escaped_items.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_cloud_module_config.go => v1beta1_systems_item_servers_get_response_escaped_items_escaped_cloud_module_config.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_compute_usage.go => v1beta1_systems_item_servers_get_response_escaped_items_escaped_compute_usage.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_consumed_by.go => v1beta1_systems_item_servers_get_response_escaped_items_escaped_consumed_by.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_gpus.go => v1beta1_systems_item_servers_get_response_escaped_items_escaped_gpus.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_hypervisor_host.go => v1beta1_systems_item_servers_get_response_escaped_items_escaped_hypervisor_host.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_ilo_admin_user_password_secret.go => v1beta1_systems_item_servers_get_response_escaped_items_escaped_ilo_admin_user_password_secret.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_ilo_network_info.go => v1beta1_systems_item_servers_get_response_escaped_items_escaped_ilo_network_info.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_ilo_user_credential.go => v1beta1_systems_item_servers_get_response_escaped_items_escaped_ilo_user_credential.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_ilo_user_credential_secret.go => v1beta1_systems_item_servers_get_response_escaped_items_escaped_ilo_user_credential_escaped_secret.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_link_local_info.go => v1beta1_systems_item_servers_get_response_escaped_items_escaped_link_local_info.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_operating_system_info.go => v1beta1_systems_item_servers_get_response_escaped_items_escaped_operating_system_info.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_os_user_credential.go => v1beta1_systems_item_servers_get_response_escaped_items_escaped_os_user_credential.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_os_user_credential_secret.go => v1beta1_systems_item_servers_get_response_escaped_items_escaped_os_user_credential_escaped_secret.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_get_response_items_server_network_interfaces.go => v1beta1_systems_item_servers_get_response_escaped_items_escaped_server_network_interfaces.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_cloud_module_config.go => v1beta1_systems_item_servers_item_with_server_get_response_escaped_cloud_module_config.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_compute_usage.go => v1beta1_systems_item_servers_item_with_server_get_response_escaped_compute_usage.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_consumed_by.go => v1beta1_systems_item_servers_item_with_server_get_response_escaped_consumed_by.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_gpus.go => v1beta1_systems_item_servers_item_with_server_get_response_escaped_gpus.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_hypervisor_host.go => v1beta1_systems_item_servers_item_with_server_get_response_escaped_hypervisor_host.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_ilo_admin_user_password_secret.go => v1beta1_systems_item_servers_item_with_server_get_response_escaped_ilo_admin_user_password_secret.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_ilo_network_info.go => v1beta1_systems_item_servers_item_with_server_get_response_escaped_ilo_network_info.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_ilo_user_credential.go => v1beta1_systems_item_servers_item_with_server_get_response_escaped_ilo_user_credential.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_link_local_info.go => v1beta1_systems_item_servers_item_with_server_get_response_escaped_link_local_info.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_operating_system_info.go => v1beta1_systems_item_servers_item_with_server_get_response_escaped_operating_system_info.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_os_user_credential.go => v1beta1_systems_item_servers_item_with_server_get_response_escaped_os_user_credential.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_os_user_credential_secret.go => v1beta1_systems_item_servers_item_with_server_get_response_escaped_os_user_credential_escaped_secret.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_servers_item_with_server_get_response_server_network_interfaces.go => v1beta1_systems_item_servers_item_with_server_get_response_escaped_server_network_interfaces.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_storage_arrays_get_response_items.go => v1beta1_systems_item_storage_arrays_get_response_escaped_items.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_storage_arrays_get_response_items_capacity_metrics.go => v1beta1_systems_item_storage_arrays_get_response_escaped_items_escaped_capacity_metrics.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_storage_arrays_get_response_items_details.go => v1beta1_systems_item_storage_arrays_get_response_escaped_items_escaped_details.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_storage_arrays_get_response_items_health.go => v1beta1_systems_item_storage_arrays_get_response_escaped_items_escaped_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_storage_pools_get_response_items.go => v1beta1_systems_item_storage_pools_get_response_escaped_items.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_storage_replication_partners_get_response_items.go => v1beta1_systems_item_storage_replication_partners_get_response_escaped_items.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_storage_replication_partners_get_response_items_throttles.go => v1beta1_systems_item_storage_replication_partners_get_response_escaped_items_escaped_throttles.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_switches_get_response_items.go => v1beta1_systems_item_switches_get_response_escaped_items.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_switches_get_response_items_health.go => v1beta1_systems_item_switches_get_response_escaped_items_escaped_health.go} (100%) rename internal/sdk/systems/privatecloudbusiness/{v1beta1_systems_item_switches_item_with_switch_get_response_health.go => v1beta1_systems_item_switches_item_with_switch_get_response_escaped_health.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_protection_job_info_protection_policy_info.go => 010a285f5062e6efec8e39b20cb6c2cf70bb0f85bc53f09a4982e6a5eaaf6d21.go} (100%) rename internal/sdk/virt/virtualization/{d610511c6ec9bded01e99da22e4739b865af8c272271cccc8a1685c608e217cc.go => 014c44a50f1b68caaef36ac77a007bad909441116cbdae472b6e4c6222b889b0.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_get_response_items_child_resource_pools.go => 057d56b5864e7829958d0f802ceff7ae744e349252abd9dd1848566819d2615c.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_get_response_items_protection_job_info_schedule_info.go => 0925ced391d56b8db0aae42aec9fc121f0f94d6e69a5e87a8b01d208f029ca22.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info_network_info_vpc_info.go => 09e5e8b389a6d1fdf9c02b717347d27e8021b2b86fa03cd760025de747958d7e.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_volumes_info_storage_folder_info.go => 0a2f21a9b4b79f9c4ebe14228040b59dd7188d254f597b8254e775e56847ade2.go} (100%) rename internal/sdk/virt/virtualization/{d79bf8f02cc789396dfbe0ea2653c93dee575deb2175a2e5932c8ace95bbf00d.go => 0abf9d0334ab2b20ac48a644b0eab6389e187bdcf2e74301e825e276a8ee9127.go} (100%) rename internal/sdk/virt/virtualization/{3c3f67479b497fd1c02b4aed8714019376606ee2f31089d2e9b51840b17a91ab.go => 0edce3f2f327c7f077daf617b63a5bd4ebad56b87d05b5a407de3e44c02a9c64.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_get_response_items_app_info_vmware_datacenters.go => 0f7aeaffd332e909d7dcef3e0221d42a0529a47361b4d4e85ab8a2dab5040e9d.go} (100%) rename internal/sdk/virt/virtualization/{6c32fa2d84b61a36e85f68fb4be65531c4cf96a14695d6997ed32a312778f470.go => 1082226a44b7a5c1fc5012e81031fbed55ede8d38ce3eadd0c73c7647a13caf8.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_networks_item_network_get_response_app_info_vmware_datacenter_info.go => 1432aadcfa85413ce5dfd88c7edfc8b5688ba18469d2dea6376ce0fe5b80fb88.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member2_features.go => 1453f4d0d1cedd57db0cfb1937fa7ff385c13cd6937f304bd692167118f02d3b.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_protection_job_info_schedule_info.go => 17d59e0dd9b5814f186dc76c0936463ad71cee2f8a2f36f5ca8f207724a405c6.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_protection_job_info_protection_policy_info.go => 19fc8f290fb4272f0a343b36a04774fd96696d029fc4b80c66ed8bbc032cb524.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_get_response_items_host_network_system_port_groups_nic_teaming_policy.go => 1b27f9645379fd10a8882e0fe0b1013f26779df7b32eb8762f1cd3cd486330fd.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member2_version_info.go => 1d1537e55b0fc88baedae4a37bfcd2b85de8336c73d99f37c3602a632a12a863.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_protection_policy_applied_at_info.go => 1e4289c6f22a3433518feaee789961115b2f3165afe86efe49a3838d0244283a.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_volumes_info_storage_pool_info.go => 21a7c490c5fa24c70e6bb3cc4bf6d5938f6f00bacf4a8a40d4e9a2584b5f9f50.go} (100%) rename internal/sdk/virt/virtualization/{13e51552bc67d43d7e2554901c5cf65683f37727cbb673da5bb489dd53590fe5.go => 23d3a780114196061fd38def6e59c5eb96f9654b6bd01ccb932d01ec414bdd8c.go} (100%) rename internal/sdk/virt/virtualization/{863a2496a307e2ea071fee417e96d0b6f8e164a08b03e2c37d9d03dc2897e15c.go => 27700fa8dd4b489a54201c2648ba48e716f178ca9cb872d5630b79477a1b4c4f.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_app_info_vmware_datastores_info.go => 277c22e7013a05c832897b9d88b02885beb63e701104c755f615588a337af272.go} (100%) rename internal/sdk/virt/virtualization/{0437cfc0531363b24be48ad093504661abb55400eec676e4588c4a1514404b48.go => 283e190382ab73f1b7560256e5981f21c54ff0433191fa36e70c432adb219b50.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_protection_job_info_schedule_info.go => 290962307d49a9fe526e5f9fe6e845b2b16010bed194cf08ff93450329b1bf48.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member2_disallowed.go => 2ad5e27869459853637b7fa4f0d35a3f23d3f33c9ab459b0c85a63393cd994ab.go} (100%) rename internal/sdk/virt/virtualization/{465f9e9f996cd90079dd1afad8e28252f80272ee8c3793f6470ee704500c5e92.go => 2b41bee8c56978abb0305efffc17d223066926fcdde07202b5aeba97b64dca85.go} (100%) rename internal/sdk/virt/virtualization/{9a1bca7ca2173361de1f1c75e6ca5cdd7d107db8d0e63b04411b2cde8f2cd853.go => 2b6767cb0be2b9d9ef7148e5aad015a286c2b507c339390b88de8cb0fc5b5d6c.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_network_info.go => 2c447ae3eccc9d3a31e4939d0da0c30295937aeb91744ad740bba42793f558cd.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_volumes_info_storage_system_info.go => 2f048741d90ab8734d8e3fe3f8e56ac4beed1957905b7a19da8268e1f20e86a1.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_get_response_items_csp_info_member2_restrictions.go => 2fb1a427bc4071d4b02134983363cb92ae2f7dbcfae61827fbff82c9765215a8.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_networks_get_response_items_app_info_vmware_datacenter_info.go => 309067f3fad5a1e91228d6b2b30f05fc6fd7527e20e5e1ec1b8d2a364044b3fb.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_item_csp_volumes_get_response_machine_instance_attachment_info_attached_to.go => 30e0e2fe137771a75340e7ed7164c8d7756b465d04b6b5ae163223406bad24e5.go} (100%) rename internal/sdk/virt/virtualization/{e39379cd1317b3a95cf44e5f9005a7fa24d48067bbab1ed2951274dd14c8b9ee.go => 3133248c92c7bb9327a6da392d35ff45cc095446fc039ad727d535f6b242cf4d.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_volume_attachment_info_attached_to.go => 33ab24adc872689feefb6e953456c14ab140a3a4307d8d7855039728b585910e.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_volumes_info_volume_set_info.go => 356fb10aed9d93df2eafa872a1abf2fb79b6b755047188bdc029627554db6999.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_virtual_disks_app_info_vmware_datastore_info.go => 35aa4346ccf38616774edd4dd5029582e444d1acd2d0e8d648a82b5329d9a81f.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member2_os_disk_image.go => 368103a636351a51200edfdb5904755c1a0d6b5af4350c013c4cacb628209de9.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_get_response_items_app_info_vmware.go => 3a67e9004a824e77429cc52815c41a368809b9df7a5742a5e94b115b0a9713b5.go} (100%) rename internal/sdk/virt/virtualization/{97d7b2a5e7895491e50503593e3f1b7f9da5c3abee440feea3eaa8a1d25c2ca4.go => 3c80c0638ebd7f1c79fc97035049d4b3f1f75d1c2ec86746012cda13f1262e57.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member1_network_info.go => 3d5c91a27303584810788fa4a9b6039949a452c0e877ec497eb455403eb06891.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info_vm_dns_setting_vm_dns.go => 3daad586e34fa38fd7e229f92a4bf2119997e94e934aa618d9b5b30968fdd9bc.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_item_host_get_response_host_network_system_port_groups_nic_teaming_policy.go => 40714f7a4aca86d422cd298e88fbd7af735eee9cb48ecd00466bc3a64743d9a1.go} (100%) rename internal/sdk/virt/virtualization/{37b910488fde7703f4d9e4a3ef9ffb7c5408a5d5afde5413d4f012cfb364ac09.go => 413e35491b2a2ca7e08ea8e7a8f484e44a4a35a66f5926b5b1fd397e548dcf89.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_get_response_items_csp_info_member2_image_deprecation_status_info.go => 4158163f24b1312351b5e53bc5fb853bb5753f66c80a7b6032da7eac8882d90e.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member2_csp_tags.go => 42c4a6dcfab6f118587a5aadb250f4b951b77ed2fe60453e7f16cbc82c4baf04.go} (100%) rename internal/sdk/virt/virtualization/{41c2c972fd85be3654ebd35fc97c598db0232e5f4c5095ce246a0d9d5c20d2dd.go => 478b05ea9486ae8f1c93157c1e120e81ce1b5eca413bbf15e4d199cf98f27cc6.go} (100%) rename internal/sdk/virt/virtualization/{b3df71855325f56101005637ebda8f61160269746768a2ffa2bb04d4a7786adc.go => 47f4749bf07046b55f12c9135ae0eff9c5fc4710f6b6caac41edc0abd75e5492.go} (100%) rename internal/sdk/virt/virtualization/{d1007f0ac2ba88efebd9a92271f91ff349d40ca3d4e6d62d4489dbf7d89d450f.go => 4d435043986c61f18596932bd8c8fb2f5f7f6922e344d31b8caa72ba15c71bfe.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_app_info_vmware_datastores_info.go => 4d75af18454191dea82759692b9589a3849fe061559a838024d6b7e66350078a.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_get_response_items_csp_info_member2_automatic_os_upgrade_properties.go => 4f09738d23af9fe17c60d954b02685f5e8543386f1626ffb98ae38730f6355c7.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_customize_guest_os_post_request_body_linux_config_network_interfaces.go => 4f724ae66ac1c001e729038b1550c9a9c295aee05b8db8f17e4f6581975afde8.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_app_info_vmware.go => 501676623d11822def5be8b68f4efff74eb61fc9b684b9307a93ca4c5752bbec.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_get_response_items_csp_info_network_info_vpc_info.go => 51b96db432f72f1fe233e80fc0a7fc5c69f7f4fbc5b3b4005c195e1f5cc3af75.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_app_info_vmware_datacenter_info.go => 540f8fd8e8e93756e4434c567cec7e7c6d3afc6522658533a529c91148f71bef.go} (100%) rename internal/sdk/virt/virtualization/{194974cb546c6db756ec5a9d5caff111579129a3f1bd3e29742322a5ab5d7fb6.go => 54b8b2f9e9d10a2c1a3864a1de91ec862c4c96100461428373f563e7302bd9bb.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_app_info_vmware_resource_pool_info.go => 57af9a281c6f1eccf2d8515a187a9340e03113b9c70c8befe3074d669a3e829a.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_protection_job_info_protection_policy_info.go => 57d6803d02ba84f995da7889e0b52b3ff96f6bf3d6ff604874ea5c734f80c4a6.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_csp_info_member2_network_info_connections.go => 5861deb911959b747b05e83577729f5d9e3a677f1d625b28d49c74e7f10cece4.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_update_hardware_post_request_body_cpu_mem_config_memory.go => 5a5babd758e2b6a3154f5452da92458f3b6de7d1975cf39a145f8e2d356dfebe.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member2_network_info.go => 5c77a959ff7c117d2d786492c0117def313f45f42a82604ae7e60eb6603b8f6b.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_get_response_items_csp_info_member1_block_device_mappings.go => 5ed1d2529777045a286fcc2ba2a1b09bbf85c05fc9212bc93169820eb3df5b93.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_app_info_vmware_tools_info.go => 617d42538a8782abbc8ae81da21d29d813e5271c220b153ea4c4843a29434a24.go} (100%) rename internal/sdk/virt/virtualization/{284f8bf59474cbf84f646ce0486fea029377e252931b765941d2308136c4b21f.go => 61c7f155a68b424c979abd401d5c293ad627e67714d0ee3ad35111e089984f8c.go} (100%) rename internal/sdk/virt/virtualization/{247a2bd2f4ba7c92bb7306ff56e812e68adae2e21618c7db5a387d71fe137d2e.go => 6384fc2a69ea10d6a7cb4c6ab4fb3633636df28ae86f2dcf9e1f8b080e28d170.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_virtual_disks_storage_system_info.go => 66d495f84ece40e3911055db1673832d92cfba30b068dbbd56ef95c995c41e7e.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_disks_app_info_vmware.go => 6833f24520199db76246f9da97f49107df10ccb64ba3ab4c9b84ef6cf5d14356.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_app_info_vmware_datacenter_info.go => 69e3a1f97380d759ca13e1079d6765bc5a93362cc2c162f43335ccfea9be5ba9.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info_network_interfaces_info.go => 6e744f9c071bab1f2aeabfa41da67de2de1e1b366164f347e0ef1eafe95aea67.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_csp_info_member2_network_info.go => 73274c49f430b7e7976ef8aa451920f1933432549656f0b0de22745bd8bd8c2e.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_csp_info_member1_network_info_security_groups.go => 75a052ee0ca90cd80e60d5770c9f8fffc782c077fc63614a6e24e08a8d23df74.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_processor_info.go => 774cda25bd13e59217d0d1b73cf11fb6e8bb6cb01fef150b19d1b71110e5341b.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_ebs_info.go => 7b381e19cde9d4111bf0a775866b7a6c825065f710184b3c109f9ea3ddac027a.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info_vm_dns_setting.go => 7eebf779fc412412e3aafd06812cd214d402d8f067462b38632dd6f300f5c64d.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_memory_info.go => 805d8fe4ef0415880d62a7185e58dd675a459f16d25d99dc9515ac9f82371320.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_item_host_get_response_app_info_vmware_datacenter_info.go => 835bd47cf74e736eb407a02da4b7239473d2e30897567dc236beea4424f108c5.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_get_response_items_app_info_vmware_datacenter_info.go => 83a23239a4c0461cfe7b6444aca996ae4d1f24dd2cd6e91c2d658bc44cbe83d2.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_guest_info_network_interfaces_info_ip_addresses.go => 8b3ce7c213eacb21cad7d4d94aba30e7e38bf1bf248d63bd866cd6854689e9b4.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_csp_info_member1_network_info.go => 8f434e1da793e7c8f7728ace50f412f4999dc37888897c981b0f53808a036fb5.go} (100%) rename internal/sdk/virt/virtualization/{3e0d36a75f82f1bb2f4e58e3826e13096a766d0f61a624970be9d780fa5dfc1b.go => 8f5a60225059c38123f35c03864fc7d0ad194b26f21baba7d7f760c0c93ef2a7.go} (100%) rename internal/sdk/virt/virtualization/{a697db1d8ea0a7df9bac74698eccb594694b7b77cb3e871c27d30bd4fb3b79f8.go => 8f92b0834ab7ecd5247ffb53499a792506f04b8ae63426037e641684fa59ec1f.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_resource_groups_item_with_resource_group_get_response_account_info.go => 900fe92346f20dddb36c0a2ebf7201385aca58dca5bd3037c1091eb7a4c74783.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_clusters_get_response_items_app_info_vmware_datacenter_info.go => 9564d1cc4bc3a07e3df941d726e690556f8908701069d34cc6816c33015d1ede.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_v_cpu_info.go => 9757db6ce80b3a7416a87c4a4f004ab0356fc942a702caccb8b5d5d9b82fbb9c.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_get_response_items_csp_info_network_info_subnet_group.go => 9797ee88c8c3765322ffd60f532523c9a523749820f215bc3e81d7f46d31350e.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_disks_storage_system_info.go => 98756e511499b16ea5ee4d7ba7f1b800fc3bf164e6e0f394cecae6484a2570ec.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_hypervisor_get_response_app_info_vmware_datacenters.go => 9a87db9213b458e1546885fc143d568df2a07662a4f2fd7071ebad8aabef37ce.go} (100%) rename internal/sdk/virt/virtualization/{3a8dd9384d9b70f551e377e147585c68212b8bc6a93b425790eccc4da4529cda.go => 9b78ced63046d2dd104689d81d68c2fce7d08ce79467bf665b303457188a2588.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_protection_job_info_asset_info.go => 9e0e5e47f4b1402a224d225cf1788ae88701bfcc3462ba08588c71ce2016d060.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_network_info_network_cards.go => a2a9f29d769d521e570cfdb7a3783c659b326cf0a37b0b38495f75641cd8ba05.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_item_csp_machine_instance_types_get_response_csp_info_member2.go => a61034e89dc53cb2e52d21a8e4d4ab29e0e1312d05ec3e712d987baed7f61ac1.go} (100%) rename internal/sdk/virt/virtualization/{6a10f04bd3ca5adb1ad02a832e34c69aeac7ef66cb056d4e8d3942a557f08f70.go => a79f2224c0c65fc837f2fbf976b52cee8e7216b45cd4d2dcf0b854d38c14c4f1.go} (100%) rename internal/sdk/virt/virtualization/{397d19a751a7859940a22e3feb2cab59292d22fa4853aec8ea8db3fb97e45812.go => a8b70df5250bcf22aba3ba0732c0599851a3017ad2703d980073e53d30764054.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_csp_info_member2_network_info_connections_vpc_info.go => a91b6225e59592686d1dbcb863ebae4e54e2b25e41ba0425dd22f667b5257f24.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_post_request_body_storage_config_volume_info_encryption.go => ac55c7f4fb82cf3366d1d3972184c6ac98fd594dd258e1a56e71650e13f1f87b.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_guest_info_vm_dns_setting_vm_dns_values.go => ae0d7a59aa0863808b5c6f5a4fca71a76ab1db5d92dadd7c0f38cd16ee871e87.go} (100%) rename internal/sdk/virt/virtualization/{f2a5f58ed8fbfd5a0a751b8b5823266a96bab2a46e7e2a968d858514878eb048.go => af3aab69ab4b5360857c7393e68d3b09510752f1c31d843240484c5b6182d2bc.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_protection_job_info_protection_policy_info.go => b2d02931b1112848daeb8ad2d98910600c21cb5649a2e9f0f345e5d616917845.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_customize_guest_os_post_request_body_linux_config_hostname.go => b5b9073e85633e61bbbc08f91e7083e29b65fafbc288b835f4cd649ef3f53633.go} (100%) rename internal/sdk/virt/virtualization/{1284d897086db48221c5c1663dae1dbd4e4af2b37fe482eba2fbb9363b9ee450.go => b671c13095673eccd5337cbfa567480bc0286bb9877ea1fde73710f888e986a3.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_app_info_vmware_tools_info.go => b6c9cb4965466cb36301d1ab794832cc2871e3a4a780b350a66ae91444a952f4.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_virtual_disks_app_info_vmware.go => bc426d801aa630d7c7942130e74cff11d9f0f6f2fb26dc1068a15a4853c3a654.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_guest_info_network_interfaces_info.go => bd7ebdeea2c582eec8ed556a251e03627a0e8e58921225af72e8e0fffa20fe7e.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info_vm_dns_setting_vm_dns_values.go => bd9f3f303f957613b041cdc3afc4c61e8636ec465f0794ae829e06e4ba870ce1.go} (100%) rename internal/sdk/virt/virtualization/{53a0f6e87edc00cbbec401cb23be3c750642a4404b4f81d286a67428deac0af6.go => c1ce2c5a2fccdbf2a806a624a160e1bede20065483e6fec186414957abf61a64.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_update_hardware_post_request_body_virtual_disks_disk_config.go => c29dec06d6f232ce93438db53bd2cc9e00944c19bb7b0e3d94122af4e3b1a113.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_item_csp_volumes_get_response_protection_job_info_protection_policy_info.go => c4195e33ddc1a62725cfacf36abd6d2780fda2a79e51eac96da44724b61ff16d.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_csp_info_member2_network_info_security_groups.go => c485251a19b54f6f7bb807d616827350422176bf46440eed67a4340aae33cd3e.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_customize_guest_os_post_request_body_linux_config_dns_settings.go => c4bb6291a69755c17441258d787ea46de116ad35ac541293fa8099ade760eb89.go} (100%) rename internal/sdk/virt/virtualization/{dee266204931b68999a3cfcb2ecd0ef06b342fa44377b094f1cb1c918a393e8a.go => c57a9c5003a0fd79f46052faf0b04840288321c77d757113f165604e28afc13f.go} (100%) rename internal/sdk/virt/virtualization/{aae7cdff1839c4dcedb986f08a17024d9fe9feb52d8527dcd70026c1ff36323c.go => c7a792bd7de3206c3b2fa616539725254ff4de8933c4f4348e0e27abb53f78fb.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_get_response_items_protection_job_info_protection_policy_info.go => c8903bf28f348388fa97b4a34c3344a8949cd5b4ee5839ba0a9b9822ec2e8cc0.go} (100%) rename internal/sdk/virt/virtualization/{bac747b21543ce5dd1a16e946df8e1d3a57d4a0219680a54ed800747d7401859.go => c937bb1cc19994512b0e54afa85b61ec557d1866190de6681544fa8e413a1eda.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info_network_info_subnet_group.go => cba23bd8119c8668fa297db47fd6296b0005bc78dd81c8b04c6425d8a5419788.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_ebs_info_ebs_optimized_info.go => cba4383de874492d1ffe34699285e7bc5bf89d72eeb177c1880a798d3b305f1e.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_placement_group_info.go => cd88b30b6221307eab03e07471a3bb338f1465d31ce4f7c5e66e1b5b94e2f6b8.go} (100%) rename internal/sdk/virt/virtualization/{94ae48186063265e8ce543cdca9eb53289f99e678cba57f2efa609e1891d09f6.go => cee9173b59b85c3c9ae805975d7da08a1dda00c4bda4ae3bf4fc21797def746e.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_csp_info_member1_network_info_vpc_info.go => d056d07e72b5421a71557b9fbf92c1e9369e5bbe503052b8a3bfda26badaa774.go} (100%) rename internal/sdk/virt/virtualization/{c46c6bd3ef8791a0c7115b18870a86eef6f9a7432254211b2569a995a600bd81.go => d0ae223fccc8b35037775af908d32316c3050c2f202474ca51cdd85a91b903d0.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_csp_info_member1_network_info_subnet_info.go => d17c94515e7f4b82d05a4f6e31201598f57bb3a75a907439ec67352da02aafb8.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_guest_info_vm_dns_setting_vm_dns.go => d245bfbe8c04e2a249a514de1981cc93acfafa629b40374ca34b2fad670abc3e.go} (100%) rename internal/sdk/virt/virtualization/{e91f2371910442299e412e5d278e180cb087ed9e8491d0ac1e14bc96cf01dbb6.go => d52a9767cba443966173bd60b93144d42c0b902b0a5af4acb4df8dd3251158da.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_update_hardware_post_request_body_network_adapters_network_details.go => d59dd77e616fdbcf9e938179594a380a5b8c6e28606c2891e44bd699580a5fad.go} (100%) rename internal/sdk/virt/virtualization/{43329fb3f7f0a47a35df4d60fa920d3f597c02081d99081c0babbcb2d23f2bbc.go => d65166e83a361f1cdcc3a29680fcd1bdbe14c8ca7dc5945fd179ae5d1956acc0.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items_machine_instance_attachment_info_attached_to.go => d73174994de0904ebc8539be464739b4570772cad5fcf0c86a91f6a0f920258a.go} (100%) rename internal/sdk/virt/virtualization/{146aaecc0f9c0667bc5b320c848a096a188f8c1b23d649e2fe4ac931a67f87e0.go => d81ba7607a9727ccd6e5a96d61f00969805f3459ade84f9e95f61f85e00ec037.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member1_csp_tags.go => dfb8fecfb04102ac1a2b20335aa1ae3b3548cc240592aad4772810008e06d380.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_network_adapters_network_details.go => e1dfa66bc742fcfac514b9d4354eb10c93b97dcac2025f48f9ed01ccb39d8dc5.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items_protection_job_info_protection_policy_info.go => e2d9e98ac98f32abfd7ed1ccc65ece44a6363f1f6c2deb238e2510281095b258.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_app_info_vmware_resource_pool_info.go => e7ca840096d0be16014a88b3e6c409baa5151a8fff7e3771f7ef9e03a171333f.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_get_response_items_hypervisor_manager_info.go => e94f2afeee082068119203cca21747488d06b67267c7ad91b22d0af6f7519dc9.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_get_response_items_csp_info_member2_capabilities.go => ea36c7020c8e5d575c9c652cde86615ab731eabf50d042009eada0eb3a793ea7.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_clusters_item_cluster_get_response_app_info_vmware_datacenter_info.go => f01154f4bb53cf0fe898ff98658ae20efb4b18123a2ff57960e1ba6501994e1a.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_folders_get_response_items_app_info_vmware_datacenter_info.go => f1051ee2b3b87f88600a15e18cc909cd846d13f0699abdccb0ad0f13e41a9f6d.go} (100%) rename internal/sdk/virt/virtualization/{eb8c26af446c704e7f4fedb1da63cea09510e83fa654408580933859e80c7f12.go => f30809423622a40ce8d06a2d49e5635bc74a1c00bc31d6e3baa4499782b6a938.go} (100%) rename internal/sdk/virt/virtualization/{56ddbc401a90fd9e56b6df8d31c2e8c80f0313178635d4250f4e4e05578b2f0a.go => f31d1f2920a11f61a5525471d59614201a27f9878182def32b72bfe6374bd866.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_get_response_items_app_info_vmware_datacenter_info.go => f45b992b738f7c87a4a043ca66257042f0e4845f56f34fe724036c23709068d5.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_hypervisor_manager_info.go => f479cedce73d8073a0eaf01bdaccfd77030522f47e648045abac1a30948b9b1a.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_folders_item_folder_get_response_app_info_vmware_datacenter_info.go => f498d83656093393da67aa9d002733d676f90d21c73eb7aaf9a857b6e232746c.go} (100%) rename internal/sdk/virt/virtualization/{bd517d384071e7913394f668d0ccaad657ef41bef712ad9d0a48cd91e33b7bd5.go => f565790db7c8f66b63a851d570830690524728987c4818fbd3a45547355425a3.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_get_response_items_csp_info_member2_location_info.go => f7b5832d40f00e7861dd362b0538ff7070d24759f823718c33a1861e040bf359.go} (100%) rename internal/sdk/virt/virtualization/{e5b77754b380092aeaf1b0d1e1214eb66d2b16c071685733db3910ed9aff312a.go => f7dcea331f904b54f078cc1bf02d2b3ae50f20c87abf75afabf0f5671faafe2b.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_item_csp_machine_instance_types_get_response_csp_info_member1.go => f8ca19f460ce2ef49c2033dbe286553593e2b237df19505a26a25cb00c306754.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_get_response_items_csp_info_member1_block_device_mappings_ebs.go => fc0a40520a15a1f9d02162bf13365b605a4307ddb265b90eb49317cd1d555635.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_protection_job_info_asset_info.go => ff8357f6dd97c9a51aa64d0a87dcf7342c8474b488dae5b1bf5cdb506b686d10.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/{csp_accounts_get_response_items_csp_type.go => csp_accounts_get_response_escaped_items_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/{csp_accounts_get_response_items_inventory_refresh_info_inventory_type.go => csp_accounts_get_response_escaped_items_escaped_inventory_refresh_info_escaped_inventory_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/{csp_accounts_get_response_items_inventory_refresh_info_status.go => csp_accounts_get_response_escaped_items_escaped_inventory_refresh_info_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/{csp_accounts_get_response_items_validation_status.go => csp_accounts_get_response_escaped_items_escaped_validation_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/{csp_accounts_post_request_body_csp_type.go => csp_accounts_post_request_body_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/{csp_accounts_post_response_csp_type.go => csp_accounts_post_response_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/{csp_accounts_post_response_inventory_refresh_info_inventory_type.go => csp_accounts_post_response_escaped_inventory_refresh_info_escaped_inventory_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/{csp_accounts_post_response_inventory_refresh_info_status.go => csp_accounts_post_response_escaped_inventory_refresh_info_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/{csp_accounts_post_response_validation_status.go => csp_accounts_post_response_escaped_validation_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/{account_get_response_csp_type.go => account_get_response_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/{account_get_response_inventory_refresh_info_inventory_type.go => account_get_response_escaped_inventory_refresh_info_escaped_inventory_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/{account_get_response_inventory_refresh_info_status.go => account_get_response_escaped_inventory_refresh_info_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/{account_get_response_validation_status.go => account_get_response_escaped_validation_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspresourcegroups/{csp_resource_groups_get_response_items_csp_type.go => csp_resource_groups_get_response_escaped_items_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspresourcegroups/item/{with_resource_group_get_response_csp_type.go => with_resource_group_get_response_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubnets/{csp_subnets_get_response_items_csp_type.go => csp_subnets_get_response_escaped_items_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubnets/item/{with_subnet_get_response_csp_type.go => with_subnet_get_response_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubscriptions/{csp_subscriptions_get_response_items_csp_type.go => csp_subscriptions_get_response_escaped_items_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubscriptions/item/{with_subscription_get_response_csp_type.go => with_subscription_get_response_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspvpcs/{csp_vpcs_get_response_items_csp_type.go => csp_vpcs_get_response_escaped_items_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspvpcs/item/{with_vpc_get_response_csp_type.go => with_vpc_get_response_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineimages/{csp_machine_images_get_response_items_csp_type.go => csp_machine_images_get_response_escaped_items_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineimages/item/{csp_machine_images_get_response_csp_type.go => csp_machine_images_get_response_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/{csp_machine_instances_get_response_items_protection_job_info_schedule_info_status.go => 634c7398680882670b7bdcf21289cb2a77a16dcf94100e080796cdf32ebc732c.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/{csp_machine_instances_get_response_items_backup_info_backup_type.go => csp_machine_instances_get_response_escaped_items_escaped_backup_info_escaped_backup_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/{csp_machine_instances_get_response_items_csp_info_member1_state.go => csp_machine_instances_get_response_escaped_items_escaped_csp_info_member1_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/{csp_machine_instances_get_response_items_csp_info_member2_state.go => csp_machine_instances_get_response_escaped_items_escaped_csp_info_member2_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/{csp_machine_instances_get_response_items_csp_type.go => csp_machine_instances_get_response_escaped_items_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/{csp_machine_instances_get_response_items_protection_status.go => csp_machine_instances_get_response_escaped_items_escaped_protection_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/{csp_machine_instances_get_response_items_state.go => csp_machine_instances_get_response_escaped_items_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/{csp_machine_instances_post_request_body_csp_type.go => csp_machine_instances_post_request_body_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/{csp_machine_instances_get_response_backup_info_backup_type.go => csp_machine_instances_get_response_escaped_backup_info_escaped_backup_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/{csp_machine_instances_get_response_csp_info_member1_state.go => csp_machine_instances_get_response_escaped_csp_info_member1_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/{csp_machine_instances_get_response_csp_info_member2_state.go => csp_machine_instances_get_response_escaped_csp_info_member2_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/{csp_machine_instances_get_response_csp_type.go => csp_machine_instances_get_response_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/{csp_machine_instances_get_response_protection_job_info_schedule_info_status.go => csp_machine_instances_get_response_escaped_protection_job_info_escaped_schedule_info_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/{csp_machine_instances_get_response_protection_status.go => csp_machine_instances_get_response_escaped_protection_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/{csp_machine_instances_get_response_state.go => csp_machine_instances_get_response_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/{4562a78af8009d14101d77b93b8695a004e510c48d4bd9bbce271acaede61871.go => 54bedf1b4e1e039a17bc5990af80cd6e14d4628c1ea026bd7c04ff13d7e9fcec.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/{csp_machine_instance_types_get_response_items_csp_info_member1_supported_virtualization_types.go => 903710565e599de4e6004b0513231efb85a730562c280cff595e8abe38acb9ad.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/{csp_machine_instance_types_get_response_items_csp_type.go => csp_machine_instance_types_get_response_escaped_items_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/{csp_machine_instance_types_get_response_items_csp_info_member1_supported_usage_classes.go => df09994afba48aee2a226d0ba7191c0d1698d17e0baed12c94e9c67d74dddddd.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/{ca502c11bab292d092e38fceb052d97581581a7ed85b4d3f9ee9f2b56d53af1d.go => e98cd21cddd470d2929e58d3242c04297cb6e5e141b1c402570a329f5740e7ad.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/{csp_machine_instance_types_get_response_items_csp_info_member1_supported_root_device_types.go => f6d29325b89a1dcbac308757a3bc3e218397b8d18bd2e7f71202d4cd583a0768.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/{csp_machine_instance_types_get_response_csp_info_member1_processor_info_supported_architectures.go => 6afe55219ad42db40fc191a0ccd9387ffcb70e3e1f77b17221e228dcf4cece5f.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/{csp_machine_instance_types_get_response_csp_info_member1_supported_virtualization_types.go => 866bcf57003d5b9cde424aad7d6ae7b01023614a202d3b0f4f8b4face54091a2.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/{csp_machine_instance_types_get_response_csp_info_member1_supported_root_device_types.go => csp_machine_instance_types_get_response_escaped_csp_info_member1_escaped_supported_root_device_types.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/{csp_machine_instance_types_get_response_csp_info_member1_supported_usage_classes.go => csp_machine_instance_types_get_response_escaped_csp_info_member1_escaped_supported_usage_classes.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/{csp_machine_instance_types_get_response_csp_type.go => csp_machine_instance_types_get_response_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/{csp_machine_instance_types_get_response_csp_info_member1_placement_group_info_supported_strategies.go => fa2a08583ec2bd4f502c68bd100dcd1b41609f351deca409c671a67e72477d69.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/csprdsinstances/{csp_rds_instances_get_response_items_protection_job_info_schedule_info_status.go => 27b3e22c4df191674d1f015c508d1f689be7471f6ad5ae700b7478d8218ad96e.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/csprdsinstances/{csp_rds_instances_get_response_items_backup_info_type.go => csp_rds_instances_get_response_escaped_items_escaped_backup_info_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/csprdsinstances/{csp_rds_instances_get_response_items_protection_status.go => csp_rds_instances_get_response_escaped_items_escaped_protection_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/csprdsinstances/{csp_rds_instances_get_response_items_refresh_info_status.go => csp_rds_instances_get_response_escaped_items_escaped_refresh_info_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/csprdsinstances/{csp_rds_instances_get_response_items_state.go => csp_rds_instances_get_response_escaped_items_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/{csp_rds_instances_get_response_backup_info_type.go => csp_rds_instances_get_response_escaped_backup_info_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/{csp_rds_instances_get_response_protection_job_info_schedule_info_status.go => csp_rds_instances_get_response_escaped_protection_job_info_escaped_schedule_info_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/{csp_rds_instances_get_response_protection_status.go => csp_rds_instances_get_response_escaped_protection_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/{csp_rds_instances_get_response_refresh_info_status.go => csp_rds_instances_get_response_escaped_refresh_info_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/{csp_rds_instances_get_response_state.go => csp_rds_instances_get_response_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspvolumes/{csp_volumes_get_response_items_protection_job_info_schedule_info_status.go => 79f2f21fece1d296efc3b7ebd02b7af4f4d822c79da89092ce477502fdd198f3.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspvolumes/{csp_volumes_get_response_items_backup_info_backup_type.go => csp_volumes_get_response_escaped_items_escaped_backup_info_escaped_backup_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspvolumes/{csp_volumes_get_response_items_csp_type.go => csp_volumes_get_response_escaped_items_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspvolumes/{csp_volumes_get_response_items_protection_status.go => csp_volumes_get_response_escaped_items_escaped_protection_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspvolumes/{csp_volumes_get_response_items_state.go => csp_volumes_get_response_escaped_items_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/{csp_volumes_get_response_backup_info_backup_type.go => csp_volumes_get_response_escaped_backup_info_escaped_backup_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/{csp_volumes_get_response_csp_type.go => csp_volumes_get_response_escaped_csp_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/{csp_volumes_get_response_protection_job_info_schedule_info_status.go => csp_volumes_get_response_escaped_protection_job_info_escaped_schedule_info_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/{csp_volumes_get_response_protection_status.go => csp_volumes_get_response_escaped_protection_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/{csp_volumes_get_response_state.go => csp_volumes_get_response_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/{datastores_get_response_items_replication_info_partner_details_vendor_name.go => 38c72cda99d15f47d52d99ccc527aae67f9c5805d597e2f4686e0cd7fa5c0b5f.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/{datastores_get_response_items_allowed_operations.go => datastores_get_response_escaped_items_escaped_allowed_operations.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/{datastores_get_response_items_app_type.go => datastores_get_response_escaped_items_escaped_app_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/{datastores_get_response_items_datastore_classification.go => datastores_get_response_escaped_items_escaped_datastore_classification.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/{datastores_get_response_items_datastore_type.go => datastores_get_response_escaped_items_escaped_datastore_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/{datastores_get_response_items_protection_policy_applied_at_info_type.go => datastores_get_response_escaped_items_escaped_protection_policy_applied_at_info_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/{datastores_get_response_items_protection_status.go => datastores_get_response_escaped_items_escaped_protection_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/{datastores_get_response_items_replication_info_partner_details_mode.go => datastores_get_response_escaped_items_escaped_replication_info_escaped_partner_details_escaped_mode.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/{datastores_get_response_items_state.go => datastores_get_response_escaped_items_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/{datastores_get_response_items_status.go => datastores_get_response_escaped_items_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/{datastores_get_response_items_volumes_info_storage_system_info_type.go => datastores_get_response_escaped_items_escaped_volumes_info_escaped_storage_system_info_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/{datastores_post_request_body_datastore_type.go => datastores_post_request_body_escaped_datastore_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/{datastores_post_request_body_volume_info_encryption_cipher.go => datastores_post_request_body_escaped_volume_info_escaped_encryption_escaped_cipher.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/item/{datastores_get_response_allowed_operations.go => datastores_get_response_escaped_allowed_operations.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/item/{datastores_get_response_app_type.go => datastores_get_response_escaped_app_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/item/{datastores_get_response_datastore_classification.go => datastores_get_response_escaped_datastore_classification.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/item/{datastores_get_response_datastore_type.go => datastores_get_response_escaped_datastore_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/item/{datastores_get_response_protection_policy_applied_at_info_type.go => datastores_get_response_escaped_protection_policy_applied_at_info_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/item/{datastores_get_response_protection_status.go => datastores_get_response_escaped_protection_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/item/{datastores_get_response_replication_info_partner_details_mode.go => datastores_get_response_escaped_replication_info_escaped_partner_details_escaped_mode.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/item/{datastores_get_response_replication_info_partner_details_vendor_name.go => datastores_get_response_escaped_replication_info_escaped_partner_details_escaped_vendor_name.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/item/{datastores_get_response_state.go => datastores_get_response_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/item/{datastores_get_response_status.go => datastores_get_response_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/datastores/item/{datastores_get_response_volumes_info_storage_system_info_type.go => datastores_get_response_escaped_volumes_info_escaped_storage_system_info_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/{hypervisor_clusters_get_response_items_app_type.go => hypervisor_clusters_get_response_escaped_items_escaped_app_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/{hypervisor_clusters_get_response_items_cluster_type.go => hypervisor_clusters_get_response_escaped_items_escaped_cluster_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/{hypervisor_clusters_get_response_items_state.go => hypervisor_clusters_get_response_escaped_items_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/{hypervisor_clusters_get_response_items_status.go => hypervisor_clusters_get_response_escaped_items_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/{cluster_get_response_app_type.go => cluster_get_response_escaped_app_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/{cluster_get_response_cluster_type.go => cluster_get_response_escaped_cluster_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/{cluster_get_response_state.go => cluster_get_response_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/{cluster_get_response_status.go => cluster_get_response_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/{hypervisor_hosts_get_response_items_app_type.go => hypervisor_hosts_get_response_escaped_items_escaped_app_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/{hypervisor_hosts_get_response_items_host_type.go => hypervisor_hosts_get_response_escaped_items_escaped_host_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/{hypervisor_hosts_get_response_items_parent_info_type.go => hypervisor_hosts_get_response_escaped_items_escaped_parent_info_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/{hypervisor_hosts_get_response_items_state.go => hypervisor_hosts_get_response_escaped_items_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/{hypervisor_hosts_get_response_items_status.go => hypervisor_hosts_get_response_escaped_items_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/{hypervisor_hosts_get_response_items_storage_adapters_info_status.go => hypervisor_hosts_get_response_escaped_items_escaped_storage_adapters_info_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/{host_get_response_app_type.go => host_get_response_escaped_app_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/{host_get_response_host_type.go => host_get_response_escaped_host_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/{host_get_response_parent_info_type.go => host_get_response_escaped_parent_info_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/{host_get_response_state.go => host_get_response_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/{host_get_response_status.go => host_get_response_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/{host_get_response_storage_adapters_info_status.go => host_get_response_escaped_storage_adapters_info_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/{hypervisor_managers_get_response_items_app_type.go => hypervisor_managers_get_response_escaped_items_escaped_app_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/{hypervisor_managers_get_response_items_hypervisor_manager_type.go => hypervisor_managers_get_response_escaped_items_escaped_hypervisor_manager_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/{hypervisor_managers_get_response_items_state.go => hypervisor_managers_get_response_escaped_items_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/{hypervisor_managers_get_response_items_status.go => hypervisor_managers_get_response_escaped_items_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/folders/{folders_get_response_items_folder_type.go => folders_get_response_escaped_items_escaped_folder_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/folders/item/{folder_get_response_folder_type.go => folder_get_response_escaped_folder_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/{hypervisor_get_response_app_type.go => hypervisor_get_response_escaped_app_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/{hypervisor_get_response_hypervisor_manager_type.go => hypervisor_get_response_escaped_hypervisor_manager_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/{hypervisor_get_response_state.go => hypervisor_get_response_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/{hypervisor_get_response_status.go => hypervisor_get_response_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisorlibraryimages/{hypervisor_library_images_get_response_items_file_type.go => hypervisor_library_images_get_response_escaped_items_escaped_file_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisorlibraryimages/item/{hypervisor_library_image_get_response_file_type.go => hypervisor_library_image_get_response_escaped_file_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/item/{network_get_response_state.go => network_get_response_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/item/{network_get_response_status.go => network_get_response_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/{networks_get_response_items_state.go => networks_get_response_escaped_items_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/{networks_get_response_items_status.go => networks_get_response_escaped_items_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/item/{pool_get_response_state.go => pool_get_response_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/item/{pool_get_response_status.go => pool_get_response_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/{resource_pools_get_response_items_state.go => resource_pools_get_response_escaped_items_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/{resource_pools_get_response_items_status.go => resource_pools_get_response_escaped_items_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/tags/item/{tag_get_response_state.go => tag_get_response_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/tags/{tags_get_response_items_state.go => tags_get_response_escaped_items_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_app_info_vmware_tools_info_status.go => 0a72d28da1f8551a21c8383101a0472f368cc924bbae4dcdf334c0c28fc3b1a3.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_virtual_disks_app_info_vmware_type.go => 21fe5a4f39541af90f52897c3be5ba3366659568acb95dc9814e9cf3cd0b0459.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_network_adapters_network_details_state.go => 260b8a9525d749be23ee0a106555b9f85686fc6b749d79b4cf20e9c652823613.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_post_request_body_storage_config_volume_info_encryption_cipher.go => 2ac509776b958ad2546137bacdefd499f6551d2eb9a53a0e114535f2210806f0.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_volumes_info_storage_system_info_type.go => be9285b76d59e7a006172db2e1f28a20717cb262316cdccfc9f9100489d04596.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/customizeguestos/{customize_guest_os_post_request_body_linux_config_network_interfaces_network_adapter_ipv4_type.go => 0363f5d3a33cb61babed0d5d350c27f79de5238456ece53604ddd6aed9cbda47.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/{update_hardware_post_request_body_network_adapters_network_details_type.go => update_hardware_post_request_body_escaped_network_adapters_escaped_network_details_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/{update_hardware_post_request_body_network_adapters_operation.go => update_hardware_post_request_body_escaped_network_adapters_escaped_operation.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/{update_hardware_post_request_body_network_adapters_type.go => update_hardware_post_request_body_escaped_network_adapters_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/{update_hardware_post_request_body_virtual_disks_disk_config_type.go => update_hardware_post_request_body_escaped_virtual_disks_escaped_disk_config_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/{update_hardware_post_request_body_virtual_disks_operation.go => update_hardware_post_request_body_escaped_virtual_disks_escaped_operation.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_allowed_operations.go => virtual_machines_get_response_escaped_allowed_operations.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_app_info_vmware_tools_info_status.go => virtual_machines_get_response_escaped_app_info_escaped_vmware_escaped_tools_info_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_app_info_vmware_type.go => virtual_machines_get_response_escaped_app_info_escaped_vmware_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_app_type.go => virtual_machines_get_response_escaped_app_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_graphics_type.go => virtual_machines_get_response_escaped_graphics_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_guest_info_type.go => virtual_machines_get_response_escaped_guest_info_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_network_adapters_mac_address_type.go => virtual_machines_get_response_escaped_network_adapters_escaped_mac_address_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_network_adapters_network_details_state.go => virtual_machines_get_response_escaped_network_adapters_escaped_network_details_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_power_state.go => virtual_machines_get_response_escaped_power_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_protection_policy_applied_at_info_type.go => virtual_machines_get_response_escaped_protection_policy_applied_at_info_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_protection_status.go => virtual_machines_get_response_escaped_protection_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_state.go => virtual_machines_get_response_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_status.go => virtual_machines_get_response_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_virtual_disks_app_info_vmware_type.go => virtual_machines_get_response_escaped_virtual_disks_escaped_app_info_escaped_vmware_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_vm_classification.go => virtual_machines_get_response_escaped_vm_classification.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/{virtual_machines_get_response_volumes_info_storage_system_info_type.go => virtual_machines_get_response_escaped_volumes_info_escaped_storage_system_info_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_allowed_operations.go => virtual_machines_get_response_escaped_items_escaped_allowed_operations.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_app_info_vmware_type.go => virtual_machines_get_response_escaped_items_escaped_app_info_escaped_vmware_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_app_type.go => virtual_machines_get_response_escaped_items_escaped_app_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_graphics_type.go => virtual_machines_get_response_escaped_items_escaped_graphics_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_guest_info_type.go => virtual_machines_get_response_escaped_items_escaped_guest_info_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_network_adapters_mac_address_type.go => virtual_machines_get_response_escaped_items_escaped_network_adapters_escaped_mac_address_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_power_state.go => virtual_machines_get_response_escaped_items_escaped_power_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_protection_policy_applied_at_info_type.go => virtual_machines_get_response_escaped_items_escaped_protection_policy_applied_at_info_escaped_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_protection_status.go => virtual_machines_get_response_escaped_items_escaped_protection_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_state.go => virtual_machines_get_response_escaped_items_escaped_state.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_status.go => virtual_machines_get_response_escaped_items_escaped_status.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_get_response_items_vm_classification.go => virtual_machines_get_response_escaped_items_escaped_vm_classification.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_post_request_body_image_source_image_source_type.go => virtual_machines_post_request_body_escaped_image_source_escaped_image_source_type.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_post_request_body_network_config_ip_allocation_policy.go => virtual_machines_post_request_body_escaped_network_config_escaped_ip_allocation_policy.go} (100%) rename internal/sdk/virt/virtualization/v1beta1/virtualmachines/{virtual_machines_post_request_body_storage_config_provisioning_type.go => virtual_machines_post_request_body_escaped_storage_config_escaped_provisioning_type.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_get_response_items.go => v1beta1_csp_accounts_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_get_response_items_inventory_refresh_info.go => v1beta1_csp_accounts_get_response_escaped_items_escaped_inventory_refresh_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_get_response_items_onboarding_template.go => v1beta1_csp_accounts_get_response_escaped_items_escaped_onboarding_template.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_account_get_response_inventory_refresh_info.go => v1beta1_csp_accounts_item_account_get_response_escaped_inventory_refresh_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_account_get_response_onboarding_template.go => v1beta1_csp_accounts_item_account_get_response_escaped_onboarding_template.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_resource_groups_get_response_items.go => v1beta1_csp_accounts_item_csp_resource_groups_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_resource_groups_get_response_items_account_info.go => v1beta1_csp_accounts_item_csp_resource_groups_get_response_escaped_items_escaped_account_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_resource_groups_get_response_items_csp_info.go => v1beta1_csp_accounts_item_csp_resource_groups_get_response_escaped_items_escaped_csp_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_resource_groups_get_response_items_subscription_info.go => v1beta1_csp_accounts_item_csp_resource_groups_get_response_escaped_items_escaped_subscription_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_resource_groups_item_with_resource_group_get_response_csp_info.go => v1beta1_csp_accounts_item_csp_resource_groups_item_with_resource_group_get_response_escaped_csp_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_subnets_get_response_items.go => v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items.go} (98%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_subnets_get_response_items_account_info.go => v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items_escaped_account_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_subnets_get_response_items_csp_info_member1.go => v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items_escaped_csp_info_member1.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_subnets_get_response_items_csp_info_member2.go => v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items_escaped_csp_info_member2.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_subnets_get_response_items_vpc_info.go => v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items_escaped_vpc_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_account_info.go => v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_escaped_account_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_csp_info_member1.go => v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_escaped_csp_info_member1.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_csp_info_member2.go => v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_escaped_csp_info_member2.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_vpc_info.go => v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_escaped_vpc_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_subscriptions_get_response_items.go => v1beta1_csp_accounts_item_csp_subscriptions_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_subscriptions_get_response_items_account_info.go => v1beta1_csp_accounts_item_csp_subscriptions_get_response_escaped_items_escaped_account_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_subscriptions_item_with_subscription_get_response_account_info.go => v1beta1_csp_accounts_item_csp_subscriptions_item_with_subscription_get_response_escaped_account_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_tag_keys_get_response_items.go => v1beta1_csp_accounts_item_csp_tag_keys_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_tags_get_response_items.go => v1beta1_csp_accounts_item_csp_tags_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_vpcs_get_response_items.go => v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items.go} (98%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_vpcs_get_response_items_account_info.go => v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items_escaped_account_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_vpcs_get_response_items_csp_info_member1.go => v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items_escaped_csp_info_member1.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_vpcs_get_response_items_csp_info_member2.go => v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items_escaped_csp_info_member2.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_vpcs_get_response_items_subscription_info.go => v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items_escaped_subscription_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_account_info.go => v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_escaped_account_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_csp_info_member1.go => v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_escaped_csp_info_member1.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_csp_info_member2.go => v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_escaped_csp_info_member2.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_subscription_info.go => v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_escaped_subscription_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_post_response_inventory_refresh_info.go => v1beta1_csp_accounts_post_response_escaped_inventory_refresh_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_accounts_post_response_onboarding_template.go => v1beta1_csp_accounts_post_response_escaped_onboarding_template.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_get_response_items.go => v1beta1_csp_machine_images_get_response_escaped_items.go} (98%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_get_response_items_csp_info_member1.go => v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member1.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_get_response_items_csp_info_member2.go => v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member2.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_get_response_items_csp_info_member2_disallowed.go => v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member2_escaped_disallowed.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_get_response_items_csp_info_member2_features.go => v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member2_escaped_features.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_get_response_items_csp_info_member2_os_disk_image.go => v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member2_escaped_os_disk_image.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_get_response_items_csp_info_member2_version_info.go => v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member2_escaped_version_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member1.go => v1beta1_csp_machine_images_item_csp_machine_images_get_response_escaped_csp_info_member1.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member2.go => v1beta1_csp_machine_images_item_csp_machine_images_get_response_escaped_csp_info_member2.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_get_response_items.go => v1beta1_csp_machine_instance_types_get_response_escaped_items.go} (98%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1.go => v1beta1_csp_machine_instance_types_get_response_escaped_items_escaped_csp_info_member1.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instance_types_get_response_items_csp_info_member2.go => v1beta1_csp_machine_instance_types_get_response_escaped_items_escaped_csp_info_member2.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items.go => v1beta1_csp_machine_instances_get_response_escaped_items.go} (98%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_account_info.go => v1beta1_csp_machine_instances_get_response_escaped_items_escaped_account_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_backup_info.go => v1beta1_csp_machine_instances_get_response_escaped_items_escaped_backup_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_csp_info_member1.go => v1beta1_csp_machine_instances_get_response_escaped_items_escaped_csp_info_member1.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_csp_info_member1_csp_tags.go => v1beta1_csp_machine_instances_get_response_escaped_items_escaped_csp_info_member1_escaped_csp_tags.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_csp_info_member2.go => v1beta1_csp_machine_instances_get_response_escaped_items_escaped_csp_info_member2.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_csp_info_member2_csp_tags.go => v1beta1_csp_machine_instances_get_response_escaped_items_escaped_csp_info_member2_escaped_csp_tags.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_protection_group_info.go => v1beta1_csp_machine_instances_get_response_escaped_items_escaped_protection_group_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_protection_job_info.go => v1beta1_csp_machine_instances_get_response_escaped_items_escaped_protection_job_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_resource_group_info.go => v1beta1_csp_machine_instances_get_response_escaped_items_escaped_resource_group_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_subscription_info.go => v1beta1_csp_machine_instances_get_response_escaped_items_escaped_subscription_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_get_response_items_volume_attachment_info.go => v1beta1_csp_machine_instances_get_response_escaped_items_escaped_volume_attachment_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_account_info.go => v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_account_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_backup_info.go => v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_backup_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member1.go => v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_csp_info_member1.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member2.go => v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_csp_info_member2.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_protection_group_info.go => v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_protection_group_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_protection_job_info.go => v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_protection_job_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_resource_group_info.go => v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_resource_group_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_subscription_info.go => v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_subscription_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_volume_attachment_info.go => v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_volume_attachment_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_post_request_body_csp_machine_instance_info_member1.go => v1beta1_csp_machine_instances_post_request_body_escaped_csp_machine_instance_info_member1.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_post_request_body_csp_machine_instance_info_member2.go => v1beta1_csp_machine_instances_post_request_body_escaped_csp_machine_instance_info_member2.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_machine_instances_update_csp_tags_post_request_body_csp_tags_added.go => v1beta1_csp_machine_instances_update_csp_tags_post_request_body_escaped_csp_tags_added.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_get_response_items.go => v1beta1_csp_rds_instances_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_get_response_items_account_info.go => v1beta1_csp_rds_instances_get_response_escaped_items_escaped_account_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_get_response_items_backup_info.go => v1beta1_csp_rds_instances_get_response_escaped_items_escaped_backup_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_get_response_items_csp_info.go => v1beta1_csp_rds_instances_get_response_escaped_items_escaped_csp_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_get_response_items_csp_info_csp_tags.go => v1beta1_csp_rds_instances_get_response_escaped_items_escaped_csp_info_escaped_csp_tags.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_get_response_items_csp_info_network_info.go => v1beta1_csp_rds_instances_get_response_escaped_items_escaped_csp_info_escaped_network_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_get_response_items_csp_info_storage_info.go => v1beta1_csp_rds_instances_get_response_escaped_items_escaped_csp_info_escaped_storage_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_get_response_items_metadata.go => v1beta1_csp_rds_instances_get_response_escaped_items_escaped_metadata.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_get_response_items_protection_job_info.go => v1beta1_csp_rds_instances_get_response_escaped_items_escaped_protection_job_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_get_response_items_refresh_info.go => v1beta1_csp_rds_instances_get_response_escaped_items_escaped_refresh_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_account_info.go => v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_account_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_backup_info.go => v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_backup_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info.go => v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_csp_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info_csp_tags.go => v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_csp_info_escaped_csp_tags.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info_network_info.go => v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_csp_info_escaped_network_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info_storage_info.go => v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_csp_info_escaped_storage_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_metadata.go => v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_metadata.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_protection_job_info.go => v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_protection_job_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_refresh_info.go => v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_refresh_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items.go => v1beta1_csp_volumes_get_response_escaped_items.go} (98%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items_account_info.go => v1beta1_csp_volumes_get_response_escaped_items_escaped_account_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items_backup_info.go => v1beta1_csp_volumes_get_response_escaped_items_escaped_backup_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items_csp_info_member1.go => v1beta1_csp_volumes_get_response_escaped_items_escaped_csp_info_member1.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items_csp_info_member1_csp_tags.go => v1beta1_csp_volumes_get_response_escaped_items_escaped_csp_info_member1_escaped_csp_tags.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items_csp_info_member2.go => v1beta1_csp_volumes_get_response_escaped_items_escaped_csp_info_member2.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items_csp_info_member2_csp_tags.go => v1beta1_csp_volumes_get_response_escaped_items_escaped_csp_info_member2_escaped_csp_tags.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items_machine_instance_attachment_info.go => v1beta1_csp_volumes_get_response_escaped_items_escaped_machine_instance_attachment_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items_protection_group_info.go => v1beta1_csp_volumes_get_response_escaped_items_escaped_protection_group_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items_protection_job_info.go => v1beta1_csp_volumes_get_response_escaped_items_escaped_protection_job_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items_protection_job_info_asset_info.go => v1beta1_csp_volumes_get_response_escaped_items_escaped_protection_job_info_escaped_asset_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items_protection_job_info_schedule_info.go => v1beta1_csp_volumes_get_response_escaped_items_escaped_protection_job_info_escaped_schedule_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items_resource_group_info.go => v1beta1_csp_volumes_get_response_escaped_items_escaped_resource_group_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_get_response_items_subscription_info.go => v1beta1_csp_volumes_get_response_escaped_items_escaped_subscription_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_item_csp_volumes_get_response_account_info.go => v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_account_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_item_csp_volumes_get_response_backup_info.go => v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_backup_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_item_csp_volumes_get_response_csp_info_member1.go => v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_csp_info_member1.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_item_csp_volumes_get_response_csp_info_member1_csp_tags.go => v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_csp_info_member1_escaped_csp_tags.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_item_csp_volumes_get_response_csp_info_member2.go => v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_csp_info_member2.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_item_csp_volumes_get_response_csp_info_member2_csp_tags.go => v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_csp_info_member2_escaped_csp_tags.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_item_csp_volumes_get_response_machine_instance_attachment_info.go => v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_machine_instance_attachment_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_item_csp_volumes_get_response_protection_group_info.go => v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_protection_group_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_item_csp_volumes_get_response_protection_job_info.go => v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_protection_job_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_item_csp_volumes_get_response_protection_job_info_asset_info.go => v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_protection_job_info_escaped_asset_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_item_csp_volumes_get_response_protection_job_info_schedule_info.go => v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_protection_job_info_escaped_schedule_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_item_csp_volumes_get_response_resource_group_info.go => v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_resource_group_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_item_csp_volumes_get_response_subscription_info.go => v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_subscription_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_csp_volumes_update_csp_tags_post_request_body_csp_tags_added.go => v1beta1_csp_volumes_update_csp_tags_post_request_body_escaped_csp_tags_added.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items.go => v1beta1_datastores_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_cluster_info.go => v1beta1_datastores_get_response_escaped_items_escaped_cluster_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_datacenters_info.go => v1beta1_datastores_get_response_escaped_items_escaped_datacenters_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_folder_info.go => v1beta1_datastores_get_response_escaped_items_escaped_folder_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_hosts_info.go => v1beta1_datastores_get_response_escaped_items_escaped_hosts_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_hypervisor_manager_info.go => v1beta1_datastores_get_response_escaped_items_escaped_hypervisor_manager_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_protection_job_info.go => v1beta1_datastores_get_response_escaped_items_escaped_protection_job_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_protection_policy_applied_at_info.go => v1beta1_datastores_get_response_escaped_items_escaped_protection_policy_applied_at_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_provisioning_policy_info.go => v1beta1_datastores_get_response_escaped_items_escaped_provisioning_policy_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_replication_info.go => v1beta1_datastores_get_response_escaped_items_escaped_replication_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_replication_info_partner_details.go => v1beta1_datastores_get_response_escaped_items_escaped_replication_info_escaped_partner_details.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_storage_systems_info.go => v1beta1_datastores_get_response_escaped_items_escaped_storage_systems_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_vm_protection_groups_info.go => v1beta1_datastores_get_response_escaped_items_escaped_vm_protection_groups_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_volumes_info.go => v1beta1_datastores_get_response_escaped_items_escaped_volumes_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_volumes_info_storage_folder_info.go => v1beta1_datastores_get_response_escaped_items_escaped_volumes_info_escaped_storage_folder_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_volumes_info_storage_pool_info.go => v1beta1_datastores_get_response_escaped_items_escaped_volumes_info_escaped_storage_pool_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_volumes_info_storage_system_info.go => v1beta1_datastores_get_response_escaped_items_escaped_volumes_info_escaped_storage_system_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_get_response_items_volumes_info_volume_set_info.go => v1beta1_datastores_get_response_escaped_items_escaped_volumes_info_escaped_volume_set_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_cluster_info.go => v1beta1_datastores_item_datastores_get_response_escaped_cluster_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_datacenters_info.go => v1beta1_datastores_item_datastores_get_response_escaped_datacenters_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_folder_info.go => v1beta1_datastores_item_datastores_get_response_escaped_folder_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_hosts_info.go => v1beta1_datastores_item_datastores_get_response_escaped_hosts_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_hypervisor_manager_info.go => v1beta1_datastores_item_datastores_get_response_escaped_hypervisor_manager_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_protection_job_info.go => v1beta1_datastores_item_datastores_get_response_escaped_protection_job_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_protection_policy_applied_at_info.go => v1beta1_datastores_item_datastores_get_response_escaped_protection_policy_applied_at_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_provisioning_policy_info.go => v1beta1_datastores_item_datastores_get_response_escaped_provisioning_policy_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_replication_info.go => v1beta1_datastores_item_datastores_get_response_escaped_replication_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_replication_info_partner_details.go => v1beta1_datastores_item_datastores_get_response_escaped_replication_info_escaped_partner_details.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_storage_systems_info.go => v1beta1_datastores_item_datastores_get_response_escaped_storage_systems_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_vm_protection_groups_info.go => v1beta1_datastores_item_datastores_get_response_escaped_vm_protection_groups_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_volumes_info.go => v1beta1_datastores_item_datastores_get_response_escaped_volumes_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_volumes_info_storage_folder_info.go => v1beta1_datastores_item_datastores_get_response_escaped_volumes_info_escaped_storage_folder_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_volumes_info_storage_pool_info.go => v1beta1_datastores_item_datastores_get_response_escaped_volumes_info_escaped_storage_pool_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_volumes_info_storage_system_info.go => v1beta1_datastores_item_datastores_get_response_escaped_volumes_info_escaped_storage_system_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_get_response_volumes_info_volume_set_info.go => v1beta1_datastores_item_datastores_get_response_escaped_volumes_info_escaped_volume_set_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_item_datastores_patch_request_body_qos.go => v1beta1_datastores_item_datastores_patch_request_body_escaped_qos.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_post_request_body_volume_info.go => v1beta1_datastores_post_request_body_escaped_volume_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_post_request_body_volume_info_encryption.go => v1beta1_datastores_post_request_body_escaped_volume_info_escaped_encryption.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_datastores_post_request_body_volume_info_qos.go => v1beta1_datastores_post_request_body_escaped_volume_info_escaped_qos.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_clusters_get_response_items.go => v1beta1_hypervisor_clusters_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_clusters_get_response_items_app_info.go => v1beta1_hypervisor_clusters_get_response_escaped_items_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_clusters_get_response_items_app_info_vmware.go => v1beta1_hypervisor_clusters_get_response_escaped_items_escaped_app_info_escaped_vmware.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_clusters_get_response_items_cluster_perf_metric_info.go => v1beta1_hypervisor_clusters_get_response_escaped_items_escaped_cluster_perf_metric_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_clusters_get_response_items_hypervisor_hosts.go => v1beta1_hypervisor_clusters_get_response_escaped_items_escaped_hypervisor_hosts.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_clusters_get_response_items_hypervisor_manager_info.go => v1beta1_hypervisor_clusters_get_response_escaped_items_escaped_hypervisor_manager_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_clusters_item_cluster_get_response_app_info.go => v1beta1_hypervisor_clusters_item_cluster_get_response_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_clusters_item_cluster_get_response_app_info_vmware.go => v1beta1_hypervisor_clusters_item_cluster_get_response_escaped_app_info_escaped_vmware.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_clusters_item_cluster_get_response_cluster_perf_metric_info.go => v1beta1_hypervisor_clusters_item_cluster_get_response_escaped_cluster_perf_metric_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_clusters_item_cluster_get_response_hypervisor_hosts.go => v1beta1_hypervisor_clusters_item_cluster_get_response_escaped_hypervisor_hosts.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_clusters_item_cluster_get_response_hypervisor_manager_info.go => v1beta1_hypervisor_clusters_item_cluster_get_response_escaped_hypervisor_manager_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_get_response_items.go => v1beta1_hypervisor_hosts_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_get_response_items_app_info.go => v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_get_response_items_app_info_vmware.go => v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_app_info_escaped_vmware.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_get_response_items_cpu_info.go => v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_cpu_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_get_response_items_cpu_sockets.go => v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_cpu_sockets.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_get_response_items_host_network_system.go => v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_host_network_system.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_get_response_items_host_network_system_port_groups.go => v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_host_network_system_escaped_port_groups.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_get_response_items_host_perf_metric_info.go => v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_host_perf_metric_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_get_response_items_hypervisor_manager_info.go => v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_hypervisor_manager_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_get_response_items_parent_info.go => v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_parent_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_get_response_items_storage_adapters_info.go => v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_storage_adapters_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_item_host_get_response_app_info.go => v1beta1_hypervisor_hosts_item_host_get_response_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_item_host_get_response_app_info_vmware.go => v1beta1_hypervisor_hosts_item_host_get_response_escaped_app_info_escaped_vmware.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_item_host_get_response_cpu_info.go => v1beta1_hypervisor_hosts_item_host_get_response_escaped_cpu_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_item_host_get_response_cpu_sockets.go => v1beta1_hypervisor_hosts_item_host_get_response_escaped_cpu_sockets.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_item_host_get_response_host_network_system.go => v1beta1_hypervisor_hosts_item_host_get_response_escaped_host_network_system.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_item_host_get_response_host_network_system_port_groups.go => v1beta1_hypervisor_hosts_item_host_get_response_escaped_host_network_system_escaped_port_groups.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_item_host_get_response_host_perf_metric_info.go => v1beta1_hypervisor_hosts_item_host_get_response_escaped_host_perf_metric_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_item_host_get_response_hypervisor_manager_info.go => v1beta1_hypervisor_hosts_item_host_get_response_escaped_hypervisor_manager_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_item_host_get_response_parent_info.go => v1beta1_hypervisor_hosts_item_host_get_response_escaped_parent_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_hosts_item_host_get_response_storage_adapters_info.go => v1beta1_hypervisor_hosts_item_host_get_response_escaped_storage_adapters_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_get_response_items.go => v1beta1_hypervisor_managers_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_get_response_items_app_info.go => v1beta1_hypervisor_managers_get_response_escaped_items_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_get_response_items_app_info_vmware.go => v1beta1_hypervisor_managers_get_response_escaped_items_escaped_app_info_escaped_vmware.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_get_response_items_data_orchestrator_info.go => v1beta1_hypervisor_managers_get_response_escaped_items_escaped_data_orchestrator_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_get_response_items_data_services_connectors_info.go => v1beta1_hypervisor_managers_get_response_escaped_items_escaped_data_services_connectors_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_folders_get_response_items.go => v1beta1_hypervisor_managers_item_folders_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_folders_get_response_items_app_info.go => v1beta1_hypervisor_managers_item_folders_get_response_escaped_items_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_folders_get_response_items_app_info_vmware.go => v1beta1_hypervisor_managers_item_folders_get_response_escaped_items_escaped_app_info_escaped_vmware.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_folders_get_response_items_hypervisor_manager_info.go => v1beta1_hypervisor_managers_item_folders_get_response_escaped_items_escaped_hypervisor_manager_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_folders_get_response_items_parent_folder_info.go => v1beta1_hypervisor_managers_item_folders_get_response_escaped_items_escaped_parent_folder_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_folders_get_response_items_sub_folders.go => v1beta1_hypervisor_managers_item_folders_get_response_escaped_items_escaped_sub_folders.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_folders_item_folder_get_response_app_info.go => v1beta1_hypervisor_managers_item_folders_item_folder_get_response_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_folders_item_folder_get_response_app_info_vmware.go => v1beta1_hypervisor_managers_item_folders_item_folder_get_response_escaped_app_info_escaped_vmware.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_folders_item_folder_get_response_hypervisor_manager_info.go => v1beta1_hypervisor_managers_item_folders_item_folder_get_response_escaped_hypervisor_manager_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_folders_item_folder_get_response_parent_folder_info.go => v1beta1_hypervisor_managers_item_folders_item_folder_get_response_escaped_parent_folder_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_folders_item_folder_get_response_sub_folders.go => v1beta1_hypervisor_managers_item_folders_item_folder_get_response_escaped_sub_folders.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_hypervisor_get_response_app_info.go => v1beta1_hypervisor_managers_item_hypervisor_get_response_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_hypervisor_get_response_app_info_vmware.go => v1beta1_hypervisor_managers_item_hypervisor_get_response_escaped_app_info_escaped_vmware.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_hypervisor_get_response_data_orchestrator_info.go => v1beta1_hypervisor_managers_item_hypervisor_get_response_escaped_data_orchestrator_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_hypervisor_get_response_data_services_connectors_info.go => v1beta1_hypervisor_managers_item_hypervisor_get_response_escaped_data_services_connectors_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_hypervisor_library_images_get_response_items.go => v1beta1_hypervisor_managers_item_hypervisor_library_images_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_hypervisor_patch_request_body_member1_credentials.go => v1beta1_hypervisor_managers_item_hypervisor_patch_request_body_member1_escaped_credentials.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_networks_get_response_items.go => v1beta1_hypervisor_managers_item_networks_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_networks_get_response_items_app_info.go => v1beta1_hypervisor_managers_item_networks_get_response_escaped_items_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_networks_get_response_items_app_info_vmware.go => v1beta1_hypervisor_managers_item_networks_get_response_escaped_items_escaped_app_info_escaped_vmware.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_networks_get_response_items_cluster_info.go => v1beta1_hypervisor_managers_item_networks_get_response_escaped_items_escaped_cluster_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_networks_get_response_items_hosts_info.go => v1beta1_hypervisor_managers_item_networks_get_response_escaped_items_escaped_hosts_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_networks_get_response_items_hypervisor_manager_info.go => v1beta1_hypervisor_managers_item_networks_get_response_escaped_items_escaped_hypervisor_manager_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_networks_item_network_get_response_app_info.go => v1beta1_hypervisor_managers_item_networks_item_network_get_response_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_networks_item_network_get_response_app_info_vmware.go => v1beta1_hypervisor_managers_item_networks_item_network_get_response_escaped_app_info_escaped_vmware.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_networks_item_network_get_response_cluster_info.go => v1beta1_hypervisor_managers_item_networks_item_network_get_response_escaped_cluster_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_networks_item_network_get_response_hosts_info.go => v1beta1_hypervisor_managers_item_networks_item_network_get_response_escaped_hosts_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_networks_item_network_get_response_hypervisor_manager_info.go => v1beta1_hypervisor_managers_item_networks_item_network_get_response_escaped_hypervisor_manager_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_get_response_items.go => v1beta1_hypervisor_managers_item_resource_pools_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_get_response_items_app_info.go => v1beta1_hypervisor_managers_item_resource_pools_get_response_escaped_items_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_get_response_items_cluster_info.go => v1beta1_hypervisor_managers_item_resource_pools_get_response_escaped_items_escaped_cluster_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_get_response_items_hosts_info.go => v1beta1_hypervisor_managers_item_resource_pools_get_response_escaped_items_escaped_hosts_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_get_response_items_owner_info.go => v1beta1_hypervisor_managers_item_resource_pools_get_response_escaped_items_escaped_owner_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_app_info.go => v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_child_resource_pools.go => v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_escaped_child_resource_pools.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_cluster_info.go => v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_escaped_cluster_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_hosts_info.go => v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_escaped_hosts_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_owner_info.go => v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_escaped_owner_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_tags_get_response_items.go => v1beta1_hypervisor_managers_item_tags_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_tags_get_response_items_associated_resources.go => v1beta1_hypervisor_managers_item_tags_get_response_escaped_items_escaped_associated_resources.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_tags_get_response_items_hypervisor_manager_info.go => v1beta1_hypervisor_managers_item_tags_get_response_escaped_items_escaped_hypervisor_manager_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_tags_get_response_items_vm_protection_groups_info.go => v1beta1_hypervisor_managers_item_tags_get_response_escaped_items_escaped_vm_protection_groups_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_tags_item_tag_get_response_associated_resources.go => v1beta1_hypervisor_managers_item_tags_item_tag_get_response_escaped_associated_resources.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_tags_item_tag_get_response_hypervisor_manager_info.go => v1beta1_hypervisor_managers_item_tags_item_tag_get_response_escaped_hypervisor_manager_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_item_tags_item_tag_get_response_vm_protection_groups_info.go => v1beta1_hypervisor_managers_item_tags_item_tag_get_response_escaped_vm_protection_groups_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_hypervisor_managers_post_request_body_member1_credentials.go => v1beta1_hypervisor_managers_post_request_body_member1_escaped_credentials.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items.go => v1beta1_virtual_machines_get_response_escaped_items.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_app_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_app_info_vmware.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_app_info_escaped_vmware.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_cluster_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_cluster_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_compute_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_compute_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_folder_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_folder_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_graphics.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_graphics.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_guest_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_guest_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_guest_info_routes.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_guest_info_escaped_routes.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_guest_info_vm_dns_setting.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_guest_info_escaped_vm_dns_setting.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_high_availability.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_high_availability.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_host_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_host_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_hypervisor_manager_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_hypervisor_manager_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_network_adapters.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_network_adapters.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_network_adapters_network_details.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_network_adapters_escaped_network_details.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_protection_job_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_protection_job_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_protection_policy_applied_at_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_protection_policy_applied_at_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_storage_systems_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_storage_systems_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_virtual_ahci_controllers.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_ahci_controllers.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_virtual_disks.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_disks.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_virtual_disks_app_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_disks_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_virtual_ide_controllers.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_ide_controllers.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_virtual_nvme_controllers.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_nvme_controllers.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_virtual_scsi_controllers.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_scsi_controllers.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_vm_perf_metric_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_vm_perf_metric_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_vm_protection_groups_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_vm_protection_groups_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_volumes_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_volumes_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_volumes_info_storage_folder_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_volumes_info_escaped_storage_folder_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_volumes_info_storage_pool_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_volumes_info_escaped_storage_pool_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_volumes_info_storage_system_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_volumes_info_escaped_storage_system_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_get_response_items_volumes_info_volume_set_info.go => v1beta1_virtual_machines_get_response_escaped_items_escaped_volumes_info_escaped_volume_set_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_customize_guest_os_post_request_body_cloud_init.go => v1beta1_virtual_machines_item_customize_guest_os_post_request_body_escaped_cloud_init.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_customize_guest_os_post_request_body_linux_config.go => v1beta1_virtual_machines_item_customize_guest_os_post_request_body_escaped_linux_config.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_update_hardware_post_request_body_cpu_mem_config.go => v1beta1_virtual_machines_item_update_hardware_post_request_body_escaped_cpu_mem_config.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_update_hardware_post_request_body_cpu_mem_config_cpu.go => v1beta1_virtual_machines_item_update_hardware_post_request_body_escaped_cpu_mem_config_escaped_cpu.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_update_hardware_post_request_body_network_adapters.go => v1beta1_virtual_machines_item_update_hardware_post_request_body_escaped_network_adapters.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_update_hardware_post_request_body_virtual_disks.go => v1beta1_virtual_machines_item_update_hardware_post_request_body_escaped_virtual_disks.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_app_info.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_app_info_vmware.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_app_info_escaped_vmware.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_cluster_info.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_cluster_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_compute_info.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_compute_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_folder_info.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_folder_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_graphics.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_graphics.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_guest_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info_routes.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_guest_info_escaped_routes.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_high_availability.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_high_availability.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_host_info.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_host_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_hypervisor_manager_info.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_hypervisor_manager_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_network_adapters.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_network_adapters.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_protection_job_info.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_protection_job_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_storage_systems_info.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_storage_systems_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_ahci_controllers.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_ahci_controllers.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_disks.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_disks.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_disks_app_info.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_disks_escaped_app_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_ide_controllers.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_ide_controllers.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_nvme_controllers.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_nvme_controllers.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_scsi_controllers.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_scsi_controllers.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_vm_perf_metric_info.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_vm_perf_metric_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_vm_protection_groups_info.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_vm_protection_groups_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_item_virtual_machines_get_response_volumes_info.go => v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_volumes_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_post_request_body_destination.go => v1beta1_virtual_machines_post_request_body_escaped_destination.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_post_request_body_image_source.go => v1beta1_virtual_machines_post_request_body_escaped_image_source.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_post_request_body_network_config.go => v1beta1_virtual_machines_post_request_body_escaped_network_config.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_post_request_body_network_config_network_mapping.go => v1beta1_virtual_machines_post_request_body_escaped_network_config_escaped_network_mapping.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_post_request_body_storage_config.go => v1beta1_virtual_machines_post_request_body_escaped_storage_config.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_post_request_body_storage_config_volume_info.go => v1beta1_virtual_machines_post_request_body_escaped_storage_config_escaped_volume_info.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_post_request_body_storage_config_volume_info_qos.go => v1beta1_virtual_machines_post_request_body_escaped_storage_config_escaped_volume_info_escaped_qos.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_post_request_body_vm_config.go => v1beta1_virtual_machines_post_request_body_escaped_vm_config.go} (100%) rename internal/sdk/virt/virtualization/{v1beta1_virtual_machines_post_request_body_vm_config_property_config.go => v1beta1_virtual_machines_post_request_body_escaped_vm_config_escaped_property_config.go} (100%) diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items.go b/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_additional_details.go b/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_additional_details.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_additional_details.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_additional_details.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_associated_resources.go b/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_associated_resources.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_associated_resources.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_associated_resources.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_error.go b/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_error.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_error.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_error.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_groups.go b/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_groups.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_groups.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_groups.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_log_messages.go b/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_log_messages.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_log_messages.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_log_messages.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_parent.go b/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_parent.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_parent.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_parent.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_recommendations.go b/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_recommendations.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_recommendations.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_recommendations.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_root_operation.go b/internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_root_operation.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_get_response_items_root_operation.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_root_operation.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_additional_details.go b/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_additional_details.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_additional_details.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_additional_details.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_associated_resources.go b/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_associated_resources.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_associated_resources.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_associated_resources.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_error.go b/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_error.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_error.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_error.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_groups.go b/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_groups.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_groups.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_groups.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_log_messages.go b/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_log_messages.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_log_messages.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_log_messages.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_parent.go b/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_parent.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_parent.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_parent.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_recommendations.go b/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_recommendations.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_recommendations.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_recommendations.go diff --git a/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_root_operation.go b/internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_root_operation.go similarity index 100% rename from internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_root_operation.go rename to internal/sdk/async/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_root_operation.go diff --git a/internal/sdk/async/kiota-lock.json b/internal/sdk/async/kiota-lock.json index d7ba188..5e3ed34 100644 --- a/internal/sdk/async/kiota-lock.json +++ b/internal/sdk/async/kiota-lock.json @@ -2,8 +2,9 @@ "descriptionHash": "CE274C5F9D93AABF034FEB64FB1A1CF69B46539B491EBEEADB68C1133A376014FE469F3FCEAB2B267171CBB93EA3225151D5951611EF0A3D7F42B156E4E4A421", "descriptionLocation": "../../../../in.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.16.0", + "kiotaVersion": "1.21.0", "clientClassName": "ApiClient", + "typeAccessModifier": "Public", "clientNamespaceName": "github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/async", "language": "Go", "usesBackingStore": false, diff --git a/internal/sdk/dataservices/api_client.go b/internal/sdk/dataservices/api_client.go new file mode 100644 index 0000000..49b03cb --- /dev/null +++ b/internal/sdk/dataservices/api_client.go @@ -0,0 +1,39 @@ +package dataservices + +import ( + i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488 "github.com/microsoft/kiota-serialization-json-go" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347 "github.com/microsoft/kiota-serialization-form-go" + i56887720f41ac882814261620b1c8459c4a992a0207af547c4453dd39fabc426 "github.com/microsoft/kiota-serialization-multipart-go" + i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83 "github.com/microsoft/kiota-serialization-text-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + i375abeb6f8671188a3e39ce6299c550c8a4456d73556e661ce5207d01b167515 "github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices/dataservices" +) + +// ApiClient the main entry point of the SDK, exposes the configuration and the fluent API. +type ApiClient struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// NewApiClient instantiates a new ApiClient and sets the default values. +func NewApiClient(requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApiClient) { + m := &ApiClient{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}", map[string]string{}), + } + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488.NewJsonSerializationWriterFactory() }) + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83.NewTextSerializationWriterFactory() }) + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347.NewFormSerializationWriterFactory() }) + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory { return i56887720f41ac882814261620b1c8459c4a992a0207af547c4453dd39fabc426.NewMultipartSerializationWriterFactory() }) + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488.NewJsonParseNodeFactory() }) + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83.NewTextParseNodeFactory() }) + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory { return i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347.NewFormParseNodeFactory() }) + if m.BaseRequestBuilder.RequestAdapter.GetBaseUrl() == "" { + m.BaseRequestBuilder.RequestAdapter.SetBaseUrl("https://eu1.data.cloud.hpe.com") + } + m.BaseRequestBuilder.PathParameters["baseurl"] = m.BaseRequestBuilder.RequestAdapter.GetBaseUrl() + return m +} +// DataServices the dataServices property +// returns a *DataServicesRequestBuilder when successful +func (m *ApiClient) DataServices()(*i375abeb6f8671188a3e39ce6299c550c8a4456d73556e661ce5207d01b167515.DataServicesRequestBuilder) { + return i375abeb6f8671188a3e39ce6299c550c8a4456d73556e661ce5207d01b167515.NewDataServicesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/internal/sdk/dataservices/dataservices/0e8907411e5667c0ff819ea8ac919f6126b46458034607019af916a124486dfd.go b/internal/sdk/dataservices/dataservices/0e8907411e5667c0ff819ea8ac919f6126b46458034607019af916a124486dfd.go new file mode 100644 index 0000000..f43a0a9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/0e8907411e5667c0ff819ea8ac919f6126b46458034607019af916a124486dfd.go @@ -0,0 +1,138 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The credentials property + credentials V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsable + // An IP address or FQDN to address the proxy server + networkAddress *string + // Port number of the proxy server + port *int32 +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCredentials gets the credentials property value. The credentials property +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) GetCredentials()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsable) { + return m.credentials +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["credentials"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCredentials(val.(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsable)) + } + return nil + } + res["networkAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNetworkAddress(val) + } + return nil + } + res["port"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetPort(val) + } + return nil + } + return res +} +// GetNetworkAddress gets the networkAddress property value. An IP address or FQDN to address the proxy server +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) GetNetworkAddress()(*string) { + return m.networkAddress +} +// GetPort gets the port property value. Port number of the proxy server +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) GetPort()(*int32) { + return m.port +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("credentials", m.GetCredentials()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("networkAddress", m.GetNetworkAddress()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("port", m.GetPort()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCredentials sets the credentials property value. The credentials property +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) SetCredentials(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsable)() { + m.credentials = value +} +// SetNetworkAddress sets the networkAddress property value. An IP address or FQDN to address the proxy server +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) SetNetworkAddress(value *string)() { + m.networkAddress = value +} +// SetPort sets the port property value. Port number of the proxy server +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy) SetPort(value *int32)() { + m.port = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCredentials()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsable) + GetNetworkAddress()(*string) + GetPort()(*int32) + SetCredentials(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsable)() + SetNetworkAddress(value *string)() + SetPort(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/1445d6b17c974f84a94765a1239f5337f0613b516a7dde2282e1895be4ee7a2f.go b/internal/sdk/dataservices/dataservices/1445d6b17c974f84a94765a1239f5337f0613b516a7dde2282e1895be4ee7a2f.go new file mode 100644 index 0000000..d9100b1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/1445d6b17c974f84a94765a1239f5337f0613b516a7dde2282e1895be4ee7a2f.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Reference to a Secret resource + secret V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretable +} +// NewV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken instantiates a new V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken and sets the default values. +func NewV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken()(*V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken) { + m := &V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecret(val.(V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretable)) + } + return nil + } + return res +} +// GetSecret gets the secret property value. Reference to a Secret resource +// returns a V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretable when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken) GetSecret()(V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretable) { + return m.secret +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetSecret sets the secret property value. Reference to a Secret resource +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken) SetSecret(value V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretable)() { + m.secret = value +} +type V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerTokenable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSecret()(V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretable) + SetSecret(value V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretable)() +} diff --git a/internal/sdk/dataservices/dataservices/15adc0ddde3559ec8550f279da18330fe900d3aec6d3c2e71932fce3d744ac3d.go b/internal/sdk/dataservices/dataservices/15adc0ddde3559ec8550f279da18330fe900d3aec6d3c2e71932fce3d744ac3d.go new file mode 100644 index 0000000..a9c0c8e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/15adc0ddde3559ec8550f279da18330fe900d3aec6d3c2e71932fce3d744ac3d.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServers struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // IP address or FQDN of DNS server. + networkAddress *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServers instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServers and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServers()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServers) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServers{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServersFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServersFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServers(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServers) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServers) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["networkAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNetworkAddress(val) + } + return nil + } + return res +} +// GetNetworkAddress gets the networkAddress property value. IP address or FQDN of DNS server. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServers) GetNetworkAddress()(*string) { + return m.networkAddress +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServers) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("networkAddress", m.GetNetworkAddress()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServers) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetNetworkAddress sets the networkAddress property value. IP address or FQDN of DNS server. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServers) SetNetworkAddress(value *string)() { + m.networkAddress = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServersable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetNetworkAddress()(*string) + SetNetworkAddress(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/1a76d09e5d0fbb5b9b88088c2a1bf6b2c9f19830c8e84118311bd6082e9de94a.go b/internal/sdk/dataservices/dataservices/1a76d09e5d0fbb5b9b88088c2a1bf6b2c9f19830c8e84118311bd6082e9de94a.go new file mode 100644 index 0000000..582b0ad --- /dev/null +++ b/internal/sdk/dataservices/dataservices/1a76d09e5d0fbb5b9b88088c2a1bf6b2c9f19830c8e84118311bd6082e9de94a.go @@ -0,0 +1,150 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret reference to a Secret resource +type V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The secret's unique identifier + id *string + // The secret's name + name *string + // The 'self' reference for this secret resource + resourceUri *string + // The type of this secret resource, 'data-services/secret' + typeEscaped *string +} +// NewV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret instantiates a new V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret and sets the default values. +func NewV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret()(*V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) { + m := &V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The secret's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The secret's name +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The 'self' reference for this secret resource +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of this secret resource, 'data-services/secret' +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The secret's unique identifier +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The secret's name +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The 'self' reference for this secret resource +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of this secret resource, 'data-services/secret' +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/240c7aad0e7df5d3094e4e5a8b7ebf60bb50f6070b179a45a5352955467461f6.go b/internal/sdk/dataservices/dataservices/240c7aad0e7df5d3094e4e5a8b7ebf60bb50f6070b179a45a5352955467461f6.go new file mode 100644 index 0000000..2d3d3ad --- /dev/null +++ b/internal/sdk/dataservices/dataservices/240c7aad0e7df5d3094e4e5a8b7ebf60bb50f6070b179a45a5352955467461f6.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication an object containing the endpoint authentication attributes +type V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The bearerToken property + bearerToken V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerTokenable +} +// NewV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication instantiates a new V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication and sets the default values. +func NewV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication()(*V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication) { + m := &V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authenticationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authenticationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetBearerToken gets the bearerToken property value. The bearerToken property +// returns a V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerTokenable when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication) GetBearerToken()(V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerTokenable) { + return m.bearerToken +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["bearerToken"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBearerToken(val.(V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerTokenable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("bearerToken", m.GetBearerToken()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetBearerToken sets the bearerToken property value. The bearerToken property +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication) SetBearerToken(value V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerTokenable)() { + m.bearerToken = value +} +type V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authenticationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBearerToken()(V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerTokenable) + SetBearerToken(value V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerTokenable)() +} diff --git a/internal/sdk/dataservices/dataservices/2b4f67cc83d01402f3e7b7f0a94a8b08176564d1a86a5c3832ad88f636ff5b59.go b/internal/sdk/dataservices/dataservices/2b4f67cc83d01402f3e7b7f0a94a8b08176564d1a86a5c3832ad88f636ff5b59.go new file mode 100644 index 0000000..ebc78d7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/2b4f67cc83d01402f3e7b7f0a94a8b08176564d1a86a5c3832ad88f636ff5b59.go @@ -0,0 +1,138 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The credentials property + credentials V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentialsable + // An IP address or FQDN to address the proxy server + networkAddress *string + // Port number of the proxy server + port *int32 +} +// NewV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy instantiates a new V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy and sets the default values. +func NewV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy()(*V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy) { + m := &V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCredentials gets the credentials property value. The credentials property +// returns a V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentialsable when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy) GetCredentials()(V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentialsable) { + return m.credentials +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["credentials"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentialsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCredentials(val.(V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentialsable)) + } + return nil + } + res["networkAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNetworkAddress(val) + } + return nil + } + res["port"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetPort(val) + } + return nil + } + return res +} +// GetNetworkAddress gets the networkAddress property value. An IP address or FQDN to address the proxy server +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy) GetNetworkAddress()(*string) { + return m.networkAddress +} +// GetPort gets the port property value. Port number of the proxy server +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy) GetPort()(*int32) { + return m.port +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("credentials", m.GetCredentials()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("networkAddress", m.GetNetworkAddress()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("port", m.GetPort()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCredentials sets the credentials property value. The credentials property +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy) SetCredentials(value V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentialsable)() { + m.credentials = value +} +// SetNetworkAddress sets the networkAddress property value. An IP address or FQDN to address the proxy server +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy) SetNetworkAddress(value *string)() { + m.networkAddress = value +} +// SetPort sets the port property value. Port number of the proxy server +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy) SetPort(value *int32)() { + m.port = value +} +type V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCredentials()(V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentialsable) + GetNetworkAddress()(*string) + GetPort()(*int32) + SetCredentials(value V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentialsable)() + SetNetworkAddress(value *string)() + SetPort(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/338232b4ff90debadb46c2ee0e6f2e29e8107091d190ca6321f88b2a4cd5c41d.go b/internal/sdk/dataservices/dataservices/338232b4ff90debadb46c2ee0e6f2e29e8107091d190ca6321f88b2a4cd5c41d.go new file mode 100644 index 0000000..ea806c2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/338232b4ff90debadb46c2ee0e6f2e29e8107091d190ca6321f88b2a4cd5c41d.go @@ -0,0 +1,150 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret reference to a Secret resource +type V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The secret's unique identifier + id *string + // The secret's name + name *string + // The 'self' reference for this secret resource + resourceUri *string + // The type of this secret resource, 'data-services/secret' + typeEscaped *string +} +// NewV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret instantiates a new V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret and sets the default values. +func NewV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret()(*V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret) { + m := &V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The secret's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The secret's name +// returns a *string when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The 'self' reference for this secret resource +// returns a *string when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of this secret resource, 'data-services/secret' +// returns a *string when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The secret's unique identifier +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The secret's name +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The 'self' reference for this secret resource +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of this secret resource, 'data-services/secret' +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secret) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secretable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/3753350379effcfbc33e5d909dd47c09aca6031616d66b451199973a66672e00.go b/internal/sdk/dataservices/dataservices/3753350379effcfbc33e5d909dd47c09aca6031616d66b451199973a66672e00.go new file mode 100644 index 0000000..d114a74 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/3753350379effcfbc33e5d909dd47c09aca6031616d66b451199973a66672e00.go @@ -0,0 +1,255 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // IP address or FQDN of the default gateway. + defaultGateway *string + // IP address or FQDN of the Data Services Connector. + hostname *string + // List of configured DNS servers configured on the Data Services Connector. + nameServers []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServersable + // List of network interfaces configured on the Data Services Connector. + nic []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nicable + // The proxy property + proxy V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxyable + // List of search domains. + searchDomains []string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_networkFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_networkFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDefaultGateway gets the defaultGateway property value. IP address or FQDN of the default gateway. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) GetDefaultGateway()(*string) { + return m.defaultGateway +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["defaultGateway"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDefaultGateway(val) + } + return nil + } + res["hostname"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetHostname(val) + } + return nil + } + res["nameServers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServersFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServersable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServersable) + } + } + m.SetNameServers(res) + } + return nil + } + res["nic"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nicFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nicable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nicable) + } + } + m.SetNic(res) + } + return nil + } + res["proxy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetProxy(val.(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxyable)) + } + return nil + } + res["searchDomains"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetSearchDomains(res) + } + return nil + } + return res +} +// GetHostname gets the hostname property value. IP address or FQDN of the Data Services Connector. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) GetHostname()(*string) { + return m.hostname +} +// GetNameServers gets the nameServers property value. List of configured DNS servers configured on the Data Services Connector. +// returns a []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServersable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) GetNameServers()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServersable) { + return m.nameServers +} +// GetNic gets the nic property value. List of network interfaces configured on the Data Services Connector. +// returns a []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nicable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) GetNic()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nicable) { + return m.nic +} +// GetProxy gets the proxy property value. The proxy property +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxyable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) GetProxy()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxyable) { + return m.proxy +} +// GetSearchDomains gets the searchDomains property value. List of search domains. +// returns a []string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) GetSearchDomains()([]string) { + return m.searchDomains +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("defaultGateway", m.GetDefaultGateway()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("hostname", m.GetHostname()) + if err != nil { + return err + } + } + if m.GetNameServers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetNameServers())) + for i, v := range m.GetNameServers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("nameServers", cast) + if err != nil { + return err + } + } + if m.GetNic() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetNic())) + for i, v := range m.GetNic() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("nic", cast) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("proxy", m.GetProxy()) + if err != nil { + return err + } + } + if m.GetSearchDomains() != nil { + err := writer.WriteCollectionOfStringValues("searchDomains", m.GetSearchDomains()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDefaultGateway sets the defaultGateway property value. IP address or FQDN of the default gateway. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) SetDefaultGateway(value *string)() { + m.defaultGateway = value +} +// SetHostname sets the hostname property value. IP address or FQDN of the Data Services Connector. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) SetHostname(value *string)() { + m.hostname = value +} +// SetNameServers sets the nameServers property value. List of configured DNS servers configured on the Data Services Connector. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) SetNameServers(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServersable)() { + m.nameServers = value +} +// SetNic sets the nic property value. List of network interfaces configured on the Data Services Connector. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) SetNic(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nicable)() { + m.nic = value +} +// SetProxy sets the proxy property value. The proxy property +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) SetProxy(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxyable)() { + m.proxy = value +} +// SetSearchDomains sets the searchDomains property value. List of search domains. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network) SetSearchDomains(value []string)() { + m.searchDomains = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_networkable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDefaultGateway()(*string) + GetHostname()(*string) + GetNameServers()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServersable) + GetNic()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nicable) + GetProxy()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxyable) + GetSearchDomains()([]string) + SetDefaultGateway(value *string)() + SetHostname(value *string)() + SetNameServers(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nameServersable)() + SetNic(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nicable)() + SetProxy(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxyable)() + SetSearchDomains(value []string)() +} diff --git a/internal/sdk/dataservices/dataservices/39d48924939d27a3e325f15c6677b3cf4cff23668274ae2a8deddd1912bc06a1.go b/internal/sdk/dataservices/dataservices/39d48924939d27a3e325f15c6677b3cf4cff23668274ae2a8deddd1912bc06a1.go new file mode 100644 index 0000000..16468b6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/39d48924939d27a3e325f15c6677b3cf4cff23668274ae2a8deddd1912bc06a1.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication an object containing the endpoint authentication attributes +type V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The bearerToken property + bearerToken V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable +} +// NewV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication instantiates a new V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication and sets the default values. +func NewV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication()(*V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication) { + m := &V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authenticationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authenticationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetBearerToken gets the bearerToken property value. The bearerToken property +// returns a V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication) GetBearerToken()(V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable) { + return m.bearerToken +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["bearerToken"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBearerToken(val.(V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("bearerToken", m.GetBearerToken()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetBearerToken sets the bearerToken property value. The bearerToken property +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication) SetBearerToken(value V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable)() { + m.bearerToken = value +} +type V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authenticationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBearerToken()(V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable) + SetBearerToken(value V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable)() +} diff --git a/internal/sdk/dataservices/dataservices/52db5b4d0347073bb2d1ef5619fe1d71654559d9388e5965aada930171026481.go b/internal/sdk/dataservices/dataservices/52db5b4d0347073bb2d1ef5619fe1d71654559d9388e5965aada930171026481.go new file mode 100644 index 0000000..956f5c3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/52db5b4d0347073bb2d1ef5619fe1d71654559d9388e5965aada930171026481.go @@ -0,0 +1,150 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret reference to a Secret resource +type V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The secret's unique identifier + id *string + // The secret's name + name *string + // The 'self' reference for this secret resource + resourceUri *string + // The type of this secret resource, 'data-services/secret' + typeEscaped *string +} +// NewV1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret instantiates a new V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret and sets the default values. +func NewV1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret()(*V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret) { + m := &V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksGetResponse_items_authorization_clientCredentials_secretFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksGetResponse_items_authorization_clientCredentials_secretFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The secret's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The secret's name +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The 'self' reference for this secret resource +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of this secret resource, 'data-services/secret' +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The secret's unique identifier +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The secret's name +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The 'self' reference for this secret resource +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of this secret resource, 'data-services/secret' +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secret) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secretable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/55a96aa565767544937d7639a1d3ba17d15a25aed6ebb0eea1c4715f93c2497d.go b/internal/sdk/dataservices/dataservices/55a96aa565767544937d7639a1d3ba17d15a25aed6ebb0eea1c4715f93c2497d.go new file mode 100644 index 0000000..5c84685 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/55a96aa565767544937d7639a1d3ba17d15a25aed6ebb0eea1c4715f93c2497d.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // ID of the associated group + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the associated group + name *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groups instantiates a new V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groups and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groups()(*V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groups) { + m := &V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. ID of the associated group +// returns a *UUID when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groups) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. ID of the associated group +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groups) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groups) SetName(value *string)() { + m.name = value +} +type V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/56b65ff6814800f49e550b3d167541c502cb1068ad7413e392f2eb3921fb84d4.go b/internal/sdk/dataservices/dataservices/56b65ff6814800f49e550b3d167541c502cb1068ad7413e392f2eb3921fb84d4.go new file mode 100644 index 0000000..313f109 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/56b65ff6814800f49e550b3d167541c502cb1068ad7413e392f2eb3921fb84d4.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServers struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // An IP address or FQDN of the NTP server. + networkAddress *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServers instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServers and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServers()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServers) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServers{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServersFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServersFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServers(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServers) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServers) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["networkAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNetworkAddress(val) + } + return nil + } + return res +} +// GetNetworkAddress gets the networkAddress property value. An IP address or FQDN of the NTP server. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServers) GetNetworkAddress()(*string) { + return m.networkAddress +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServers) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("networkAddress", m.GetNetworkAddress()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServers) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetNetworkAddress sets the networkAddress property value. An IP address or FQDN of the NTP server. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServers) SetNetworkAddress(value *string)() { + m.networkAddress = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServersable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetNetworkAddress()(*string) + SetNetworkAddress(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/6e7edecff7cdf03482511ac0dd9205039bd10c62d775baaf08523d69f9888a61.go b/internal/sdk/dataservices/dataservices/6e7edecff7cdf03482511ac0dd9205039bd10c62d775baaf08523d69f9888a61.go new file mode 100644 index 0000000..e20ea17 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/6e7edecff7cdf03482511ac0dd9205039bd10c62d775baaf08523d69f9888a61.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Reference to a Secret resource + secret V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secretable +} +// NewV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken instantiates a new V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken and sets the default values. +func NewV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken()(*V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken) { + m := &V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecret(val.(V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secretable)) + } + return nil + } + return res +} +// GetSecret gets the secret property value. Reference to a Secret resource +// returns a V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secretable when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken) GetSecret()(V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secretable) { + return m.secret +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetSecret sets the secret property value. Reference to a Secret resource +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken) SetSecret(value V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secretable)() { + m.secret = value +} +type V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerTokenable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSecret()(V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secretable) + SetSecret(value V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerToken_secretable)() +} diff --git a/internal/sdk/dataservices/dataservices/75b69046bd5efca5dd37add1fd9c603f9d8929011da2c61503283b8837f59a59.go b/internal/sdk/dataservices/dataservices/75b69046bd5efca5dd37add1fd9c603f9d8929011da2c61503283b8837f59a59.go new file mode 100644 index 0000000..9809167 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/75b69046bd5efca5dd37add1fd9c603f9d8929011da2c61503283b8837f59a59.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Reference to a Secret resource + secret V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable +} +// NewV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken instantiates a new V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken and sets the default values. +func NewV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken()(*V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken) { + m := &V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecret(val.(V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable)) + } + return nil + } + return res +} +// GetSecret gets the secret property value. Reference to a Secret resource +// returns a V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken) GetSecret()(V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable) { + return m.secret +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetSecret sets the secret property value. Reference to a Secret resource +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken) SetSecret(value V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable)() { + m.secret = value +} +type V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSecret()(V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable) + SetSecret(value V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable)() +} diff --git a/internal/sdk/dataservices/dataservices/7da011e81d63aeaccd7d22f27a9ea8f530a7fb60af61f59a92423214fac22cac.go b/internal/sdk/dataservices/dataservices/7da011e81d63aeaccd7d22f27a9ea8f530a7fb60af61f59a92423214fac22cac.go new file mode 100644 index 0000000..64cf286 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/7da011e81d63aeaccd7d22f27a9ea8f530a7fb60af61f59a92423214fac22cac.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication an object containing the endpoint authentication attributes +type V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The bearerToken property + bearerToken V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerTokenable +} +// NewV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication instantiates a new V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication and sets the default values. +func NewV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication()(*V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication) { + m := &V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authenticationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authenticationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetBearerToken gets the bearerToken property value. The bearerToken property +// returns a V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerTokenable when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication) GetBearerToken()(V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerTokenable) { + return m.bearerToken +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["bearerToken"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBearerToken(val.(V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerTokenable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("bearerToken", m.GetBearerToken()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetBearerToken sets the bearerToken property value. The bearerToken property +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication) SetBearerToken(value V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerTokenable)() { + m.bearerToken = value +} +type V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authenticationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBearerToken()(V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerTokenable) + SetBearerToken(value V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_bearerTokenable)() +} diff --git a/internal/sdk/dataservices/dataservices/7f7fa7b299f188f1ca2bd6afb87c011e10baa0dc0061c493f47c5df061f84375.go b/internal/sdk/dataservices/dataservices/7f7fa7b299f188f1ca2bd6afb87c011e10baa0dc0061c493f47c5df061f84375.go new file mode 100644 index 0000000..8d3f44d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/7f7fa7b299f188f1ca2bd6afb87c011e10baa0dc0061c493f47c5df061f84375.go @@ -0,0 +1,156 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Unique ID identifying a Hypervisor Manager. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of Hypervisor Manager. + name *string + // The self reference for this resource. + resourceUri *string + // The type of resource. + typeEscaped *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagersFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagersFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. Unique ID identifying a Hypervisor Manager. +// returns a *UUID when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of Hypervisor Manager. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Unique ID identifying a Hypervisor Manager. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of Hypervisor Manager. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagers) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagersable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/9564bb1f2f0de77550af3be54bca675217c4f47ad414113937b275105d668bf6.go b/internal/sdk/dataservices/dataservices/9564bb1f2f0de77550af3be54bca675217c4f47ad414113937b275105d668bf6.go new file mode 100644 index 0000000..a187040 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/9564bb1f2f0de77550af3be54bca675217c4f47ad414113937b275105d668bf6.go @@ -0,0 +1,138 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the network interface. + name *string + // IP address associated with the network interface. + networkAddress *string + // Subnet mask. + subnetMask *string +} +// NewV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic instantiates a new V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic and sets the default values. +func NewV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic()(*V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic) { + m := &V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nicFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nicFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["networkAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNetworkAddress(val) + } + return nil + } + res["subnetMask"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSubnetMask(val) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the network interface. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic) GetName()(*string) { + return m.name +} +// GetNetworkAddress gets the networkAddress property value. IP address associated with the network interface. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic) GetNetworkAddress()(*string) { + return m.networkAddress +} +// GetSubnetMask gets the subnetMask property value. Subnet mask. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic) GetSubnetMask()(*string) { + return m.subnetMask +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("networkAddress", m.GetNetworkAddress()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("subnetMask", m.GetSubnetMask()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. Name of the network interface. +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic) SetName(value *string)() { + m.name = value +} +// SetNetworkAddress sets the networkAddress property value. IP address associated with the network interface. +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic) SetNetworkAddress(value *string)() { + m.networkAddress = value +} +// SetSubnetMask sets the subnetMask property value. Subnet mask. +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nic) SetSubnetMask(value *string)() { + m.subnetMask = value +} +type V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nicable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetNetworkAddress()(*string) + GetSubnetMask()(*string) + SetName(value *string)() + SetNetworkAddress(value *string)() + SetSubnetMask(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/972940733cfdb4ab9c226b76f3dd6241b6c9a0f3c850e0ea026f3c7f23e09647.go b/internal/sdk/dataservices/dataservices/972940733cfdb4ab9c226b76f3dd6241b6c9a0f3c850e0ea026f3c7f23e09647.go new file mode 100644 index 0000000..b314349 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/972940733cfdb4ab9c226b76f3dd6241b6c9a0f3c850e0ea026f3c7f23e09647.go @@ -0,0 +1,150 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource resource associated with this operation +type V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The URI for the console screen that displays this resource + consoleUri *string + // The name property + name *string + // The resourceUri property + resourceUri *string + // The type property + typeEscaped *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource instantiates a new V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource()(*V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource) { + m := &V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resourceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resourceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetConsoleUri gets the consoleUri property value. The URI for the console screen that displays this resource +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The resourceUri property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetConsoleUri sets the consoleUri property value. The URI for the console screen that displays this resource +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetName sets the name property value. The name property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The resourceUri property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resource) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resourceable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConsoleUri()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetConsoleUri(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/99686df2ae3f892cb2d0bc63baa035bfbfca9f91baeccf52b29a83371d501232.go b/internal/sdk/dataservices/dataservices/99686df2ae3f892cb2d0bc63baa035bfbfca9f91baeccf52b29a83371d501232.go new file mode 100644 index 0000000..880ec85 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/99686df2ae3f892cb2d0bc63baa035bfbfca9f91baeccf52b29a83371d501232.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // ID of the associated group + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the associated group + name *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groups instantiates a new V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groups and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groups()(*V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groups) { + m := &V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. ID of the associated group +// returns a *UUID when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groups) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. ID of the associated group +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groups) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groups) SetName(value *string)() { + m.name = value +} +type V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/9eb56bbe5bfe0b73a0610cab316907937d6e0a0e524a9b868aa6a85aee610394.go b/internal/sdk/dataservices/dataservices/9eb56bbe5bfe0b73a0610cab316907937d6e0a0e524a9b868aa6a85aee610394.go new file mode 100644 index 0000000..72b8e21 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/9eb56bbe5bfe0b73a0610cab316907937d6e0a0e524a9b868aa6a85aee610394.go @@ -0,0 +1,150 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret reference to a Secret resource +type V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The secret's unique identifier + id *string + // The secret's name + name *string + // The 'self' reference for this secret resource + resourceUri *string + // The type of this secret resource, 'data-services/secret' + typeEscaped *string +} +// NewV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret instantiates a new V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret and sets the default values. +func NewV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret()(*V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) { + m := &V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The secret's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The secret's name +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The 'self' reference for this secret resource +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of this secret resource, 'data-services/secret' +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The secret's unique identifier +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The secret's name +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The 'self' reference for this secret resource +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of this secret resource, 'data-services/secret' +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/9fc6a2ecbb14a7b063f1412543cf05ef11864b44c0fde4f4747f1e18afe4f177.go b/internal/sdk/dataservices/dataservices/9fc6a2ecbb14a7b063f1412543cf05ef11864b44c0fde4f4747f1e18afe4f177.go new file mode 100644 index 0000000..7c65634 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/9fc6a2ecbb14a7b063f1412543cf05ef11864b44c0fde4f4747f1e18afe4f177.go @@ -0,0 +1,150 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource resource associated with this operation +type V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The URI for the console screen that displays this resource + consoleUri *string + // The name property + name *string + // The resourceUri property + resourceUri *string + // The type property + typeEscaped *string +} +// NewV1beta1DualAuthOperationsGetResponse_items_associatedResources_resource instantiates a new V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource and sets the default values. +func NewV1beta1DualAuthOperationsGetResponse_items_associatedResources_resource()(*V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource) { + m := &V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsGetResponse_items_associatedResources_resourceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsGetResponse_items_associatedResources_resourceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsGetResponse_items_associatedResources_resource(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetConsoleUri gets the consoleUri property value. The URI for the console screen that displays this resource +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The resourceUri property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetConsoleUri sets the consoleUri property value. The URI for the console screen that displays this resource +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetName sets the name property value. The name property +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The resourceUri property +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type property +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_resource) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1DualAuthOperationsGetResponse_items_associatedResources_resourceable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConsoleUri()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetConsoleUri(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/a0e2c2d87df1d6a67c27e7ce201120aa092f57effb809692d56d64a78dc5bef5.go b/internal/sdk/dataservices/dataservices/a0e2c2d87df1d6a67c27e7ce201120aa092f57effb809692d56d64a78dc5bef5.go new file mode 100644 index 0000000..e336057 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/a0e2c2d87df1d6a67c27e7ce201120aa092f57effb809692d56d64a78dc5bef5.go @@ -0,0 +1,150 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource resource associated with this operation +type V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The URI for the console screen that displays this resource + consoleUri *string + // The name property + name *string + // The resourceUri property + resourceUri *string + // The type property + typeEscaped *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource instantiates a new V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource()(*V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource) { + m := &V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resourceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resourceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetConsoleUri gets the consoleUri property value. The URI for the console screen that displays this resource +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The resourceUri property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetConsoleUri sets the consoleUri property value. The URI for the console screen that displays this resource +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetName sets the name property value. The name property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The resourceUri property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resource) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resourceable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConsoleUri()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetConsoleUri(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/a3f15fc5a51d6ec869059469f1bcd82c5ebdbfc7e88da44d0d51e1fcd9ffa59a.go b/internal/sdk/dataservices/dataservices/a3f15fc5a51d6ec869059469f1bcd82c5ebdbfc7e88da44d0d51e1fcd9ffa59a.go new file mode 100644 index 0000000..3abb50a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/a3f15fc5a51d6ec869059469f1bcd82c5ebdbfc7e88da44d0d51e1fcd9ffa59a.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_features struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Abbreviation of supported feature in RDA. + feature *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_features instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_features and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_features()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_features) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_features{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_featuresFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_featuresFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_features(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_features) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFeature gets the feature property value. Abbreviation of supported feature in RDA. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_features) GetFeature()(*string) { + return m.feature +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_features) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["feature"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFeature(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_features) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("feature", m.GetFeature()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_features) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetFeature sets the feature property value. Abbreviation of supported feature in RDA. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_features) SetFeature(value *string)() { + m.feature = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_featuresable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetFeature()(*string) + SetFeature(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/a5d287c8335e3fbe971ea64d359351e5779b5752aff55df09cd59f772558bdbe.go b/internal/sdk/dataservices/dataservices/a5d287c8335e3fbe971ea64d359351e5779b5752aff55df09cd59f772558bdbe.go new file mode 100644 index 0000000..23ea0d3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/a5d287c8335e3fbe971ea64d359351e5779b5752aff55df09cd59f772558bdbe.go @@ -0,0 +1,150 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret reference to a Secret resource +type V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The secret's unique identifier + id *string + // The secret's name + name *string + // The 'self' reference for this secret resource + resourceUri *string + // The type of this secret resource, 'data-services/secret' + typeEscaped *string +} +// NewV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret instantiates a new V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret and sets the default values. +func NewV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret()(*V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret) { + m := &V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The secret's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The secret's name +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The 'self' reference for this secret resource +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of this secret resource, 'data-services/secret' +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The secret's unique identifier +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The secret's name +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The 'self' reference for this secret resource +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of this secret resource, 'data-services/secret' +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_bearerToken_secretable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/aad8d3b29dbd76adaa34e48c98d53bb69ed3aff5067d224e949f81cdfd2b7a28.go b/internal/sdk/dataservices/dataservices/aad8d3b29dbd76adaa34e48c98d53bb69ed3aff5067d224e949f81cdfd2b7a28.go new file mode 100644 index 0000000..b0f144b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/aad8d3b29dbd76adaa34e48c98d53bb69ed3aff5067d224e949f81cdfd2b7a28.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentials struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The username property + username *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentials instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentials and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentials()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentials) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentials{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentials(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentials) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentials) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["username"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUsername(val) + } + return nil + } + return res +} +// GetUsername gets the username property value. The username property +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentials) GetUsername()(*string) { + return m.username +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentials) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("username", m.GetUsername()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentials) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetUsername sets the username property value. The username property +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentials) SetUsername(value *string)() { + m.username = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_proxy_credentialsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetUsername()(*string) + SetUsername(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/af7d4d8d28823790a460346a1ad95dc71ef43a1fab5a4b93dafdb710cce8e30f.go b/internal/sdk/dataservices/dataservices/af7d4d8d28823790a460346a1ad95dc71ef43a1fab5a4b93dafdb710cce8e30f.go new file mode 100644 index 0000000..30089e1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/af7d4d8d28823790a460346a1ad95dc71ef43a1fab5a4b93dafdb710cce8e30f.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient azure Service Principal client secret properties +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Azure Service Principal client ID (aka application ID) + clientId *string + // Azure Service Principal client secret + clientSecret *string + // Azure Service Principal tenant ID (aka directory ID) + tenantId *string +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClientFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClientFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetClientId gets the clientId property value. Azure Service Principal client ID (aka application ID) +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient) GetClientId()(*string) { + return m.clientId +} +// GetClientSecret gets the clientSecret property value. Azure Service Principal client secret +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient) GetClientSecret()(*string) { + return m.clientSecret +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientId(val) + } + return nil + } + res["clientSecret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientSecret(val) + } + return nil + } + res["tenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTenantId(val) + } + return nil + } + return res +} +// GetTenantId gets the tenantId property value. Azure Service Principal tenant ID (aka directory ID) +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient) GetTenantId()(*string) { + return m.tenantId +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("clientId", m.GetClientId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("clientSecret", m.GetClientSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("tenantId", m.GetTenantId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetClientId sets the clientId property value. Azure Service Principal client ID (aka application ID) +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient) SetClientId(value *string)() { + m.clientId = value +} +// SetClientSecret sets the clientSecret property value. Azure Service Principal client secret +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient) SetClientSecret(value *string)() { + m.clientSecret = value +} +// SetTenantId sets the tenantId property value. Azure Service Principal tenant ID (aka directory ID) +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClient) SetTenantId(value *string)() { + m.tenantId = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClientable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetClientId()(*string) + GetClientSecret()(*string) + GetTenantId()(*string) + SetClientId(value *string)() + SetClientSecret(value *string)() + SetTenantId(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/b25c0204871aacadee4d384f944cf2942b3e0283b7d6d747ebdc7580ec896e47.go b/internal/sdk/dataservices/dataservices/b25c0204871aacadee4d384f944cf2942b3e0283b7d6d747ebdc7580ec896e47.go new file mode 100644 index 0000000..d8ec288 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/b25c0204871aacadee4d384f944cf2942b3e0283b7d6d747ebdc7580ec896e47.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebToken jSON Web Token secret properties +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebToken struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // JSON Web Token value + token *string +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebToken instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebToken and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebToken()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebToken) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebToken{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebTokenFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebTokenFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebToken(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebToken) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebToken) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["token"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetToken(val) + } + return nil + } + return res +} +// GetToken gets the token property value. JSON Web Token value +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebToken) GetToken()(*string) { + return m.token +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebToken) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("token", m.GetToken()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebToken) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetToken sets the token property value. JSON Web Token value +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebToken) SetToken(value *string)() { + m.token = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebTokenable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetToken()(*string) + SetToken(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/b89d857a883993626f719fd21fd6fa61736ba3614f4b942a06950b5024061370.go b/internal/sdk/dataservices/dataservices/b89d857a883993626f719fd21fd6fa61736ba3614f4b942a06950b5024061370.go new file mode 100644 index 0000000..567665f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/b89d857a883993626f719fd21fd6fa61736ba3614f4b942a06950b5024061370.go @@ -0,0 +1,150 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret reference to a Secret resource +type V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The secret's unique identifier + id *string + // The secret's name + name *string + // The 'self' reference for this secret resource + resourceUri *string + // The type of this secret resource, 'data-services/secret' + typeEscaped *string +} +// NewV1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret instantiates a new V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret and sets the default values. +func NewV1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret()(*V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret) { + m := &V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secretFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secretFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The secret's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The secret's name +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The 'self' reference for this secret resource +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of this secret resource, 'data-services/secret' +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The secret's unique identifier +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The secret's name +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The 'self' reference for this secret resource +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of this secret resource, 'data-services/secret' +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secret) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secretable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/c8bf61795bfbb80231b3626f8e77506110ce5a606a55bcb8adcf51bc47916928.go b/internal/sdk/dataservices/dataservices/c8bf61795bfbb80231b3626f8e77506110ce5a606a55bcb8adcf51bc47916928.go new file mode 100644 index 0000000..f0911bb --- /dev/null +++ b/internal/sdk/dataservices/dataservices/c8bf61795bfbb80231b3626f8e77506110ce5a606a55bcb8adcf51bc47916928.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Reference to a Secret resource + secret V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable +} +// NewV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken instantiates a new V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken and sets the default values. +func NewV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken()(*V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken) { + m := &V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecret(val.(V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable)) + } + return nil + } + return res +} +// GetSecret gets the secret property value. Reference to a Secret resource +// returns a V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken) GetSecret()(V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable) { + return m.secret +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetSecret sets the secret property value. Reference to a Secret resource +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken) SetSecret(value V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable)() { + m.secret = value +} +type V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSecret()(V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable) + SetSecret(value V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable)() +} diff --git a/internal/sdk/dataservices/dataservices/d0fa932a479848ab2a1ba48a500f92d9540af4f2117c9b01d41d4aca21d9cd8d.go b/internal/sdk/dataservices/dataservices/d0fa932a479848ab2a1ba48a500f92d9540af4f2117c9b01d41d4aca21d9cd8d.go new file mode 100644 index 0000000..96289f9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/d0fa932a479848ab2a1ba48a500f92d9540af4f2117c9b01d41d4aca21d9cd8d.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServers struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // IP address or FQDN of DNS server. + networkAddress *string +} +// NewV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServers instantiates a new V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServers and sets the default values. +func NewV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServers()(*V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServers) { + m := &V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServers{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServersFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServersFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServers(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServers) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServers) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["networkAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNetworkAddress(val) + } + return nil + } + return res +} +// GetNetworkAddress gets the networkAddress property value. IP address or FQDN of DNS server. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServers) GetNetworkAddress()(*string) { + return m.networkAddress +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServers) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("networkAddress", m.GetNetworkAddress()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServers) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetNetworkAddress sets the networkAddress property value. IP address or FQDN of DNS server. +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServers) SetNetworkAddress(value *string)() { + m.networkAddress = value +} +type V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServersable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetNetworkAddress()(*string) + SetNetworkAddress(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/d72ed6b649cc94ca32be1ad2ea23ff2331c70b6ca0910c734de9c8ab28ea00f8.go b/internal/sdk/dataservices/dataservices/d72ed6b649cc94ca32be1ad2ea23ff2331c70b6ca0910c734de9c8ab28ea00f8.go new file mode 100644 index 0000000..9cf451e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/d72ed6b649cc94ca32be1ad2ea23ff2331c70b6ca0910c734de9c8ab28ea00f8.go @@ -0,0 +1,138 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the network interface. + name *string + // IP address associated with the network interface. + networkAddress *string + // Subnet mask. + subnetMask *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nicFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nicFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["networkAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNetworkAddress(val) + } + return nil + } + res["subnetMask"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSubnetMask(val) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the network interface. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic) GetName()(*string) { + return m.name +} +// GetNetworkAddress gets the networkAddress property value. IP address associated with the network interface. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic) GetNetworkAddress()(*string) { + return m.networkAddress +} +// GetSubnetMask gets the subnetMask property value. Subnet mask. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic) GetSubnetMask()(*string) { + return m.subnetMask +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("networkAddress", m.GetNetworkAddress()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("subnetMask", m.GetSubnetMask()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. Name of the network interface. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic) SetName(value *string)() { + m.name = value +} +// SetNetworkAddress sets the networkAddress property value. IP address associated with the network interface. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic) SetNetworkAddress(value *string)() { + m.networkAddress = value +} +// SetSubnetMask sets the subnetMask property value. Subnet mask. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nic) SetSubnetMask(value *string)() { + m.subnetMask = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_network_nicable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetNetworkAddress()(*string) + GetSubnetMask()(*string) + SetName(value *string)() + SetNetworkAddress(value *string)() + SetSubnetMask(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/d8b9da0a65e198415bd68af30aca70d0f52abe55e8e21b86d291837275133059.go b/internal/sdk/dataservices/dataservices/d8b9da0a65e198415bd68af30aca70d0f52abe55e8e21b86d291837275133059.go new file mode 100644 index 0000000..50a2028 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/d8b9da0a65e198415bd68af30aca70d0f52abe55e8e21b86d291837275133059.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentials struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The username property + username *string +} +// NewV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentials instantiates a new V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentials and sets the default values. +func NewV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentials()(*V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentials) { + m := &V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentials{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentialsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentialsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentials(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentials) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentials) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["username"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUsername(val) + } + return nil + } + return res +} +// GetUsername gets the username property value. The username property +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentials) GetUsername()(*string) { + return m.username +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentials) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("username", m.GetUsername()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentials) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetUsername sets the username property value. The username property +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentials) SetUsername(value *string)() { + m.username = value +} +type V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxy_credentialsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetUsername()(*string) + SetUsername(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/data_services_request_builder.go b/internal/sdk/dataservices/dataservices/data_services_request_builder.go new file mode 100644 index 0000000..fb0ac14 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/data_services_request_builder.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// DataServicesRequestBuilder builds and executes requests for operations under \data-services +type DataServicesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// NewDataServicesRequestBuilderInternal instantiates a new DataServicesRequestBuilder and sets the default values. +func NewDataServicesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DataServicesRequestBuilder) { + m := &DataServicesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services", pathParameters), + } + return m +} +// NewDataServicesRequestBuilder instantiates a new DataServicesRequestBuilder and sets the default values. +func NewDataServicesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DataServicesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDataServicesRequestBuilderInternal(urlParams, requestAdapter) +} +// V1beta1 the v1beta1 property +// returns a *V1beta1RequestBuilder when successful +func (m *DataServicesRequestBuilder) V1beta1()(*V1beta1RequestBuilder) { + return NewV1beta1RequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/internal/sdk/dataservices/dataservices/dcd90cecef94ce546e89ae2b34a06b7bb655ec3ebfa0419dfb3c4c93af7b5dd2.go b/internal/sdk/dataservices/dataservices/dcd90cecef94ce546e89ae2b34a06b7bb655ec3ebfa0419dfb3c4c93af7b5dd2.go new file mode 100644 index 0000000..35c2016 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/dcd90cecef94ce546e89ae2b34a06b7bb655ec3ebfa0419dfb3c4c93af7b5dd2.go @@ -0,0 +1,150 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret reference to a Secret resource +type V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The secret's unique identifier + id *string + // The secret's name + name *string + // The 'self' reference for this secret resource + resourceUri *string + // The type of this secret resource, 'data-services/secret' + typeEscaped *string +} +// NewV1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret instantiates a new V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret and sets the default values. +func NewV1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret()(*V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret) { + m := &V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secretFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secretFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The secret's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The secret's name +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The 'self' reference for this secret resource +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of this secret resource, 'data-services/secret' +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The secret's unique identifier +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The secret's name +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The 'self' reference for this secret resource +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of this secret resource, 'data-services/secret' +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secret) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secretable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/df81b42d3354aef3ff409ae3c1d957b017a8ac091eb3706dc6516a572856b425.go b/internal/sdk/dataservices/dataservices/df81b42d3354aef3ff409ae3c1d957b017a8ac091eb3706dc6516a572856b425.go new file mode 100644 index 0000000..2934c64 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/df81b42d3354aef3ff409ae3c1d957b017a8ac091eb3706dc6516a572856b425.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication an object containing the endpoint authentication attributes +type V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The bearerToken property + bearerToken V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable +} +// NewV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication instantiates a new V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication and sets the default values. +func NewV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication()(*V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication) { + m := &V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authenticationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authenticationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetBearerToken gets the bearerToken property value. The bearerToken property +// returns a V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication) GetBearerToken()(V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable) { + return m.bearerToken +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["bearerToken"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBearerToken(val.(V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("bearerToken", m.GetBearerToken()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetBearerToken sets the bearerToken property value. The bearerToken property +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication) SetBearerToken(value V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable)() { + m.bearerToken = value +} +type V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authenticationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBearerToken()(V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable) + SetBearerToken(value V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable)() +} diff --git a/internal/sdk/dataservices/dataservices/e7a24d77e9a156d83d31cf74fa53b50157f62fa23d5e01f0072362bb6e3cefca.go b/internal/sdk/dataservices/dataservices/e7a24d77e9a156d83d31cf74fa53b50157f62fa23d5e01f0072362bb6e3cefca.go new file mode 100644 index 0000000..2c11cf3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/e7a24d77e9a156d83d31cf74fa53b50157f62fa23d5e01f0072362bb6e3cefca.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentials struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The password property + password *string + // The username property + username *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentials instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentials and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentials()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentials) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentials{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentialsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentialsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentials(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentials) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentials) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPassword(val) + } + return nil + } + res["username"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUsername(val) + } + return nil + } + return res +} +// GetPassword gets the password property value. The password property +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentials) GetPassword()(*string) { + return m.password +} +// GetUsername gets the username property value. The username property +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentials) GetUsername()(*string) { + return m.username +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentials) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("password", m.GetPassword()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("username", m.GetUsername()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentials) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPassword sets the password property value. The password property +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentials) SetPassword(value *string)() { + m.password = value +} +// SetUsername sets the username property value. The username property +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentials) SetUsername(value *string)() { + m.username = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentialsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPassword()(*string) + GetUsername()(*string) + SetPassword(value *string)() + SetUsername(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/f84daf234b30e1d909580dc50c431cf26463a6915bb71da50effab1b216db5e8.go b/internal/sdk/dataservices/dataservices/f84daf234b30e1d909580dc50c431cf26463a6915bb71da50effab1b216db5e8.go new file mode 100644 index 0000000..95b70db --- /dev/null +++ b/internal/sdk/dataservices/dataservices/f84daf234b30e1d909580dc50c431cf26463a6915bb71da50effab1b216db5e8.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Reference to a Secret resource + secret V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable +} +// NewV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken instantiates a new V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken and sets the default values. +func NewV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken()(*V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken) { + m := &V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecret(val.(V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable)) + } + return nil + } + return res +} +// GetSecret gets the secret property value. Reference to a Secret resource +// returns a V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken) GetSecret()(V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable) { + return m.secret +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetSecret sets the secret property value. Reference to a Secret resource +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken) SetSecret(value V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable)() { + m.secret = value +} +type V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSecret()(V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable) + SetSecret(value V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable)() +} diff --git a/internal/sdk/dataservices/dataservices/f88a996fbdaa0f81363b5a6874164498bd2c73ded12a09891065c727fd6281c4.go b/internal/sdk/dataservices/dataservices/f88a996fbdaa0f81363b5a6874164498bd2c73ded12a09891065c727fd6281c4.go new file mode 100644 index 0000000..93f6a95 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/f88a996fbdaa0f81363b5a6874164498bd2c73ded12a09891065c727fd6281c4.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication an object containing the endpoint authentication attributes +type V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The bearerToken property + bearerToken V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable +} +// NewV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication instantiates a new V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication and sets the default values. +func NewV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication()(*V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication) { + m := &V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authenticationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authenticationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetBearerToken gets the bearerToken property value. The bearerToken property +// returns a V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication) GetBearerToken()(V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable) { + return m.bearerToken +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["bearerToken"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerTokenFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBearerToken(val.(V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("bearerToken", m.GetBearerToken()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetBearerToken sets the bearerToken property value. The bearerToken property +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication) SetBearerToken(value V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable)() { + m.bearerToken = value +} +type V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authenticationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBearerToken()(V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable) + SetBearerToken(value V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerTokenable)() +} diff --git a/internal/sdk/dataservices/dataservices/f9a46a0f54a163493921b9337477ccba4cc67ef19705b2138f1ff4cc39b0ba30.go b/internal/sdk/dataservices/dataservices/f9a46a0f54a163493921b9337477ccba4cc67ef19705b2138f1ff4cc39b0ba30.go new file mode 100644 index 0000000..adf4033 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/f9a46a0f54a163493921b9337477ccba4cc67ef19705b2138f1ff4cc39b0ba30.go @@ -0,0 +1,128 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent the Software Component a Software Release belongs to. +type V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The ID of the resource. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The name property + name *string + // The type property + typeEscaped *string +} +// NewV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent instantiates a new V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent and sets the default values. +func NewV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent()(*V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent) { + m := &V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The ID of the resource. +// returns a *UUID when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent) GetName()(*string) { + return m.name +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The ID of the resource. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. The name property +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent) SetName(value *string)() { + m.name = value +} +// SetTypeEscaped sets the type property value. The type property +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponent) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponentable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetTypeEscaped()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/fb5aa008a8770d53a8a28352e992db71a932c76d3aa5d4103dc51aa99849d280.go b/internal/sdk/dataservices/dataservices/fb5aa008a8770d53a8a28352e992db71a932c76d3aa5d4103dc51aa99849d280.go new file mode 100644 index 0000000..f6d5e64 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/fb5aa008a8770d53a8a28352e992db71a932c76d3aa5d4103dc51aa99849d280.go @@ -0,0 +1,150 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret reference to a Secret resource +type V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The secret's unique identifier + id *string + // The secret's name + name *string + // The 'self' reference for this secret resource + resourceUri *string + // The type of this secret resource, 'data-services/secret' + typeEscaped *string +} +// NewV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret instantiates a new V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret and sets the default values. +func NewV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret()(*V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) { + m := &V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The secret's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The secret's name +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The 'self' reference for this secret resource +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of this secret resource, 'data-services/secret' +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The secret's unique identifier +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The secret's name +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The 'self' reference for this secret resource +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of this secret resource, 'data-services/secret' +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secret) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_bearerToken_secretable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/9f9e1bb0a3f4692afb9cca54ff554f467fd0fa670aa278c1f7b23ff97d69050c.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/9f9e1bb0a3f4692afb9cca54ff554f467fd0fa670aa278c1f7b23ff97d69050c.go new file mode 100644 index 0000000..bd4a384 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/9f9e1bb0a3f4692afb9cca54ff554f467fd0fa670aa278c1f7b23ff97d69050c.go @@ -0,0 +1,34 @@ +package dataservicesconnectors +// Indicates whether the address is assigned statically or via DHCP. +type DataServicesConnectorsGetResponse_items_interfaces_network_nic_addressType int + +const ( + DHCP_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_INTERFACES_NETWORK_NIC_ADDRESSTYPE DataServicesConnectorsGetResponse_items_interfaces_network_nic_addressType = iota + STATIC_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_INTERFACES_NETWORK_NIC_ADDRESSTYPE +) + +func (i DataServicesConnectorsGetResponse_items_interfaces_network_nic_addressType) String() string { + return []string{"DHCP", "STATIC"}[i] +} +func ParseDataServicesConnectorsGetResponse_items_interfaces_network_nic_addressType(v string) (any, error) { + result := DHCP_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_INTERFACES_NETWORK_NIC_ADDRESSTYPE + switch v { + case "DHCP": + result = DHCP_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_INTERFACES_NETWORK_NIC_ADDRESSTYPE + case "STATIC": + result = STATIC_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_INTERFACES_NETWORK_NIC_ADDRESSTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_items_interfaces_network_nic_addressType(values []DataServicesConnectorsGetResponse_items_interfaces_network_nic_addressType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_items_interfaces_network_nic_addressType) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_connection_state.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_connection_state.go new file mode 100644 index 0000000..a763c19 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_connection_state.go @@ -0,0 +1,34 @@ +package dataservicesconnectors +// Connection state of Data Services Connector to DSCC. +type DataServicesConnectorsGetResponse_items_connectionState int + +const ( + CONNECTED_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_CONNECTIONSTATE DataServicesConnectorsGetResponse_items_connectionState = iota + DISCONNECTED_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_CONNECTIONSTATE +) + +func (i DataServicesConnectorsGetResponse_items_connectionState) String() string { + return []string{"CONNECTED", "DISCONNECTED"}[i] +} +func ParseDataServicesConnectorsGetResponse_items_connectionState(v string) (any, error) { + result := CONNECTED_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_CONNECTIONSTATE + switch v { + case "CONNECTED": + result = CONNECTED_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_CONNECTIONSTATE + case "DISCONNECTED": + result = DISCONNECTED_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_CONNECTIONSTATE + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_items_connectionState(values []DataServicesConnectorsGetResponse_items_connectionState) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_items_connectionState) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_date_time_escaped_method_date_time_set.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_date_time_escaped_method_date_time_set.go new file mode 100644 index 0000000..4a9233e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_date_time_escaped_method_date_time_set.go @@ -0,0 +1,31 @@ +package dataservicesconnectors +// Method for how data and time is set on the Data Services Connector. +type DataServicesConnectorsGetResponse_items_dateTime_methodDateTimeSet int + +const ( + NTP_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_DATETIME_METHODDATETIMESET DataServicesConnectorsGetResponse_items_dateTime_methodDateTimeSet = iota +) + +func (i DataServicesConnectorsGetResponse_items_dateTime_methodDateTimeSet) String() string { + return []string{"NTP"}[i] +} +func ParseDataServicesConnectorsGetResponse_items_dateTime_methodDateTimeSet(v string) (any, error) { + result := NTP_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_DATETIME_METHODDATETIMESET + switch v { + case "NTP": + result = NTP_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_DATETIME_METHODDATETIMESET + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_items_dateTime_methodDateTimeSet(values []DataServicesConnectorsGetResponse_items_dateTime_methodDateTimeSet) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_items_dateTime_methodDateTimeSet) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_deployment_type.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_deployment_type.go new file mode 100644 index 0000000..31a6b14 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_deployment_type.go @@ -0,0 +1,34 @@ +package dataservicesconnectors +// Data Services Connector deployment type. +type DataServicesConnectorsGetResponse_items_deploymentType int + +const ( + CUSTOMER_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_DEPLOYMENTTYPE DataServicesConnectorsGetResponse_items_deploymentType = iota + FACTORY_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_DEPLOYMENTTYPE +) + +func (i DataServicesConnectorsGetResponse_items_deploymentType) String() string { + return []string{"CUSTOMER", "FACTORY"}[i] +} +func ParseDataServicesConnectorsGetResponse_items_deploymentType(v string) (any, error) { + result := CUSTOMER_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_DEPLOYMENTTYPE + switch v { + case "CUSTOMER": + result = CUSTOMER_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_DEPLOYMENTTYPE + case "FACTORY": + result = FACTORY_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_DEPLOYMENTTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_items_deploymentType(values []DataServicesConnectorsGetResponse_items_deploymentType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_items_deploymentType) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_ntp_escaped_state.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_ntp_escaped_state.go new file mode 100644 index 0000000..b653e9a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_ntp_escaped_state.go @@ -0,0 +1,34 @@ +package dataservicesconnectors +// State of NTP server +type DataServicesConnectorsGetResponse_items_ntp_state int + +const ( + OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_NTP_STATE DataServicesConnectorsGetResponse_items_ntp_state = iota + DEGRADED_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_NTP_STATE +) + +func (i DataServicesConnectorsGetResponse_items_ntp_state) String() string { + return []string{"OK", "DEGRADED"}[i] +} +func ParseDataServicesConnectorsGetResponse_items_ntp_state(v string) (any, error) { + result := OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_NTP_STATE + switch v { + case "OK": + result = OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_NTP_STATE + case "DEGRADED": + result = DEGRADED_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_NTP_STATE + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_items_ntp_state(values []DataServicesConnectorsGetResponse_items_ntp_state) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_items_ntp_state) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_ntp_escaped_status.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_ntp_escaped_status.go new file mode 100644 index 0000000..c5c5871 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_ntp_escaped_status.go @@ -0,0 +1,37 @@ +package dataservicesconnectors +// Status of NTP server +type DataServicesConnectorsGetResponse_items_ntp_status int + +const ( + OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_NTP_STATUS DataServicesConnectorsGetResponse_items_ntp_status = iota + WARNING_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_NTP_STATUS + ERROR_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_NTP_STATUS +) + +func (i DataServicesConnectorsGetResponse_items_ntp_status) String() string { + return []string{"OK", "WARNING", "ERROR"}[i] +} +func ParseDataServicesConnectorsGetResponse_items_ntp_status(v string) (any, error) { + result := OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_NTP_STATUS + switch v { + case "OK": + result = OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_NTP_STATUS + case "WARNING": + result = WARNING_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_NTP_STATUS + case "ERROR": + result = ERROR_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_NTP_STATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_items_ntp_status(values []DataServicesConnectorsGetResponse_items_ntp_status) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_items_ntp_status) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_platform.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_platform.go new file mode 100644 index 0000000..bbe144f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_platform.go @@ -0,0 +1,31 @@ +package dataservicesconnectors +// Hypervisor platform. +type DataServicesConnectorsGetResponse_items_platform int + +const ( + VMWARE_ESXI_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_PLATFORM DataServicesConnectorsGetResponse_items_platform = iota +) + +func (i DataServicesConnectorsGetResponse_items_platform) String() string { + return []string{"VMWARE_ESXI"}[i] +} +func ParseDataServicesConnectorsGetResponse_items_platform(v string) (any, error) { + result := VMWARE_ESXI_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_PLATFORM + switch v { + case "VMWARE_ESXI": + result = VMWARE_ESXI_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_PLATFORM + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_items_platform(values []DataServicesConnectorsGetResponse_items_platform) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_items_platform) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_rda_info_escaped_state.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_rda_info_escaped_state.go new file mode 100644 index 0000000..bc5adc5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_rda_info_escaped_state.go @@ -0,0 +1,34 @@ +package dataservicesconnectors +// Current state of RDA. +type DataServicesConnectorsGetResponse_items_rdaInfo_state int + +const ( + OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_RDAINFO_STATE DataServicesConnectorsGetResponse_items_rdaInfo_state = iota + UNKNOWN_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_RDAINFO_STATE +) + +func (i DataServicesConnectorsGetResponse_items_rdaInfo_state) String() string { + return []string{"OK", "UNKNOWN"}[i] +} +func ParseDataServicesConnectorsGetResponse_items_rdaInfo_state(v string) (any, error) { + result := OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_RDAINFO_STATE + switch v { + case "OK": + result = OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_RDAINFO_STATE + case "UNKNOWN": + result = UNKNOWN_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_RDAINFO_STATE + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_items_rdaInfo_state(values []DataServicesConnectorsGetResponse_items_rdaInfo_state) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_items_rdaInfo_state) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_rda_info_escaped_status.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_rda_info_escaped_status.go new file mode 100644 index 0000000..478885e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_rda_info_escaped_status.go @@ -0,0 +1,37 @@ +package dataservicesconnectors +// Current status of RDA. +type DataServicesConnectorsGetResponse_items_rdaInfo_status int + +const ( + OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_RDAINFO_STATUS DataServicesConnectorsGetResponse_items_rdaInfo_status = iota + WARNING_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_RDAINFO_STATUS + ERROR_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_RDAINFO_STATUS +) + +func (i DataServicesConnectorsGetResponse_items_rdaInfo_status) String() string { + return []string{"OK", "WARNING", "ERROR"}[i] +} +func ParseDataServicesConnectorsGetResponse_items_rdaInfo_status(v string) (any, error) { + result := OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_RDAINFO_STATUS + switch v { + case "OK": + result = OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_RDAINFO_STATUS + case "WARNING": + result = WARNING_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_RDAINFO_STATUS + case "ERROR": + result = ERROR_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_RDAINFO_STATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_items_rdaInfo_status(values []DataServicesConnectorsGetResponse_items_rdaInfo_status) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_items_rdaInfo_status) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_state.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_state.go new file mode 100644 index 0000000..fb4ee50 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_state.go @@ -0,0 +1,40 @@ +package dataservicesconnectors +// Current state of Data Services Connector. +type DataServicesConnectorsGetResponse_items_state int + +const ( + OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATE DataServicesConnectorsGetResponse_items_state = iota + UPGRADING_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATE + UPDATING_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATE + UNKNOWN_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATE +) + +func (i DataServicesConnectorsGetResponse_items_state) String() string { + return []string{"OK", "UPGRADING", "UPDATING", "UNKNOWN"}[i] +} +func ParseDataServicesConnectorsGetResponse_items_state(v string) (any, error) { + result := OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATE + switch v { + case "OK": + result = OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATE + case "UPGRADING": + result = UPGRADING_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATE + case "UPDATING": + result = UPDATING_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATE + case "UNKNOWN": + result = UNKNOWN_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATE + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_items_state(values []DataServicesConnectorsGetResponse_items_state) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_items_state) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_status.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_status.go new file mode 100644 index 0000000..dc9619e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/data_services_connectors_get_response_escaped_items_escaped_status.go @@ -0,0 +1,37 @@ +package dataservicesconnectors +// Current status of Data Services Connector. +type DataServicesConnectorsGetResponse_items_status int + +const ( + OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATUS DataServicesConnectorsGetResponse_items_status = iota + WARNING_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATUS + ERROR_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATUS +) + +func (i DataServicesConnectorsGetResponse_items_status) String() string { + return []string{"OK", "WARNING", "ERROR"}[i] +} +func ParseDataServicesConnectorsGetResponse_items_status(v string) (any, error) { + result := OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATUS + switch v { + case "OK": + result = OK_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATUS + case "WARNING": + result = WARNING_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATUS + case "ERROR": + result = ERROR_DATASERVICESCONNECTORSGETRESPONSE_ITEMS_STATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_items_status(values []DataServicesConnectorsGetResponse_items_status) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_items_status) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/7d58ba794c192f10726961e1f12d1611ea2f124c61b45d6cc0de3af5321a7075.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/7d58ba794c192f10726961e1f12d1611ea2f124c61b45d6cc0de3af5321a7075.go new file mode 100644 index 0000000..e611930 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/7d58ba794c192f10726961e1f12d1611ea2f124c61b45d6cc0de3af5321a7075.go @@ -0,0 +1,34 @@ +package item +// Indicates whether the address is assigned statically or via DHCP. +type DataServicesConnectorsGetResponse_interfaces_network_nic_addressType int + +const ( + DHCP_DATASERVICESCONNECTORSGETRESPONSE_INTERFACES_NETWORK_NIC_ADDRESSTYPE DataServicesConnectorsGetResponse_interfaces_network_nic_addressType = iota + STATIC_DATASERVICESCONNECTORSGETRESPONSE_INTERFACES_NETWORK_NIC_ADDRESSTYPE +) + +func (i DataServicesConnectorsGetResponse_interfaces_network_nic_addressType) String() string { + return []string{"DHCP", "STATIC"}[i] +} +func ParseDataServicesConnectorsGetResponse_interfaces_network_nic_addressType(v string) (any, error) { + result := DHCP_DATASERVICESCONNECTORSGETRESPONSE_INTERFACES_NETWORK_NIC_ADDRESSTYPE + switch v { + case "DHCP": + result = DHCP_DATASERVICESCONNECTORSGETRESPONSE_INTERFACES_NETWORK_NIC_ADDRESSTYPE + case "STATIC": + result = STATIC_DATASERVICESCONNECTORSGETRESPONSE_INTERFACES_NETWORK_NIC_ADDRESSTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_interfaces_network_nic_addressType(values []DataServicesConnectorsGetResponse_interfaces_network_nic_addressType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_interfaces_network_nic_addressType) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_connection_state.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_connection_state.go new file mode 100644 index 0000000..3af186c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_connection_state.go @@ -0,0 +1,34 @@ +package item +// Connection state of Data Services Connector to DSCC. +type DataServicesConnectorsGetResponse_connectionState int + +const ( + CONNECTED_DATASERVICESCONNECTORSGETRESPONSE_CONNECTIONSTATE DataServicesConnectorsGetResponse_connectionState = iota + DISCONNECTED_DATASERVICESCONNECTORSGETRESPONSE_CONNECTIONSTATE +) + +func (i DataServicesConnectorsGetResponse_connectionState) String() string { + return []string{"CONNECTED", "DISCONNECTED"}[i] +} +func ParseDataServicesConnectorsGetResponse_connectionState(v string) (any, error) { + result := CONNECTED_DATASERVICESCONNECTORSGETRESPONSE_CONNECTIONSTATE + switch v { + case "CONNECTED": + result = CONNECTED_DATASERVICESCONNECTORSGETRESPONSE_CONNECTIONSTATE + case "DISCONNECTED": + result = DISCONNECTED_DATASERVICESCONNECTORSGETRESPONSE_CONNECTIONSTATE + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_connectionState(values []DataServicesConnectorsGetResponse_connectionState) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_connectionState) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_date_time_escaped_method_date_time_set.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_date_time_escaped_method_date_time_set.go new file mode 100644 index 0000000..4da6a86 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_date_time_escaped_method_date_time_set.go @@ -0,0 +1,31 @@ +package item +// Method for how data and time is set on the Data Services Connector. +type DataServicesConnectorsGetResponse_dateTime_methodDateTimeSet int + +const ( + NTP_DATASERVICESCONNECTORSGETRESPONSE_DATETIME_METHODDATETIMESET DataServicesConnectorsGetResponse_dateTime_methodDateTimeSet = iota +) + +func (i DataServicesConnectorsGetResponse_dateTime_methodDateTimeSet) String() string { + return []string{"NTP"}[i] +} +func ParseDataServicesConnectorsGetResponse_dateTime_methodDateTimeSet(v string) (any, error) { + result := NTP_DATASERVICESCONNECTORSGETRESPONSE_DATETIME_METHODDATETIMESET + switch v { + case "NTP": + result = NTP_DATASERVICESCONNECTORSGETRESPONSE_DATETIME_METHODDATETIMESET + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_dateTime_methodDateTimeSet(values []DataServicesConnectorsGetResponse_dateTime_methodDateTimeSet) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_dateTime_methodDateTimeSet) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_deployment_type.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_deployment_type.go new file mode 100644 index 0000000..f12c327 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_deployment_type.go @@ -0,0 +1,34 @@ +package item +// Data Services Connector deployment type. +type DataServicesConnectorsGetResponse_deploymentType int + +const ( + CUSTOMER_DATASERVICESCONNECTORSGETRESPONSE_DEPLOYMENTTYPE DataServicesConnectorsGetResponse_deploymentType = iota + FACTORY_DATASERVICESCONNECTORSGETRESPONSE_DEPLOYMENTTYPE +) + +func (i DataServicesConnectorsGetResponse_deploymentType) String() string { + return []string{"CUSTOMER", "FACTORY"}[i] +} +func ParseDataServicesConnectorsGetResponse_deploymentType(v string) (any, error) { + result := CUSTOMER_DATASERVICESCONNECTORSGETRESPONSE_DEPLOYMENTTYPE + switch v { + case "CUSTOMER": + result = CUSTOMER_DATASERVICESCONNECTORSGETRESPONSE_DEPLOYMENTTYPE + case "FACTORY": + result = FACTORY_DATASERVICESCONNECTORSGETRESPONSE_DEPLOYMENTTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_deploymentType(values []DataServicesConnectorsGetResponse_deploymentType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_deploymentType) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_ntp_escaped_state.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_ntp_escaped_state.go new file mode 100644 index 0000000..dc271d5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_ntp_escaped_state.go @@ -0,0 +1,34 @@ +package item +// State of NTP server +type DataServicesConnectorsGetResponse_ntp_state int + +const ( + OK_DATASERVICESCONNECTORSGETRESPONSE_NTP_STATE DataServicesConnectorsGetResponse_ntp_state = iota + DEGRADED_DATASERVICESCONNECTORSGETRESPONSE_NTP_STATE +) + +func (i DataServicesConnectorsGetResponse_ntp_state) String() string { + return []string{"OK", "DEGRADED"}[i] +} +func ParseDataServicesConnectorsGetResponse_ntp_state(v string) (any, error) { + result := OK_DATASERVICESCONNECTORSGETRESPONSE_NTP_STATE + switch v { + case "OK": + result = OK_DATASERVICESCONNECTORSGETRESPONSE_NTP_STATE + case "DEGRADED": + result = DEGRADED_DATASERVICESCONNECTORSGETRESPONSE_NTP_STATE + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_ntp_state(values []DataServicesConnectorsGetResponse_ntp_state) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_ntp_state) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_ntp_escaped_status.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_ntp_escaped_status.go new file mode 100644 index 0000000..3657559 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_ntp_escaped_status.go @@ -0,0 +1,37 @@ +package item +// Status of NTP server +type DataServicesConnectorsGetResponse_ntp_status int + +const ( + OK_DATASERVICESCONNECTORSGETRESPONSE_NTP_STATUS DataServicesConnectorsGetResponse_ntp_status = iota + WARNING_DATASERVICESCONNECTORSGETRESPONSE_NTP_STATUS + ERROR_DATASERVICESCONNECTORSGETRESPONSE_NTP_STATUS +) + +func (i DataServicesConnectorsGetResponse_ntp_status) String() string { + return []string{"OK", "WARNING", "ERROR"}[i] +} +func ParseDataServicesConnectorsGetResponse_ntp_status(v string) (any, error) { + result := OK_DATASERVICESCONNECTORSGETRESPONSE_NTP_STATUS + switch v { + case "OK": + result = OK_DATASERVICESCONNECTORSGETRESPONSE_NTP_STATUS + case "WARNING": + result = WARNING_DATASERVICESCONNECTORSGETRESPONSE_NTP_STATUS + case "ERROR": + result = ERROR_DATASERVICESCONNECTORSGETRESPONSE_NTP_STATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_ntp_status(values []DataServicesConnectorsGetResponse_ntp_status) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_ntp_status) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_platform.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_platform.go new file mode 100644 index 0000000..20ffa68 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_platform.go @@ -0,0 +1,31 @@ +package item +// Hypervisor platform. +type DataServicesConnectorsGetResponse_platform int + +const ( + VMWARE_ESXI_DATASERVICESCONNECTORSGETRESPONSE_PLATFORM DataServicesConnectorsGetResponse_platform = iota +) + +func (i DataServicesConnectorsGetResponse_platform) String() string { + return []string{"VMWARE_ESXI"}[i] +} +func ParseDataServicesConnectorsGetResponse_platform(v string) (any, error) { + result := VMWARE_ESXI_DATASERVICESCONNECTORSGETRESPONSE_PLATFORM + switch v { + case "VMWARE_ESXI": + result = VMWARE_ESXI_DATASERVICESCONNECTORSGETRESPONSE_PLATFORM + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_platform(values []DataServicesConnectorsGetResponse_platform) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_platform) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_rda_info_escaped_state.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_rda_info_escaped_state.go new file mode 100644 index 0000000..690aeba --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_rda_info_escaped_state.go @@ -0,0 +1,34 @@ +package item +// Current state of RDA. +type DataServicesConnectorsGetResponse_rdaInfo_state int + +const ( + OK_DATASERVICESCONNECTORSGETRESPONSE_RDAINFO_STATE DataServicesConnectorsGetResponse_rdaInfo_state = iota + UNKNOWN_DATASERVICESCONNECTORSGETRESPONSE_RDAINFO_STATE +) + +func (i DataServicesConnectorsGetResponse_rdaInfo_state) String() string { + return []string{"OK", "UNKNOWN"}[i] +} +func ParseDataServicesConnectorsGetResponse_rdaInfo_state(v string) (any, error) { + result := OK_DATASERVICESCONNECTORSGETRESPONSE_RDAINFO_STATE + switch v { + case "OK": + result = OK_DATASERVICESCONNECTORSGETRESPONSE_RDAINFO_STATE + case "UNKNOWN": + result = UNKNOWN_DATASERVICESCONNECTORSGETRESPONSE_RDAINFO_STATE + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_rdaInfo_state(values []DataServicesConnectorsGetResponse_rdaInfo_state) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_rdaInfo_state) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_rda_info_escaped_status.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_rda_info_escaped_status.go new file mode 100644 index 0000000..4e260e1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_rda_info_escaped_status.go @@ -0,0 +1,37 @@ +package item +// Current status of RDA. +type DataServicesConnectorsGetResponse_rdaInfo_status int + +const ( + OK_DATASERVICESCONNECTORSGETRESPONSE_RDAINFO_STATUS DataServicesConnectorsGetResponse_rdaInfo_status = iota + WARNING_DATASERVICESCONNECTORSGETRESPONSE_RDAINFO_STATUS + ERROR_DATASERVICESCONNECTORSGETRESPONSE_RDAINFO_STATUS +) + +func (i DataServicesConnectorsGetResponse_rdaInfo_status) String() string { + return []string{"OK", "WARNING", "ERROR"}[i] +} +func ParseDataServicesConnectorsGetResponse_rdaInfo_status(v string) (any, error) { + result := OK_DATASERVICESCONNECTORSGETRESPONSE_RDAINFO_STATUS + switch v { + case "OK": + result = OK_DATASERVICESCONNECTORSGETRESPONSE_RDAINFO_STATUS + case "WARNING": + result = WARNING_DATASERVICESCONNECTORSGETRESPONSE_RDAINFO_STATUS + case "ERROR": + result = ERROR_DATASERVICESCONNECTORSGETRESPONSE_RDAINFO_STATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_rdaInfo_status(values []DataServicesConnectorsGetResponse_rdaInfo_status) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_rdaInfo_status) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_state.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_state.go new file mode 100644 index 0000000..6424bce --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_state.go @@ -0,0 +1,40 @@ +package item +// Current state of Data Services Connector. +type DataServicesConnectorsGetResponse_state int + +const ( + OK_DATASERVICESCONNECTORSGETRESPONSE_STATE DataServicesConnectorsGetResponse_state = iota + UPGRADING_DATASERVICESCONNECTORSGETRESPONSE_STATE + UPDATING_DATASERVICESCONNECTORSGETRESPONSE_STATE + UNKNOWN_DATASERVICESCONNECTORSGETRESPONSE_STATE +) + +func (i DataServicesConnectorsGetResponse_state) String() string { + return []string{"OK", "UPGRADING", "UPDATING", "UNKNOWN"}[i] +} +func ParseDataServicesConnectorsGetResponse_state(v string) (any, error) { + result := OK_DATASERVICESCONNECTORSGETRESPONSE_STATE + switch v { + case "OK": + result = OK_DATASERVICESCONNECTORSGETRESPONSE_STATE + case "UPGRADING": + result = UPGRADING_DATASERVICESCONNECTORSGETRESPONSE_STATE + case "UPDATING": + result = UPDATING_DATASERVICESCONNECTORSGETRESPONSE_STATE + case "UNKNOWN": + result = UNKNOWN_DATASERVICESCONNECTORSGETRESPONSE_STATE + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_state(values []DataServicesConnectorsGetResponse_state) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_state) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_status.go b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_status.go new file mode 100644 index 0000000..ec94727 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dataservicesconnectors/item/data_services_connectors_get_response_escaped_status.go @@ -0,0 +1,37 @@ +package item +// Current status of Data Services Connector. +type DataServicesConnectorsGetResponse_status int + +const ( + OK_DATASERVICESCONNECTORSGETRESPONSE_STATUS DataServicesConnectorsGetResponse_status = iota + WARNING_DATASERVICESCONNECTORSGETRESPONSE_STATUS + ERROR_DATASERVICESCONNECTORSGETRESPONSE_STATUS +) + +func (i DataServicesConnectorsGetResponse_status) String() string { + return []string{"OK", "WARNING", "ERROR"}[i] +} +func ParseDataServicesConnectorsGetResponse_status(v string) (any, error) { + result := OK_DATASERVICESCONNECTORSGETRESPONSE_STATUS + switch v { + case "OK": + result = OK_DATASERVICESCONNECTORSGETRESPONSE_STATUS + case "WARNING": + result = WARNING_DATASERVICESCONNECTORSGETRESPONSE_STATUS + case "ERROR": + result = ERROR_DATASERVICESCONNECTORSGETRESPONSE_STATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeDataServicesConnectorsGetResponse_status(values []DataServicesConnectorsGetResponse_status) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DataServicesConnectorsGetResponse_status) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/dualauthoperations/item/dual_auth_operations_patch_request_body_escaped_state.go b/internal/sdk/dataservices/dataservices/v1beta1/dualauthoperations/item/dual_auth_operations_patch_request_body_escaped_state.go new file mode 100644 index 0000000..8b4d79e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/dualauthoperations/item/dual_auth_operations_patch_request_body_escaped_state.go @@ -0,0 +1,34 @@ +package item +// new value of the "state" setting +type DualAuthOperationsPatchRequestBody_state int + +const ( + APPROVED_DUALAUTHOPERATIONSPATCHREQUESTBODY_STATE DualAuthOperationsPatchRequestBody_state = iota + CANCELLED_DUALAUTHOPERATIONSPATCHREQUESTBODY_STATE +) + +func (i DualAuthOperationsPatchRequestBody_state) String() string { + return []string{"APPROVED", "CANCELLED"}[i] +} +func ParseDualAuthOperationsPatchRequestBody_state(v string) (any, error) { + result := APPROVED_DUALAUTHOPERATIONSPATCHREQUESTBODY_STATE + switch v { + case "APPROVED": + result = APPROVED_DUALAUTHOPERATIONSPATCHREQUESTBODY_STATE + case "CANCELLED": + result = CANCELLED_DUALAUTHOPERATIONSPATCHREQUESTBODY_STATE + default: + return nil, nil + } + return &result, nil +} +func SerializeDualAuthOperationsPatchRequestBody_state(values []DualAuthOperationsPatchRequestBody_state) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DualAuthOperationsPatchRequestBody_state) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/issues/issues_get_response_escaped_items_escaped_snoozed_for.go b/internal/sdk/dataservices/dataservices/v1beta1/issues/issues_get_response_escaped_items_escaped_snoozed_for.go new file mode 100644 index 0000000..93c88f1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/issues/issues_get_response_escaped_items_escaped_snoozed_for.go @@ -0,0 +1,42 @@ +package issues +type IssuesGetResponse_items_snoozedFor int + +const ( + NONE_ISSUESGETRESPONSE_ITEMS_SNOOZEDFOR IssuesGetResponse_items_snoozedFor = iota + DAY_ISSUESGETRESPONSE_ITEMS_SNOOZEDFOR + WEEK_ISSUESGETRESPONSE_ITEMS_SNOOZEDFOR + MONTH_ISSUESGETRESPONSE_ITEMS_SNOOZEDFOR + INFINITE_ISSUESGETRESPONSE_ITEMS_SNOOZEDFOR +) + +func (i IssuesGetResponse_items_snoozedFor) String() string { + return []string{"NONE", "DAY", "WEEK", "MONTH", "INFINITE"}[i] +} +func ParseIssuesGetResponse_items_snoozedFor(v string) (any, error) { + result := NONE_ISSUESGETRESPONSE_ITEMS_SNOOZEDFOR + switch v { + case "NONE": + result = NONE_ISSUESGETRESPONSE_ITEMS_SNOOZEDFOR + case "DAY": + result = DAY_ISSUESGETRESPONSE_ITEMS_SNOOZEDFOR + case "WEEK": + result = WEEK_ISSUESGETRESPONSE_ITEMS_SNOOZEDFOR + case "MONTH": + result = MONTH_ISSUESGETRESPONSE_ITEMS_SNOOZEDFOR + case "INFINITE": + result = INFINITE_ISSUESGETRESPONSE_ITEMS_SNOOZEDFOR + default: + return nil, nil + } + return &result, nil +} +func SerializeIssuesGetResponse_items_snoozedFor(values []IssuesGetResponse_items_snoozedFor) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i IssuesGetResponse_items_snoozedFor) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/issues/item/issues_get_response_escaped_snoozed_for.go b/internal/sdk/dataservices/dataservices/v1beta1/issues/item/issues_get_response_escaped_snoozed_for.go new file mode 100644 index 0000000..5ea8e3d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/issues/item/issues_get_response_escaped_snoozed_for.go @@ -0,0 +1,42 @@ +package item +type IssuesGetResponse_snoozedFor int + +const ( + NONE_ISSUESGETRESPONSE_SNOOZEDFOR IssuesGetResponse_snoozedFor = iota + DAY_ISSUESGETRESPONSE_SNOOZEDFOR + WEEK_ISSUESGETRESPONSE_SNOOZEDFOR + MONTH_ISSUESGETRESPONSE_SNOOZEDFOR + INFINITE_ISSUESGETRESPONSE_SNOOZEDFOR +) + +func (i IssuesGetResponse_snoozedFor) String() string { + return []string{"NONE", "DAY", "WEEK", "MONTH", "INFINITE"}[i] +} +func ParseIssuesGetResponse_snoozedFor(v string) (any, error) { + result := NONE_ISSUESGETRESPONSE_SNOOZEDFOR + switch v { + case "NONE": + result = NONE_ISSUESGETRESPONSE_SNOOZEDFOR + case "DAY": + result = DAY_ISSUESGETRESPONSE_SNOOZEDFOR + case "WEEK": + result = WEEK_ISSUESGETRESPONSE_SNOOZEDFOR + case "MONTH": + result = MONTH_ISSUESGETRESPONSE_SNOOZEDFOR + case "INFINITE": + result = INFINITE_ISSUESGETRESPONSE_SNOOZEDFOR + default: + return nil, nil + } + return &result, nil +} +func SerializeIssuesGetResponse_snoozedFor(values []IssuesGetResponse_snoozedFor) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i IssuesGetResponse_snoozedFor) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/softwarecomponents/item/installrelease/install_release_get_response_escaped_stability.go b/internal/sdk/dataservices/dataservices/v1beta1/softwarecomponents/item/installrelease/install_release_get_response_escaped_stability.go new file mode 100644 index 0000000..f567a2d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/softwarecomponents/item/installrelease/install_release_get_response_escaped_stability.go @@ -0,0 +1,31 @@ +package installrelease +// The stabilities that can be assigned to a Software Release. +type InstallReleaseGetResponse_stability int + +const ( + GENERAL_AVAILABILITY_INSTALLRELEASEGETRESPONSE_STABILITY InstallReleaseGetResponse_stability = iota +) + +func (i InstallReleaseGetResponse_stability) String() string { + return []string{"GENERAL_AVAILABILITY"}[i] +} +func ParseInstallReleaseGetResponse_stability(v string) (any, error) { + result := GENERAL_AVAILABILITY_INSTALLRELEASEGETRESPONSE_STABILITY + switch v { + case "GENERAL_AVAILABILITY": + result = GENERAL_AVAILABILITY_INSTALLRELEASEGETRESPONSE_STABILITY + default: + return nil, nil + } + return &result, nil +} +func SerializeInstallReleaseGetResponse_stability(values []InstallReleaseGetResponse_stability) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i InstallReleaseGetResponse_stability) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/softwarecomponents/item/installrelease/install_release_get_response_escaped_usage.go b/internal/sdk/dataservices/dataservices/v1beta1/softwarecomponents/item/installrelease/install_release_get_response_escaped_usage.go new file mode 100644 index 0000000..2b254e6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/softwarecomponents/item/installrelease/install_release_get_response_escaped_usage.go @@ -0,0 +1,37 @@ +package installrelease +// An indicator of how a Software Release should be used:- `INSTALL`: Used for an initial install, such as the OVA for a virtual machine.- `UPGRADE`: Upgrades an existing release.- `UNIVERSAL`: Acts as both an install and upgrade media. +type InstallReleaseGetResponse_usage int + +const ( + INSTALL_INSTALLRELEASEGETRESPONSE_USAGE InstallReleaseGetResponse_usage = iota + UPGRADE_INSTALLRELEASEGETRESPONSE_USAGE + UNIVERSAL_INSTALLRELEASEGETRESPONSE_USAGE +) + +func (i InstallReleaseGetResponse_usage) String() string { + return []string{"INSTALL", "UPGRADE", "UNIVERSAL"}[i] +} +func ParseInstallReleaseGetResponse_usage(v string) (any, error) { + result := INSTALL_INSTALLRELEASEGETRESPONSE_USAGE + switch v { + case "INSTALL": + result = INSTALL_INSTALLRELEASEGETRESPONSE_USAGE + case "UPGRADE": + result = UPGRADE_INSTALLRELEASEGETRESPONSE_USAGE + case "UNIVERSAL": + result = UNIVERSAL_INSTALLRELEASEGETRESPONSE_USAGE + default: + return nil, nil + } + return &result, nil +} +func SerializeInstallReleaseGetResponse_usage(values []InstallReleaseGetResponse_usage) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i InstallReleaseGetResponse_usage) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/download/download_post_request_body_escaped_file.go b/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/download/download_post_request_body_escaped_file.go new file mode 100644 index 0000000..8491bdc --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/download/download_post_request_body_escaped_file.go @@ -0,0 +1,34 @@ +package download +// The files within a Software Release. +type DownloadPostRequestBody_file int + +const ( + SOFTWARE_DOWNLOADPOSTREQUESTBODY_FILE DownloadPostRequestBody_file = iota + SIGNATURE_DOWNLOADPOSTREQUESTBODY_FILE +) + +func (i DownloadPostRequestBody_file) String() string { + return []string{"SOFTWARE", "SIGNATURE"}[i] +} +func ParseDownloadPostRequestBody_file(v string) (any, error) { + result := SOFTWARE_DOWNLOADPOSTREQUESTBODY_FILE + switch v { + case "SOFTWARE": + result = SOFTWARE_DOWNLOADPOSTREQUESTBODY_FILE + case "SIGNATURE": + result = SIGNATURE_DOWNLOADPOSTREQUESTBODY_FILE + default: + return nil, nil + } + return &result, nil +} +func SerializeDownloadPostRequestBody_file(values []DownloadPostRequestBody_file) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DownloadPostRequestBody_file) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/downloads/downloads_post_request_body_escaped_file.go b/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/downloads/downloads_post_request_body_escaped_file.go new file mode 100644 index 0000000..089112c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/downloads/downloads_post_request_body_escaped_file.go @@ -0,0 +1,34 @@ +package downloads +// The files within a Software Release. +type DownloadsPostRequestBody_file int + +const ( + SOFTWARE_DOWNLOADSPOSTREQUESTBODY_FILE DownloadsPostRequestBody_file = iota + SIGNATURE_DOWNLOADSPOSTREQUESTBODY_FILE +) + +func (i DownloadsPostRequestBody_file) String() string { + return []string{"SOFTWARE", "SIGNATURE"}[i] +} +func ParseDownloadsPostRequestBody_file(v string) (any, error) { + result := SOFTWARE_DOWNLOADSPOSTREQUESTBODY_FILE + switch v { + case "SOFTWARE": + result = SOFTWARE_DOWNLOADSPOSTREQUESTBODY_FILE + case "SIGNATURE": + result = SIGNATURE_DOWNLOADSPOSTREQUESTBODY_FILE + default: + return nil, nil + } + return &result, nil +} +func SerializeDownloadsPostRequestBody_file(values []DownloadsPostRequestBody_file) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DownloadsPostRequestBody_file) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/software_releases_get_response_escaped_stability.go b/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/software_releases_get_response_escaped_stability.go new file mode 100644 index 0000000..6c007c6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/software_releases_get_response_escaped_stability.go @@ -0,0 +1,31 @@ +package item +// The stabilities that can be assigned to a Software Release. +type SoftwareReleasesGetResponse_stability int + +const ( + GENERAL_AVAILABILITY_SOFTWARERELEASESGETRESPONSE_STABILITY SoftwareReleasesGetResponse_stability = iota +) + +func (i SoftwareReleasesGetResponse_stability) String() string { + return []string{"GENERAL_AVAILABILITY"}[i] +} +func ParseSoftwareReleasesGetResponse_stability(v string) (any, error) { + result := GENERAL_AVAILABILITY_SOFTWARERELEASESGETRESPONSE_STABILITY + switch v { + case "GENERAL_AVAILABILITY": + result = GENERAL_AVAILABILITY_SOFTWARERELEASESGETRESPONSE_STABILITY + default: + return nil, nil + } + return &result, nil +} +func SerializeSoftwareReleasesGetResponse_stability(values []SoftwareReleasesGetResponse_stability) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i SoftwareReleasesGetResponse_stability) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/software_releases_get_response_escaped_usage.go b/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/software_releases_get_response_escaped_usage.go new file mode 100644 index 0000000..aaf55cd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/item/software_releases_get_response_escaped_usage.go @@ -0,0 +1,37 @@ +package item +// An indicator of how a Software Release should be used:- `INSTALL`: Used for an initial install, such as the OVA for a virtual machine.- `UPGRADE`: Upgrades an existing release.- `UNIVERSAL`: Acts as both an install and upgrade media. +type SoftwareReleasesGetResponse_usage int + +const ( + INSTALL_SOFTWARERELEASESGETRESPONSE_USAGE SoftwareReleasesGetResponse_usage = iota + UPGRADE_SOFTWARERELEASESGETRESPONSE_USAGE + UNIVERSAL_SOFTWARERELEASESGETRESPONSE_USAGE +) + +func (i SoftwareReleasesGetResponse_usage) String() string { + return []string{"INSTALL", "UPGRADE", "UNIVERSAL"}[i] +} +func ParseSoftwareReleasesGetResponse_usage(v string) (any, error) { + result := INSTALL_SOFTWARERELEASESGETRESPONSE_USAGE + switch v { + case "INSTALL": + result = INSTALL_SOFTWARERELEASESGETRESPONSE_USAGE + case "UPGRADE": + result = UPGRADE_SOFTWARERELEASESGETRESPONSE_USAGE + case "UNIVERSAL": + result = UNIVERSAL_SOFTWARERELEASESGETRESPONSE_USAGE + default: + return nil, nil + } + return &result, nil +} +func SerializeSoftwareReleasesGetResponse_usage(values []SoftwareReleasesGetResponse_usage) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i SoftwareReleasesGetResponse_usage) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/software_releases_get_response_escaped_items_escaped_stability.go b/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/software_releases_get_response_escaped_items_escaped_stability.go new file mode 100644 index 0000000..e592483 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/software_releases_get_response_escaped_items_escaped_stability.go @@ -0,0 +1,31 @@ +package softwarereleases +// The stabilities that can be assigned to a Software Release. +type SoftwareReleasesGetResponse_items_stability int + +const ( + GENERAL_AVAILABILITY_SOFTWARERELEASESGETRESPONSE_ITEMS_STABILITY SoftwareReleasesGetResponse_items_stability = iota +) + +func (i SoftwareReleasesGetResponse_items_stability) String() string { + return []string{"GENERAL_AVAILABILITY"}[i] +} +func ParseSoftwareReleasesGetResponse_items_stability(v string) (any, error) { + result := GENERAL_AVAILABILITY_SOFTWARERELEASESGETRESPONSE_ITEMS_STABILITY + switch v { + case "GENERAL_AVAILABILITY": + result = GENERAL_AVAILABILITY_SOFTWARERELEASESGETRESPONSE_ITEMS_STABILITY + default: + return nil, nil + } + return &result, nil +} +func SerializeSoftwareReleasesGetResponse_items_stability(values []SoftwareReleasesGetResponse_items_stability) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i SoftwareReleasesGetResponse_items_stability) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/software_releases_get_response_escaped_items_escaped_usage.go b/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/software_releases_get_response_escaped_items_escaped_usage.go new file mode 100644 index 0000000..fe8be51 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/softwarereleases/software_releases_get_response_escaped_items_escaped_usage.go @@ -0,0 +1,37 @@ +package softwarereleases +// An indicator of how a Software Release should be used:- `INSTALL`: Used for an initial install, such as the OVA for a virtual machine.- `UPGRADE`: Upgrades an existing release.- `UNIVERSAL`: Acts as both an install and upgrade media. +type SoftwareReleasesGetResponse_items_usage int + +const ( + INSTALL_SOFTWARERELEASESGETRESPONSE_ITEMS_USAGE SoftwareReleasesGetResponse_items_usage = iota + UPGRADE_SOFTWARERELEASESGETRESPONSE_ITEMS_USAGE + UNIVERSAL_SOFTWARERELEASESGETRESPONSE_ITEMS_USAGE +) + +func (i SoftwareReleasesGetResponse_items_usage) String() string { + return []string{"INSTALL", "UPGRADE", "UNIVERSAL"}[i] +} +func ParseSoftwareReleasesGetResponse_items_usage(v string) (any, error) { + result := INSTALL_SOFTWARERELEASESGETRESPONSE_ITEMS_USAGE + switch v { + case "INSTALL": + result = INSTALL_SOFTWARERELEASESGETRESPONSE_ITEMS_USAGE + case "UPGRADE": + result = UPGRADE_SOFTWARERELEASESGETRESPONSE_ITEMS_USAGE + case "UNIVERSAL": + result = UNIVERSAL_SOFTWARERELEASESGETRESPONSE_ITEMS_USAGE + default: + return nil, nil + } + return &result, nil +} +func SerializeSoftwareReleasesGetResponse_items_usage(values []SoftwareReleasesGetResponse_items_usage) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i SoftwareReleasesGetResponse_items_usage) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/softwareupgrades/software_upgrades_get_response_escaped_items_escaped_software_release_escaped_stability.go b/internal/sdk/dataservices/dataservices/v1beta1/softwareupgrades/software_upgrades_get_response_escaped_items_escaped_software_release_escaped_stability.go new file mode 100644 index 0000000..80d48ec --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/softwareupgrades/software_upgrades_get_response_escaped_items_escaped_software_release_escaped_stability.go @@ -0,0 +1,31 @@ +package softwareupgrades +// The stabilities that can be assigned to a Software Release. +type SoftwareUpgradesGetResponse_items_softwareRelease_stability int + +const ( + GENERAL_AVAILABILITY_SOFTWAREUPGRADESGETRESPONSE_ITEMS_SOFTWARERELEASE_STABILITY SoftwareUpgradesGetResponse_items_softwareRelease_stability = iota +) + +func (i SoftwareUpgradesGetResponse_items_softwareRelease_stability) String() string { + return []string{"GENERAL_AVAILABILITY"}[i] +} +func ParseSoftwareUpgradesGetResponse_items_softwareRelease_stability(v string) (any, error) { + result := GENERAL_AVAILABILITY_SOFTWAREUPGRADESGETRESPONSE_ITEMS_SOFTWARERELEASE_STABILITY + switch v { + case "GENERAL_AVAILABILITY": + result = GENERAL_AVAILABILITY_SOFTWAREUPGRADESGETRESPONSE_ITEMS_SOFTWARERELEASE_STABILITY + default: + return nil, nil + } + return &result, nil +} +func SerializeSoftwareUpgradesGetResponse_items_softwareRelease_stability(values []SoftwareUpgradesGetResponse_items_softwareRelease_stability) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i SoftwareUpgradesGetResponse_items_softwareRelease_stability) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/softwareupgrades/software_upgrades_get_response_escaped_items_escaped_software_release_escaped_usage.go b/internal/sdk/dataservices/dataservices/v1beta1/softwareupgrades/software_upgrades_get_response_escaped_items_escaped_software_release_escaped_usage.go new file mode 100644 index 0000000..e722bc6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/softwareupgrades/software_upgrades_get_response_escaped_items_escaped_software_release_escaped_usage.go @@ -0,0 +1,37 @@ +package softwareupgrades +// An indicator of how a Software Release should be used:- `INSTALL`: Used for an initial install, such as the OVA for a virtual machine.- `UPGRADE`: Upgrades an existing release.- `UNIVERSAL`: Acts as both an install and upgrade media. +type SoftwareUpgradesGetResponse_items_softwareRelease_usage int + +const ( + INSTALL_SOFTWAREUPGRADESGETRESPONSE_ITEMS_SOFTWARERELEASE_USAGE SoftwareUpgradesGetResponse_items_softwareRelease_usage = iota + UPGRADE_SOFTWAREUPGRADESGETRESPONSE_ITEMS_SOFTWARERELEASE_USAGE + UNIVERSAL_SOFTWAREUPGRADESGETRESPONSE_ITEMS_SOFTWARERELEASE_USAGE +) + +func (i SoftwareUpgradesGetResponse_items_softwareRelease_usage) String() string { + return []string{"INSTALL", "UPGRADE", "UNIVERSAL"}[i] +} +func ParseSoftwareUpgradesGetResponse_items_softwareRelease_usage(v string) (any, error) { + result := INSTALL_SOFTWAREUPGRADESGETRESPONSE_ITEMS_SOFTWARERELEASE_USAGE + switch v { + case "INSTALL": + result = INSTALL_SOFTWAREUPGRADESGETRESPONSE_ITEMS_SOFTWARERELEASE_USAGE + case "UPGRADE": + result = UPGRADE_SOFTWAREUPGRADESGETRESPONSE_ITEMS_SOFTWARERELEASE_USAGE + case "UNIVERSAL": + result = UNIVERSAL_SOFTWAREUPGRADESGETRESPONSE_ITEMS_SOFTWARERELEASE_USAGE + default: + return nil, nil + } + return &result, nil +} +func SerializeSoftwareUpgradesGetResponse_items_softwareRelease_usage(values []SoftwareUpgradesGetResponse_items_softwareRelease_usage) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i SoftwareUpgradesGetResponse_items_softwareRelease_usage) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/storagelocations/item/storage_locations_get_response_escaped_cloud_service_provider.go b/internal/sdk/dataservices/dataservices/v1beta1/storagelocations/item/storage_locations_get_response_escaped_cloud_service_provider.go new file mode 100644 index 0000000..978815a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/storagelocations/item/storage_locations_get_response_escaped_cloud_service_provider.go @@ -0,0 +1,37 @@ +package item +// The Cloud Service Provider (CSP) of the location. +type StorageLocationsGetResponse_cloudServiceProvider int + +const ( + AWS_STORAGELOCATIONSGETRESPONSE_CLOUDSERVICEPROVIDER StorageLocationsGetResponse_cloudServiceProvider = iota + AZURE_STORAGELOCATIONSGETRESPONSE_CLOUDSERVICEPROVIDER + GCP_STORAGELOCATIONSGETRESPONSE_CLOUDSERVICEPROVIDER +) + +func (i StorageLocationsGetResponse_cloudServiceProvider) String() string { + return []string{"AWS", "AZURE", "GCP"}[i] +} +func ParseStorageLocationsGetResponse_cloudServiceProvider(v string) (any, error) { + result := AWS_STORAGELOCATIONSGETRESPONSE_CLOUDSERVICEPROVIDER + switch v { + case "AWS": + result = AWS_STORAGELOCATIONSGETRESPONSE_CLOUDSERVICEPROVIDER + case "AZURE": + result = AZURE_STORAGELOCATIONSGETRESPONSE_CLOUDSERVICEPROVIDER + case "GCP": + result = GCP_STORAGELOCATIONSGETRESPONSE_CLOUDSERVICEPROVIDER + default: + return nil, nil + } + return &result, nil +} +func SerializeStorageLocationsGetResponse_cloudServiceProvider(values []StorageLocationsGetResponse_cloudServiceProvider) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i StorageLocationsGetResponse_cloudServiceProvider) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/storagelocations/storage_locations_get_response_escaped_items_escaped_cloud_service_provider.go b/internal/sdk/dataservices/dataservices/v1beta1/storagelocations/storage_locations_get_response_escaped_items_escaped_cloud_service_provider.go new file mode 100644 index 0000000..1c820cd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/storagelocations/storage_locations_get_response_escaped_items_escaped_cloud_service_provider.go @@ -0,0 +1,37 @@ +package storagelocations +// The Cloud Service Provider (CSP) of the location. +type StorageLocationsGetResponse_items_cloudServiceProvider int + +const ( + AWS_STORAGELOCATIONSGETRESPONSE_ITEMS_CLOUDSERVICEPROVIDER StorageLocationsGetResponse_items_cloudServiceProvider = iota + AZURE_STORAGELOCATIONSGETRESPONSE_ITEMS_CLOUDSERVICEPROVIDER + GCP_STORAGELOCATIONSGETRESPONSE_ITEMS_CLOUDSERVICEPROVIDER +) + +func (i StorageLocationsGetResponse_items_cloudServiceProvider) String() string { + return []string{"AWS", "AZURE", "GCP"}[i] +} +func ParseStorageLocationsGetResponse_items_cloudServiceProvider(v string) (any, error) { + result := AWS_STORAGELOCATIONSGETRESPONSE_ITEMS_CLOUDSERVICEPROVIDER + switch v { + case "AWS": + result = AWS_STORAGELOCATIONSGETRESPONSE_ITEMS_CLOUDSERVICEPROVIDER + case "AZURE": + result = AZURE_STORAGELOCATIONSGETRESPONSE_ITEMS_CLOUDSERVICEPROVIDER + case "GCP": + result = GCP_STORAGELOCATIONSGETRESPONSE_ITEMS_CLOUDSERVICEPROVIDER + default: + return nil, nil + } + return &result, nil +} +func SerializeStorageLocationsGetResponse_items_cloudServiceProvider(values []StorageLocationsGetResponse_items_cloudServiceProvider) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i StorageLocationsGetResponse_items_cloudServiceProvider) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/tags/get_sort_query_parameter_type.go b/internal/sdk/dataservices/dataservices/v1beta1/tags/get_sort_query_parameter_type.go new file mode 100644 index 0000000..619decd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/tags/get_sort_query_parameter_type.go @@ -0,0 +1,33 @@ +package tags +type GetSortQueryParameterType int + +const ( + ASC_GETSORTQUERYPARAMETERTYPE GetSortQueryParameterType = iota + DESC_GETSORTQUERYPARAMETERTYPE +) + +func (i GetSortQueryParameterType) String() string { + return []string{"asc", "desc"}[i] +} +func ParseGetSortQueryParameterType(v string) (any, error) { + result := ASC_GETSORTQUERYPARAMETERTYPE + switch v { + case "asc": + result = ASC_GETSORTQUERYPARAMETERTYPE + case "desc": + result = DESC_GETSORTQUERYPARAMETERTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeGetSortQueryParameterType(values []GetSortQueryParameterType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i GetSortQueryParameterType) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/36f56959e861812059fd607cf767acafc19257a338b0e222f1400ff9bd1157d3.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/36f56959e861812059fd607cf767acafc19257a338b0e222f1400ff9bd1157d3.go new file mode 100644 index 0000000..51c9a45 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/36f56959e861812059fd607cf767acafc19257a338b0e222f1400ff9bd1157d3.go @@ -0,0 +1,31 @@ +package webhooks +// An enum indicating the type of authentication to be used when publishing events to the destination endpoint.This allows the endpoint to authenticate that HPE DSCC is the caller.- `BEARER_TOKEN`: A customer provided token that is added to the `Authorization` HTTP header with the bearer authentication scheme. +type WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_type int + +const ( + BEARER_TOKEN_WEBHOOKSGETRESPONSE_ITEMS_DESTINATIONS_CLOUDEVENTENDPOINT_AUTHENTICATION_TYPE WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_type = iota +) + +func (i WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_type) String() string { + return []string{"BEARER_TOKEN"}[i] +} +func ParseWebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_type(v string) (any, error) { + result := BEARER_TOKEN_WEBHOOKSGETRESPONSE_ITEMS_DESTINATIONS_CLOUDEVENTENDPOINT_AUTHENTICATION_TYPE + switch v { + case "BEARER_TOKEN": + result = BEARER_TOKEN_WEBHOOKSGETRESPONSE_ITEMS_DESTINATIONS_CLOUDEVENTENDPOINT_AUTHENTICATION_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_type(values []WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksGetResponse_items_destinations_cloudEventEndpoint_authentication_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/456fbb568c90b413a080cdbae84fc0171f6c574fdf3409eed1097b8fd472f4dd.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/456fbb568c90b413a080cdbae84fc0171f6c574fdf3409eed1097b8fd472f4dd.go new file mode 100644 index 0000000..727be51 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/456fbb568c90b413a080cdbae84fc0171f6c574fdf3409eed1097b8fd472f4dd.go @@ -0,0 +1,31 @@ +package webhooks +// An enum indicating the type of authentication to be used when publishing events to the destination endpoint.This allows the endpoint to authenticate that HPE DSCC is the caller.- `BEARER_TOKEN`: A customer provided token that is added to the `Authorization` HTTP header with the bearer authentication scheme. +type WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_type int + +const ( + BEARER_TOKEN_WEBHOOKSPOSTRESPONSE_DESTINATIONS_CLOUDEVENTENDPOINT_AUTHENTICATION_TYPE WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_type = iota +) + +func (i WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_type) String() string { + return []string{"BEARER_TOKEN"}[i] +} +func ParseWebhooksPostResponse_destinations_cloudEventEndpoint_authentication_type(v string) (any, error) { + result := BEARER_TOKEN_WEBHOOKSPOSTRESPONSE_DESTINATIONS_CLOUDEVENTENDPOINT_AUTHENTICATION_TYPE + switch v { + case "BEARER_TOKEN": + result = BEARER_TOKEN_WEBHOOKSPOSTRESPONSE_DESTINATIONS_CLOUDEVENTENDPOINT_AUTHENTICATION_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksPostResponse_destinations_cloudEventEndpoint_authentication_type(values []WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksPostResponse_destinations_cloudEventEndpoint_authentication_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/991d9d217f365e4808038e24ad58b242e3bb062dbfac940602eaceb52992ad83.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/991d9d217f365e4808038e24ad58b242e3bb062dbfac940602eaceb52992ad83.go new file mode 100644 index 0000000..ccace16 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/991d9d217f365e4808038e24ad58b242e3bb062dbfac940602eaceb52992ad83.go @@ -0,0 +1,31 @@ +package item +// An enum indicating the type of authentication to be used when publishing events to the destination endpoint.This allows the endpoint to authenticate that HPE DSCC is the caller.- `BEARER_TOKEN`: A customer provided token that is added to the `Authorization` HTTP header with the bearer authentication scheme. +type WebhooksGetResponse_destinations_cloudEventEndpoint_authentication_type int + +const ( + BEARER_TOKEN_WEBHOOKSGETRESPONSE_DESTINATIONS_CLOUDEVENTENDPOINT_AUTHENTICATION_TYPE WebhooksGetResponse_destinations_cloudEventEndpoint_authentication_type = iota +) + +func (i WebhooksGetResponse_destinations_cloudEventEndpoint_authentication_type) String() string { + return []string{"BEARER_TOKEN"}[i] +} +func ParseWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_type(v string) (any, error) { + result := BEARER_TOKEN_WEBHOOKSGETRESPONSE_DESTINATIONS_CLOUDEVENTENDPOINT_AUTHENTICATION_TYPE + switch v { + case "BEARER_TOKEN": + result = BEARER_TOKEN_WEBHOOKSGETRESPONSE_DESTINATIONS_CLOUDEVENTENDPOINT_AUTHENTICATION_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksGetResponse_destinations_cloudEventEndpoint_authentication_type(values []WebhooksGetResponse_destinations_cloudEventEndpoint_authentication_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksGetResponse_destinations_cloudEventEndpoint_authentication_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/b7d75a2fbcee393aca0a6c55546838255c89956e820dd3ba84b39235a90df314.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/b7d75a2fbcee393aca0a6c55546838255c89956e820dd3ba84b39235a90df314.go new file mode 100644 index 0000000..730fef6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/b7d75a2fbcee393aca0a6c55546838255c89956e820dd3ba84b39235a90df314.go @@ -0,0 +1,31 @@ +package item +// An enum indicating the type of authentication to be used when publishing events to the destination endpoint.This allows the endpoint to authenticate that HPE DSCC is the caller.- `BEARER_TOKEN`: A customer provided token that is added to the `Authorization` HTTP header with the bearer authentication scheme. +type WebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_type int + +const ( + BEARER_TOKEN_WEBHOOKSPATCHRESPONSE_DESTINATIONS_CLOUDEVENTENDPOINT_AUTHENTICATION_TYPE WebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_type = iota +) + +func (i WebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_type) String() string { + return []string{"BEARER_TOKEN"}[i] +} +func ParseWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_type(v string) (any, error) { + result := BEARER_TOKEN_WEBHOOKSPATCHRESPONSE_DESTINATIONS_CLOUDEVENTENDPOINT_AUTHENTICATION_TYPE + switch v { + case "BEARER_TOKEN": + result = BEARER_TOKEN_WEBHOOKSPATCHRESPONSE_DESTINATIONS_CLOUDEVENTENDPOINT_AUTHENTICATION_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_type(values []WebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksPatchResponse_destinations_cloudEventEndpoint_authentication_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_authorization_escaped_type.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_authorization_escaped_type.go new file mode 100644 index 0000000..5b451ce --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_authorization_escaped_type.go @@ -0,0 +1,31 @@ +package item +// An enum indicating the type of identity that is used to authorize published events.The provided identity must have permission to the events.- `CLIENT_CREDENTIALS`: A GLCP client credential, *client id* and *client secret* pair. +type WebhooksGetResponse_authorization_type int + +const ( + CLIENT_CREDENTIALS_WEBHOOKSGETRESPONSE_AUTHORIZATION_TYPE WebhooksGetResponse_authorization_type = iota +) + +func (i WebhooksGetResponse_authorization_type) String() string { + return []string{"CLIENT_CREDENTIALS"}[i] +} +func ParseWebhooksGetResponse_authorization_type(v string) (any, error) { + result := CLIENT_CREDENTIALS_WEBHOOKSGETRESPONSE_AUTHORIZATION_TYPE + switch v { + case "CLIENT_CREDENTIALS": + result = CLIENT_CREDENTIALS_WEBHOOKSGETRESPONSE_AUTHORIZATION_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksGetResponse_authorization_type(values []WebhooksGetResponse_authorization_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksGetResponse_authorization_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_destinations_escaped_type.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_destinations_escaped_type.go new file mode 100644 index 0000000..3e0a7fe --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_destinations_escaped_type.go @@ -0,0 +1,31 @@ +package item +// An enum indicating the type of endpoint that events are published to.- `CLOUD_EVENT`: A customer controlled HTTPS endpoint to which DSCC cloud events are posted. +type WebhooksGetResponse_destinations_type int + +const ( + CLOUD_EVENT_WEBHOOKSGETRESPONSE_DESTINATIONS_TYPE WebhooksGetResponse_destinations_type = iota +) + +func (i WebhooksGetResponse_destinations_type) String() string { + return []string{"CLOUD_EVENT"}[i] +} +func ParseWebhooksGetResponse_destinations_type(v string) (any, error) { + result := CLOUD_EVENT_WEBHOOKSGETRESPONSE_DESTINATIONS_TYPE + switch v { + case "CLOUD_EVENT": + result = CLOUD_EVENT_WEBHOOKSGETRESPONSE_DESTINATIONS_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksGetResponse_destinations_type(values []WebhooksGetResponse_destinations_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksGetResponse_destinations_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_status.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_status.go new file mode 100644 index 0000000..96f2139 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_status.go @@ -0,0 +1,40 @@ +package item +// An enum indicating current webhook event delivery status- `UNKNOWN`: There have been no events to deliver yet, so delivery status cannot be determined- `OK`: Events are being successfully delivered to the webhook destination endpoint- `WARNING`: There was a recent problem delivering events to the webhook destination endpoint- `ERROR`: There is a current problem delivering events to the webhook destination endpoint +type WebhooksGetResponse_status int + +const ( + UNKNOWN_WEBHOOKSGETRESPONSE_STATUS WebhooksGetResponse_status = iota + OK_WEBHOOKSGETRESPONSE_STATUS + WARNING_WEBHOOKSGETRESPONSE_STATUS + ERROR_WEBHOOKSGETRESPONSE_STATUS +) + +func (i WebhooksGetResponse_status) String() string { + return []string{"UNKNOWN", "OK", "WARNING", "ERROR"}[i] +} +func ParseWebhooksGetResponse_status(v string) (any, error) { + result := UNKNOWN_WEBHOOKSGETRESPONSE_STATUS + switch v { + case "UNKNOWN": + result = UNKNOWN_WEBHOOKSGETRESPONSE_STATUS + case "OK": + result = OK_WEBHOOKSGETRESPONSE_STATUS + case "WARNING": + result = WARNING_WEBHOOKSGETRESPONSE_STATUS + case "ERROR": + result = ERROR_WEBHOOKSGETRESPONSE_STATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksGetResponse_status(values []WebhooksGetResponse_status) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksGetResponse_status) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_subscriptions_escaped_type.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_subscriptions_escaped_type.go new file mode 100644 index 0000000..5a23ed3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_get_response_escaped_subscriptions_escaped_type.go @@ -0,0 +1,31 @@ +package item +// An enum indicating the subscription type- `RESOURCE_TYPE`: Matches all events for a resource type +type WebhooksGetResponse_subscriptions_type int + +const ( + RESOURCE_TYPE_WEBHOOKSGETRESPONSE_SUBSCRIPTIONS_TYPE WebhooksGetResponse_subscriptions_type = iota +) + +func (i WebhooksGetResponse_subscriptions_type) String() string { + return []string{"RESOURCE_TYPE"}[i] +} +func ParseWebhooksGetResponse_subscriptions_type(v string) (any, error) { + result := RESOURCE_TYPE_WEBHOOKSGETRESPONSE_SUBSCRIPTIONS_TYPE + switch v { + case "RESOURCE_TYPE": + result = RESOURCE_TYPE_WEBHOOKSGETRESPONSE_SUBSCRIPTIONS_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksGetResponse_subscriptions_type(values []WebhooksGetResponse_subscriptions_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksGetResponse_subscriptions_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_authorization_escaped_type.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_authorization_escaped_type.go new file mode 100644 index 0000000..4b4ee98 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_authorization_escaped_type.go @@ -0,0 +1,31 @@ +package item +// An enum indicating the type of identity that is used to authorize published events.The provided identity must have permission to the events.- `CLIENT_CREDENTIALS`: A GLCP client credential, *client id* and *client secret* pair. +type WebhooksPatchResponse_authorization_type int + +const ( + CLIENT_CREDENTIALS_WEBHOOKSPATCHRESPONSE_AUTHORIZATION_TYPE WebhooksPatchResponse_authorization_type = iota +) + +func (i WebhooksPatchResponse_authorization_type) String() string { + return []string{"CLIENT_CREDENTIALS"}[i] +} +func ParseWebhooksPatchResponse_authorization_type(v string) (any, error) { + result := CLIENT_CREDENTIALS_WEBHOOKSPATCHRESPONSE_AUTHORIZATION_TYPE + switch v { + case "CLIENT_CREDENTIALS": + result = CLIENT_CREDENTIALS_WEBHOOKSPATCHRESPONSE_AUTHORIZATION_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksPatchResponse_authorization_type(values []WebhooksPatchResponse_authorization_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksPatchResponse_authorization_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_destinations_escaped_type.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_destinations_escaped_type.go new file mode 100644 index 0000000..d67bf62 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_destinations_escaped_type.go @@ -0,0 +1,31 @@ +package item +// An enum indicating the type of endpoint that events are published to.- `CLOUD_EVENT`: A customer controlled HTTPS endpoint to which DSCC cloud events are posted. +type WebhooksPatchResponse_destinations_type int + +const ( + CLOUD_EVENT_WEBHOOKSPATCHRESPONSE_DESTINATIONS_TYPE WebhooksPatchResponse_destinations_type = iota +) + +func (i WebhooksPatchResponse_destinations_type) String() string { + return []string{"CLOUD_EVENT"}[i] +} +func ParseWebhooksPatchResponse_destinations_type(v string) (any, error) { + result := CLOUD_EVENT_WEBHOOKSPATCHRESPONSE_DESTINATIONS_TYPE + switch v { + case "CLOUD_EVENT": + result = CLOUD_EVENT_WEBHOOKSPATCHRESPONSE_DESTINATIONS_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksPatchResponse_destinations_type(values []WebhooksPatchResponse_destinations_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksPatchResponse_destinations_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_status.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_status.go new file mode 100644 index 0000000..a822079 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_status.go @@ -0,0 +1,40 @@ +package item +// An enum indicating current webhook event delivery status- `UNKNOWN`: There have been no events to deliver yet, so delivery status cannot be determined- `OK`: Events are being successfully delivered to the webhook destination endpoint- `WARNING`: There was a recent problem delivering events to the webhook destination endpoint- `ERROR`: There is a current problem delivering events to the webhook destination endpoint +type WebhooksPatchResponse_status int + +const ( + UNKNOWN_WEBHOOKSPATCHRESPONSE_STATUS WebhooksPatchResponse_status = iota + OK_WEBHOOKSPATCHRESPONSE_STATUS + WARNING_WEBHOOKSPATCHRESPONSE_STATUS + ERROR_WEBHOOKSPATCHRESPONSE_STATUS +) + +func (i WebhooksPatchResponse_status) String() string { + return []string{"UNKNOWN", "OK", "WARNING", "ERROR"}[i] +} +func ParseWebhooksPatchResponse_status(v string) (any, error) { + result := UNKNOWN_WEBHOOKSPATCHRESPONSE_STATUS + switch v { + case "UNKNOWN": + result = UNKNOWN_WEBHOOKSPATCHRESPONSE_STATUS + case "OK": + result = OK_WEBHOOKSPATCHRESPONSE_STATUS + case "WARNING": + result = WARNING_WEBHOOKSPATCHRESPONSE_STATUS + case "ERROR": + result = ERROR_WEBHOOKSPATCHRESPONSE_STATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksPatchResponse_status(values []WebhooksPatchResponse_status) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksPatchResponse_status) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_subscriptions_escaped_type.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_subscriptions_escaped_type.go new file mode 100644 index 0000000..733b30f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/item/webhooks_patch_response_escaped_subscriptions_escaped_type.go @@ -0,0 +1,31 @@ +package item +// An enum indicating the subscription type- `RESOURCE_TYPE`: Matches all events for a resource type +type WebhooksPatchResponse_subscriptions_type int + +const ( + RESOURCE_TYPE_WEBHOOKSPATCHRESPONSE_SUBSCRIPTIONS_TYPE WebhooksPatchResponse_subscriptions_type = iota +) + +func (i WebhooksPatchResponse_subscriptions_type) String() string { + return []string{"RESOURCE_TYPE"}[i] +} +func ParseWebhooksPatchResponse_subscriptions_type(v string) (any, error) { + result := RESOURCE_TYPE_WEBHOOKSPATCHRESPONSE_SUBSCRIPTIONS_TYPE + switch v { + case "RESOURCE_TYPE": + result = RESOURCE_TYPE_WEBHOOKSPATCHRESPONSE_SUBSCRIPTIONS_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksPatchResponse_subscriptions_type(values []WebhooksPatchResponse_subscriptions_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksPatchResponse_subscriptions_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/testconnection/315d6aefe90aa79ec5419a52587f55f6d7479365e0a9788037ccf24fcf4953ce.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/testconnection/315d6aefe90aa79ec5419a52587f55f6d7479365e0a9788037ccf24fcf4953ce.go new file mode 100644 index 0000000..947a041 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/testconnection/315d6aefe90aa79ec5419a52587f55f6d7479365e0a9788037ccf24fcf4953ce.go @@ -0,0 +1,31 @@ +package testconnection +// An enum indicating the type of authentication to be used when publishing events to the destination endpoint.This allows the endpoint to authenticate that HPE DSCC is the caller.- `BEARER_TOKEN`: A customer provided token that is added to the `Authorization` HTTP header with the bearer authentication scheme. +type TestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_type int + +const ( + BEARER_TOKEN_TESTCONNECTIONPOSTREQUESTBODY_DESTINATION_CLOUDEVENTENDPOINT_AUTHENTICATION_TYPE TestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_type = iota +) + +func (i TestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_type) String() string { + return []string{"BEARER_TOKEN"}[i] +} +func ParseTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_type(v string) (any, error) { + result := BEARER_TOKEN_TESTCONNECTIONPOSTREQUESTBODY_DESTINATION_CLOUDEVENTENDPOINT_AUTHENTICATION_TYPE + switch v { + case "BEARER_TOKEN": + result = BEARER_TOKEN_TESTCONNECTIONPOSTREQUESTBODY_DESTINATION_CLOUDEVENTENDPOINT_AUTHENTICATION_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeTestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_type(values []TestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i TestConnectionPostRequestBody_destination_cloudEventEndpoint_authentication_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/testconnection/test_connection_post_request_body_escaped_destination_escaped_type.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/testconnection/test_connection_post_request_body_escaped_destination_escaped_type.go new file mode 100644 index 0000000..f943fcc --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/testconnection/test_connection_post_request_body_escaped_destination_escaped_type.go @@ -0,0 +1,31 @@ +package testconnection +// An enum indicating the type of endpoint that events are published to.- `CLOUD_EVENT`: A customer controlled HTTPS endpoint to which DSCC cloud events are posted. +type TestConnectionPostRequestBody_destination_type int + +const ( + CLOUD_EVENT_TESTCONNECTIONPOSTREQUESTBODY_DESTINATION_TYPE TestConnectionPostRequestBody_destination_type = iota +) + +func (i TestConnectionPostRequestBody_destination_type) String() string { + return []string{"CLOUD_EVENT"}[i] +} +func ParseTestConnectionPostRequestBody_destination_type(v string) (any, error) { + result := CLOUD_EVENT_TESTCONNECTIONPOSTREQUESTBODY_DESTINATION_TYPE + switch v { + case "CLOUD_EVENT": + result = CLOUD_EVENT_TESTCONNECTIONPOSTREQUESTBODY_DESTINATION_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeTestConnectionPostRequestBody_destination_type(values []TestConnectionPostRequestBody_destination_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i TestConnectionPostRequestBody_destination_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_authorization_escaped_type.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_authorization_escaped_type.go new file mode 100644 index 0000000..03a8676 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_authorization_escaped_type.go @@ -0,0 +1,31 @@ +package webhooks +// An enum indicating the type of identity that is used to authorize published events.The provided identity must have permission to the events.- `CLIENT_CREDENTIALS`: A GLCP client credential, *client id* and *client secret* pair. +type WebhooksGetResponse_items_authorization_type int + +const ( + CLIENT_CREDENTIALS_WEBHOOKSGETRESPONSE_ITEMS_AUTHORIZATION_TYPE WebhooksGetResponse_items_authorization_type = iota +) + +func (i WebhooksGetResponse_items_authorization_type) String() string { + return []string{"CLIENT_CREDENTIALS"}[i] +} +func ParseWebhooksGetResponse_items_authorization_type(v string) (any, error) { + result := CLIENT_CREDENTIALS_WEBHOOKSGETRESPONSE_ITEMS_AUTHORIZATION_TYPE + switch v { + case "CLIENT_CREDENTIALS": + result = CLIENT_CREDENTIALS_WEBHOOKSGETRESPONSE_ITEMS_AUTHORIZATION_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksGetResponse_items_authorization_type(values []WebhooksGetResponse_items_authorization_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksGetResponse_items_authorization_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_destinations_escaped_type.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_destinations_escaped_type.go new file mode 100644 index 0000000..0cb8049 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_destinations_escaped_type.go @@ -0,0 +1,31 @@ +package webhooks +// An enum indicating the type of endpoint that events are published to.- `CLOUD_EVENT`: A customer controlled HTTPS endpoint to which DSCC cloud events are posted. +type WebhooksGetResponse_items_destinations_type int + +const ( + CLOUD_EVENT_WEBHOOKSGETRESPONSE_ITEMS_DESTINATIONS_TYPE WebhooksGetResponse_items_destinations_type = iota +) + +func (i WebhooksGetResponse_items_destinations_type) String() string { + return []string{"CLOUD_EVENT"}[i] +} +func ParseWebhooksGetResponse_items_destinations_type(v string) (any, error) { + result := CLOUD_EVENT_WEBHOOKSGETRESPONSE_ITEMS_DESTINATIONS_TYPE + switch v { + case "CLOUD_EVENT": + result = CLOUD_EVENT_WEBHOOKSGETRESPONSE_ITEMS_DESTINATIONS_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksGetResponse_items_destinations_type(values []WebhooksGetResponse_items_destinations_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksGetResponse_items_destinations_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_status.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_status.go new file mode 100644 index 0000000..e4b3a6f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_status.go @@ -0,0 +1,40 @@ +package webhooks +// An enum indicating current webhook event delivery status- `UNKNOWN`: There have been no events to deliver yet, so delivery status cannot be determined- `OK`: Events are being successfully delivered to the webhook destination endpoint- `WARNING`: There was a recent problem delivering events to the webhook destination endpoint- `ERROR`: There is a current problem delivering events to the webhook destination endpoint +type WebhooksGetResponse_items_status int + +const ( + UNKNOWN_WEBHOOKSGETRESPONSE_ITEMS_STATUS WebhooksGetResponse_items_status = iota + OK_WEBHOOKSGETRESPONSE_ITEMS_STATUS + WARNING_WEBHOOKSGETRESPONSE_ITEMS_STATUS + ERROR_WEBHOOKSGETRESPONSE_ITEMS_STATUS +) + +func (i WebhooksGetResponse_items_status) String() string { + return []string{"UNKNOWN", "OK", "WARNING", "ERROR"}[i] +} +func ParseWebhooksGetResponse_items_status(v string) (any, error) { + result := UNKNOWN_WEBHOOKSGETRESPONSE_ITEMS_STATUS + switch v { + case "UNKNOWN": + result = UNKNOWN_WEBHOOKSGETRESPONSE_ITEMS_STATUS + case "OK": + result = OK_WEBHOOKSGETRESPONSE_ITEMS_STATUS + case "WARNING": + result = WARNING_WEBHOOKSGETRESPONSE_ITEMS_STATUS + case "ERROR": + result = ERROR_WEBHOOKSGETRESPONSE_ITEMS_STATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksGetResponse_items_status(values []WebhooksGetResponse_items_status) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksGetResponse_items_status) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_subscriptions_escaped_type.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_subscriptions_escaped_type.go new file mode 100644 index 0000000..bd36090 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_get_response_escaped_items_escaped_subscriptions_escaped_type.go @@ -0,0 +1,31 @@ +package webhooks +// An enum indicating the subscription type- `RESOURCE_TYPE`: Matches all events for a resource type +type WebhooksGetResponse_items_subscriptions_type int + +const ( + RESOURCE_TYPE_WEBHOOKSGETRESPONSE_ITEMS_SUBSCRIPTIONS_TYPE WebhooksGetResponse_items_subscriptions_type = iota +) + +func (i WebhooksGetResponse_items_subscriptions_type) String() string { + return []string{"RESOURCE_TYPE"}[i] +} +func ParseWebhooksGetResponse_items_subscriptions_type(v string) (any, error) { + result := RESOURCE_TYPE_WEBHOOKSGETRESPONSE_ITEMS_SUBSCRIPTIONS_TYPE + switch v { + case "RESOURCE_TYPE": + result = RESOURCE_TYPE_WEBHOOKSGETRESPONSE_ITEMS_SUBSCRIPTIONS_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksGetResponse_items_subscriptions_type(values []WebhooksGetResponse_items_subscriptions_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksGetResponse_items_subscriptions_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_authorization_escaped_type.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_authorization_escaped_type.go new file mode 100644 index 0000000..13c1ca1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_authorization_escaped_type.go @@ -0,0 +1,31 @@ +package webhooks +// An enum indicating the type of identity that is used to authorize published events.The provided identity must have permission to the events.- `CLIENT_CREDENTIALS`: A GLCP client credential, *client id* and *client secret* pair. +type WebhooksPostResponse_authorization_type int + +const ( + CLIENT_CREDENTIALS_WEBHOOKSPOSTRESPONSE_AUTHORIZATION_TYPE WebhooksPostResponse_authorization_type = iota +) + +func (i WebhooksPostResponse_authorization_type) String() string { + return []string{"CLIENT_CREDENTIALS"}[i] +} +func ParseWebhooksPostResponse_authorization_type(v string) (any, error) { + result := CLIENT_CREDENTIALS_WEBHOOKSPOSTRESPONSE_AUTHORIZATION_TYPE + switch v { + case "CLIENT_CREDENTIALS": + result = CLIENT_CREDENTIALS_WEBHOOKSPOSTRESPONSE_AUTHORIZATION_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksPostResponse_authorization_type(values []WebhooksPostResponse_authorization_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksPostResponse_authorization_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_destinations_escaped_type.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_destinations_escaped_type.go new file mode 100644 index 0000000..1b4b72c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_destinations_escaped_type.go @@ -0,0 +1,31 @@ +package webhooks +// An enum indicating the type of endpoint that events are published to.- `CLOUD_EVENT`: A customer controlled HTTPS endpoint to which DSCC cloud events are posted. +type WebhooksPostResponse_destinations_type int + +const ( + CLOUD_EVENT_WEBHOOKSPOSTRESPONSE_DESTINATIONS_TYPE WebhooksPostResponse_destinations_type = iota +) + +func (i WebhooksPostResponse_destinations_type) String() string { + return []string{"CLOUD_EVENT"}[i] +} +func ParseWebhooksPostResponse_destinations_type(v string) (any, error) { + result := CLOUD_EVENT_WEBHOOKSPOSTRESPONSE_DESTINATIONS_TYPE + switch v { + case "CLOUD_EVENT": + result = CLOUD_EVENT_WEBHOOKSPOSTRESPONSE_DESTINATIONS_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksPostResponse_destinations_type(values []WebhooksPostResponse_destinations_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksPostResponse_destinations_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_status.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_status.go new file mode 100644 index 0000000..d124ae2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_status.go @@ -0,0 +1,40 @@ +package webhooks +// An enum indicating current webhook event delivery status- `UNKNOWN`: There have been no events to deliver yet, so delivery status cannot be determined- `OK`: Events are being successfully delivered to the webhook destination endpoint- `WARNING`: There was a recent problem delivering events to the webhook destination endpoint- `ERROR`: There is a current problem delivering events to the webhook destination endpoint +type WebhooksPostResponse_status int + +const ( + UNKNOWN_WEBHOOKSPOSTRESPONSE_STATUS WebhooksPostResponse_status = iota + OK_WEBHOOKSPOSTRESPONSE_STATUS + WARNING_WEBHOOKSPOSTRESPONSE_STATUS + ERROR_WEBHOOKSPOSTRESPONSE_STATUS +) + +func (i WebhooksPostResponse_status) String() string { + return []string{"UNKNOWN", "OK", "WARNING", "ERROR"}[i] +} +func ParseWebhooksPostResponse_status(v string) (any, error) { + result := UNKNOWN_WEBHOOKSPOSTRESPONSE_STATUS + switch v { + case "UNKNOWN": + result = UNKNOWN_WEBHOOKSPOSTRESPONSE_STATUS + case "OK": + result = OK_WEBHOOKSPOSTRESPONSE_STATUS + case "WARNING": + result = WARNING_WEBHOOKSPOSTRESPONSE_STATUS + case "ERROR": + result = ERROR_WEBHOOKSPOSTRESPONSE_STATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksPostResponse_status(values []WebhooksPostResponse_status) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksPostResponse_status) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_subscriptions_escaped_type.go b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_subscriptions_escaped_type.go new file mode 100644 index 0000000..58eddd2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1/webhooks/webhooks_post_response_escaped_subscriptions_escaped_type.go @@ -0,0 +1,31 @@ +package webhooks +// An enum indicating the subscription type- `RESOURCE_TYPE`: Matches all events for a resource type +type WebhooksPostResponse_subscriptions_type int + +const ( + RESOURCE_TYPE_WEBHOOKSPOSTRESPONSE_SUBSCRIPTIONS_TYPE WebhooksPostResponse_subscriptions_type = iota +) + +func (i WebhooksPostResponse_subscriptions_type) String() string { + return []string{"RESOURCE_TYPE"}[i] +} +func ParseWebhooksPostResponse_subscriptions_type(v string) (any, error) { + result := RESOURCE_TYPE_WEBHOOKSPOSTRESPONSE_SUBSCRIPTIONS_TYPE + switch v { + case "RESOURCE_TYPE": + result = RESOURCE_TYPE_WEBHOOKSPOSTRESPONSE_SUBSCRIPTIONS_TYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWebhooksPostResponse_subscriptions_type(values []WebhooksPostResponse_subscriptions_type) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WebhooksPostResponse_subscriptions_type) isMultiValue() bool { + return false +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements400_error.go new file mode 100644 index 0000000..be92248 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements400_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Announcements400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: HPE_GL_ERROR_BAD_REQUEST + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Announcements400Error instantiates a new V1beta1Announcements400Error and sets the default values. +func NewV1beta1Announcements400Error()(*V1beta1Announcements400Error) { + m := &V1beta1Announcements400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Announcements400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Announcements400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Announcements400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Announcements400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Announcements400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: HPE_GL_ERROR_BAD_REQUEST +// returns a UntypedNodeable when successful +func (m *V1beta1Announcements400Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Announcements400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Announcements400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Announcements400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: HPE_GL_ERROR_BAD_REQUEST +func (m *V1beta1Announcements400Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Announcements400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements401_error.go new file mode 100644 index 0000000..bd74654 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements401_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Announcements401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: HPE_GL_ERROR_UNAUTHORIZED + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Announcements401Error instantiates a new V1beta1Announcements401Error and sets the default values. +func NewV1beta1Announcements401Error()(*V1beta1Announcements401Error) { + m := &V1beta1Announcements401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Announcements401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Announcements401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Announcements401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Announcements401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Announcements401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: HPE_GL_ERROR_UNAUTHORIZED +// returns a UntypedNodeable when successful +func (m *V1beta1Announcements401Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Announcements401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Announcements401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Announcements401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: HPE_GL_ERROR_UNAUTHORIZED +func (m *V1beta1Announcements401Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Announcements401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements403_error.go new file mode 100644 index 0000000..7fc05c0 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements403_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Announcements403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: HPE_GL_ERROR_FORBIDDEN + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Announcements403Error instantiates a new V1beta1Announcements403Error and sets the default values. +func NewV1beta1Announcements403Error()(*V1beta1Announcements403Error) { + m := &V1beta1Announcements403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Announcements403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Announcements403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Announcements403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Announcements403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Announcements403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: HPE_GL_ERROR_FORBIDDEN +// returns a UntypedNodeable when successful +func (m *V1beta1Announcements403Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Announcements403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Announcements403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Announcements403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: HPE_GL_ERROR_FORBIDDEN +func (m *V1beta1Announcements403Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Announcements403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements500_error.go new file mode 100644 index 0000000..4dd8756 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements500_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Announcements500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: HPE_GL_ERROR_INTERNAL_SERVER_ERROR + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Announcements500Error instantiates a new V1beta1Announcements500Error and sets the default values. +func NewV1beta1Announcements500Error()(*V1beta1Announcements500Error) { + m := &V1beta1Announcements500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Announcements500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Announcements500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Announcements500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Announcements500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Announcements500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: HPE_GL_ERROR_INTERNAL_SERVER_ERROR +// returns a UntypedNodeable when successful +func (m *V1beta1Announcements500Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Announcements500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Announcements500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Announcements500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: HPE_GL_ERROR_INTERNAL_SERVER_ERROR +func (m *V1beta1Announcements500Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Announcements500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements503_error.go new file mode 100644 index 0000000..77f5326 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements503_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Announcements503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: HPE_GL_ERROR_SERVICE_UNAVAILABLE + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Announcements503Error instantiates a new V1beta1Announcements503Error and sets the default values. +func NewV1beta1Announcements503Error()(*V1beta1Announcements503Error) { + m := &V1beta1Announcements503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Announcements503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Announcements503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Announcements503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Announcements503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Announcements503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: HPE_GL_ERROR_SERVICE_UNAVAILABLE +// returns a UntypedNodeable when successful +func (m *V1beta1Announcements503Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Announcements503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Announcements503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Announcements503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: HPE_GL_ERROR_SERVICE_UNAVAILABLE +func (m *V1beta1Announcements503Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Announcements503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response.go new file mode 100644 index 0000000..7561439 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response.go @@ -0,0 +1,179 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AnnouncementsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Number of items in this response. + count *int32 + // The announcements returned by the query. + items []V1beta1AnnouncementsGetResponse_itemsable + // The offset query parameter from the request. + offset *int32 + // Total number of items matching the filter parameter in the request. + total *int32 +} +// NewV1beta1AnnouncementsGetResponse instantiates a new V1beta1AnnouncementsGetResponse and sets the default values. +func NewV1beta1AnnouncementsGetResponse()(*V1beta1AnnouncementsGetResponse) { + m := &V1beta1AnnouncementsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AnnouncementsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AnnouncementsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AnnouncementsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AnnouncementsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Number of items in this response. +// returns a *int32 when successful +func (m *V1beta1AnnouncementsGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AnnouncementsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1AnnouncementsGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1AnnouncementsGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1AnnouncementsGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetItems gets the items property value. The announcements returned by the query. +// returns a []V1beta1AnnouncementsGetResponse_itemsable when successful +func (m *V1beta1AnnouncementsGetResponse) GetItems()([]V1beta1AnnouncementsGetResponse_itemsable) { + return m.items +} +// GetOffset gets the offset property value. The offset query parameter from the request. +// returns a *int32 when successful +func (m *V1beta1AnnouncementsGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetTotal gets the total property value. Total number of items matching the filter parameter in the request. +// returns a *int32 when successful +func (m *V1beta1AnnouncementsGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1AnnouncementsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AnnouncementsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Number of items in this response. +func (m *V1beta1AnnouncementsGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. The announcements returned by the query. +func (m *V1beta1AnnouncementsGetResponse) SetItems(value []V1beta1AnnouncementsGetResponse_itemsable)() { + m.items = value +} +// SetOffset sets the offset property value. The offset query parameter from the request. +func (m *V1beta1AnnouncementsGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetTotal sets the total property value. Total number of items matching the filter parameter in the request. +func (m *V1beta1AnnouncementsGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1AnnouncementsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1AnnouncementsGetResponse_itemsable) + GetOffset()(*int32) + GetTotal()(*int32) + SetCount(value *int32)() + SetItems(value []V1beta1AnnouncementsGetResponse_itemsable)() + SetOffset(value *int32)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response_escaped_items.go new file mode 100644 index 0000000..84351c5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response_escaped_items.go @@ -0,0 +1,396 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AnnouncementsGetResponse_items all possible properties of an announcement resource. +type V1beta1AnnouncementsGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The body of an announcement, may contain rich media. + content *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // List of images associated with the announcement. + images []V1beta1AnnouncementsGetResponse_items_imagesable + // A system specified name for the resource. + name *string + // The self reference for this resource. + resourceUri *string + // List of product services associated with the announcement. + services []V1beta1AnnouncementsGetResponse_items_servicesable + // A sentence summarising an announcement. + title *string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1AnnouncementsGetResponse_items instantiates a new V1beta1AnnouncementsGetResponse_items and sets the default values. +func NewV1beta1AnnouncementsGetResponse_items()(*V1beta1AnnouncementsGetResponse_items) { + m := &V1beta1AnnouncementsGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AnnouncementsGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AnnouncementsGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AnnouncementsGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AnnouncementsGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetContent gets the content property value. The body of an announcement, may contain rich media. +// returns a *string when successful +func (m *V1beta1AnnouncementsGetResponse_items) GetContent()(*string) { + return m.content +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1AnnouncementsGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1AnnouncementsGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AnnouncementsGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["content"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetContent(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["images"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1AnnouncementsGetResponse_items_imagesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1AnnouncementsGetResponse_items_imagesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1AnnouncementsGetResponse_items_imagesable) + } + } + m.SetImages(res) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["services"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1AnnouncementsGetResponse_items_servicesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1AnnouncementsGetResponse_items_servicesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1AnnouncementsGetResponse_items_servicesable) + } + } + m.SetServices(res) + } + return nil + } + res["title"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTitle(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1AnnouncementsGetResponse_items) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1AnnouncementsGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetImages gets the images property value. List of images associated with the announcement. +// returns a []V1beta1AnnouncementsGetResponse_items_imagesable when successful +func (m *V1beta1AnnouncementsGetResponse_items) GetImages()([]V1beta1AnnouncementsGetResponse_items_imagesable) { + return m.images +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1AnnouncementsGetResponse_items) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1AnnouncementsGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetServices gets the services property value. List of product services associated with the announcement. +// returns a []V1beta1AnnouncementsGetResponse_items_servicesable when successful +func (m *V1beta1AnnouncementsGetResponse_items) GetServices()([]V1beta1AnnouncementsGetResponse_items_servicesable) { + return m.services +} +// GetTitle gets the title property value. A sentence summarising an announcement. +// returns a *string when successful +func (m *V1beta1AnnouncementsGetResponse_items) GetTitle()(*string) { + return m.title +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1AnnouncementsGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1AnnouncementsGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1AnnouncementsGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("content", m.GetContent()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + if m.GetImages() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetImages())) + for i, v := range m.GetImages() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("images", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + if m.GetServices() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetServices())) + for i, v := range m.GetServices() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("services", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("title", m.GetTitle()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AnnouncementsGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetContent sets the content property value. The body of an announcement, may contain rich media. +func (m *V1beta1AnnouncementsGetResponse_items) SetContent(value *string)() { + m.content = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1AnnouncementsGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1AnnouncementsGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1AnnouncementsGetResponse_items) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1AnnouncementsGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetImages sets the images property value. List of images associated with the announcement. +func (m *V1beta1AnnouncementsGetResponse_items) SetImages(value []V1beta1AnnouncementsGetResponse_items_imagesable)() { + m.images = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1AnnouncementsGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1AnnouncementsGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetServices sets the services property value. List of product services associated with the announcement. +func (m *V1beta1AnnouncementsGetResponse_items) SetServices(value []V1beta1AnnouncementsGetResponse_items_servicesable)() { + m.services = value +} +// SetTitle sets the title property value. A sentence summarising an announcement. +func (m *V1beta1AnnouncementsGetResponse_items) SetTitle(value *string)() { + m.title = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1AnnouncementsGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1AnnouncementsGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1AnnouncementsGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetContent()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetImages()([]V1beta1AnnouncementsGetResponse_items_imagesable) + GetName()(*string) + GetResourceUri()(*string) + GetServices()([]V1beta1AnnouncementsGetResponse_items_servicesable) + GetTitle()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetContent(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetImages(value []V1beta1AnnouncementsGetResponse_items_imagesable)() + SetName(value *string)() + SetResourceUri(value *string)() + SetServices(value []V1beta1AnnouncementsGetResponse_items_servicesable)() + SetTitle(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response_escaped_items_escaped_images.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response_escaped_items_escaped_images.go new file mode 100644 index 0000000..5bd9e10 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response_escaped_items_escaped_images.go @@ -0,0 +1,62 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AnnouncementsGetResponse_items_images a reference to an image associated with an announcement. +type V1beta1AnnouncementsGetResponse_items_images struct { + // URL of an image associated with an announcement. + url *string +} +// NewV1beta1AnnouncementsGetResponse_items_images instantiates a new V1beta1AnnouncementsGetResponse_items_images and sets the default values. +func NewV1beta1AnnouncementsGetResponse_items_images()(*V1beta1AnnouncementsGetResponse_items_images) { + m := &V1beta1AnnouncementsGetResponse_items_images{ + } + return m +} +// CreateV1beta1AnnouncementsGetResponse_items_imagesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AnnouncementsGetResponse_items_imagesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AnnouncementsGetResponse_items_images(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AnnouncementsGetResponse_items_images) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUrl(val) + } + return nil + } + return res +} +// GetUrl gets the url property value. URL of an image associated with an announcement. +// returns a *string when successful +func (m *V1beta1AnnouncementsGetResponse_items_images) GetUrl()(*string) { + return m.url +} +// Serialize serializes information the current object +func (m *V1beta1AnnouncementsGetResponse_items_images) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("url", m.GetUrl()) + if err != nil { + return err + } + } + return nil +} +// SetUrl sets the url property value. URL of an image associated with an announcement. +func (m *V1beta1AnnouncementsGetResponse_items_images) SetUrl(value *string)() { + m.url = value +} +type V1beta1AnnouncementsGetResponse_items_imagesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetUrl()(*string) + SetUrl(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response_escaped_items_escaped_services.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response_escaped_items_escaped_services.go new file mode 100644 index 0000000..37e89e5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_get_response_escaped_items_escaped_services.go @@ -0,0 +1,91 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AnnouncementsGetResponse_items_services a reference to a specific service relevant to an announcement. +type V1beta1AnnouncementsGetResponse_items_services struct { + // A unique service identifier. + id *string + // Human-readable service name. + name *string +} +// NewV1beta1AnnouncementsGetResponse_items_services instantiates a new V1beta1AnnouncementsGetResponse_items_services and sets the default values. +func NewV1beta1AnnouncementsGetResponse_items_services()(*V1beta1AnnouncementsGetResponse_items_services) { + m := &V1beta1AnnouncementsGetResponse_items_services{ + } + return m +} +// CreateV1beta1AnnouncementsGetResponse_items_servicesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AnnouncementsGetResponse_items_servicesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AnnouncementsGetResponse_items_services(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AnnouncementsGetResponse_items_services) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. A unique service identifier. +// returns a *string when successful +func (m *V1beta1AnnouncementsGetResponse_items_services) GetId()(*string) { + return m.id +} +// GetName gets the name property value. Human-readable service name. +// returns a *string when successful +func (m *V1beta1AnnouncementsGetResponse_items_services) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1AnnouncementsGetResponse_items_services) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + return nil +} +// SetId sets the id property value. A unique service identifier. +func (m *V1beta1AnnouncementsGetResponse_items_services) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. Human-readable service name. +func (m *V1beta1AnnouncementsGetResponse_items_services) SetName(value *string)() { + m.name = value +} +type V1beta1AnnouncementsGetResponse_items_servicesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + SetId(value *string)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement400_error.go new file mode 100644 index 0000000..be5d4cf --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement400_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AnnouncementsItemWithAnnouncement400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: HPE_GL_ERROR_BAD_REQUEST + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1AnnouncementsItemWithAnnouncement400Error instantiates a new V1beta1AnnouncementsItemWithAnnouncement400Error and sets the default values. +func NewV1beta1AnnouncementsItemWithAnnouncement400Error()(*V1beta1AnnouncementsItemWithAnnouncement400Error) { + m := &V1beta1AnnouncementsItemWithAnnouncement400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AnnouncementsItemWithAnnouncement400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AnnouncementsItemWithAnnouncement400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AnnouncementsItemWithAnnouncement400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: HPE_GL_ERROR_BAD_REQUEST +// returns a UntypedNodeable when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement400Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AnnouncementsItemWithAnnouncement400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AnnouncementsItemWithAnnouncement400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: HPE_GL_ERROR_BAD_REQUEST +func (m *V1beta1AnnouncementsItemWithAnnouncement400Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1AnnouncementsItemWithAnnouncement400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement401_error.go new file mode 100644 index 0000000..35b8627 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement401_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AnnouncementsItemWithAnnouncement401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: HPE_GL_ERROR_UNAUTHORIZED + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1AnnouncementsItemWithAnnouncement401Error instantiates a new V1beta1AnnouncementsItemWithAnnouncement401Error and sets the default values. +func NewV1beta1AnnouncementsItemWithAnnouncement401Error()(*V1beta1AnnouncementsItemWithAnnouncement401Error) { + m := &V1beta1AnnouncementsItemWithAnnouncement401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AnnouncementsItemWithAnnouncement401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AnnouncementsItemWithAnnouncement401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AnnouncementsItemWithAnnouncement401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: HPE_GL_ERROR_UNAUTHORIZED +// returns a UntypedNodeable when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement401Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AnnouncementsItemWithAnnouncement401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AnnouncementsItemWithAnnouncement401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: HPE_GL_ERROR_UNAUTHORIZED +func (m *V1beta1AnnouncementsItemWithAnnouncement401Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1AnnouncementsItemWithAnnouncement401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement403_error.go new file mode 100644 index 0000000..0ae1dc3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement403_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AnnouncementsItemWithAnnouncement403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: HPE_GL_ERROR_FORBIDDEN + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1AnnouncementsItemWithAnnouncement403Error instantiates a new V1beta1AnnouncementsItemWithAnnouncement403Error and sets the default values. +func NewV1beta1AnnouncementsItemWithAnnouncement403Error()(*V1beta1AnnouncementsItemWithAnnouncement403Error) { + m := &V1beta1AnnouncementsItemWithAnnouncement403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AnnouncementsItemWithAnnouncement403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AnnouncementsItemWithAnnouncement403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AnnouncementsItemWithAnnouncement403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: HPE_GL_ERROR_FORBIDDEN +// returns a UntypedNodeable when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement403Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AnnouncementsItemWithAnnouncement403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AnnouncementsItemWithAnnouncement403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: HPE_GL_ERROR_FORBIDDEN +func (m *V1beta1AnnouncementsItemWithAnnouncement403Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1AnnouncementsItemWithAnnouncement403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement404_error.go new file mode 100644 index 0000000..124d8ce --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement404_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AnnouncementsItemWithAnnouncement404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: HPE_GL_ERROR_NOT_FOUND + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1AnnouncementsItemWithAnnouncement404Error instantiates a new V1beta1AnnouncementsItemWithAnnouncement404Error and sets the default values. +func NewV1beta1AnnouncementsItemWithAnnouncement404Error()(*V1beta1AnnouncementsItemWithAnnouncement404Error) { + m := &V1beta1AnnouncementsItemWithAnnouncement404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AnnouncementsItemWithAnnouncement404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AnnouncementsItemWithAnnouncement404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AnnouncementsItemWithAnnouncement404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: HPE_GL_ERROR_NOT_FOUND +// returns a UntypedNodeable when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement404Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AnnouncementsItemWithAnnouncement404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AnnouncementsItemWithAnnouncement404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: HPE_GL_ERROR_NOT_FOUND +func (m *V1beta1AnnouncementsItemWithAnnouncement404Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1AnnouncementsItemWithAnnouncement404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement500_error.go new file mode 100644 index 0000000..bda8528 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement500_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AnnouncementsItemWithAnnouncement500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: HPE_GL_ERROR_INTERNAL_SERVER_ERROR + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1AnnouncementsItemWithAnnouncement500Error instantiates a new V1beta1AnnouncementsItemWithAnnouncement500Error and sets the default values. +func NewV1beta1AnnouncementsItemWithAnnouncement500Error()(*V1beta1AnnouncementsItemWithAnnouncement500Error) { + m := &V1beta1AnnouncementsItemWithAnnouncement500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AnnouncementsItemWithAnnouncement500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AnnouncementsItemWithAnnouncement500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AnnouncementsItemWithAnnouncement500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: HPE_GL_ERROR_INTERNAL_SERVER_ERROR +// returns a UntypedNodeable when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement500Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AnnouncementsItemWithAnnouncement500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AnnouncementsItemWithAnnouncement500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: HPE_GL_ERROR_INTERNAL_SERVER_ERROR +func (m *V1beta1AnnouncementsItemWithAnnouncement500Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1AnnouncementsItemWithAnnouncement500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement503_error.go new file mode 100644 index 0000000..ea09d4c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement503_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AnnouncementsItemWithAnnouncement503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: HPE_GL_ERROR_SERVICE_UNAVAILABLE + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1AnnouncementsItemWithAnnouncement503Error instantiates a new V1beta1AnnouncementsItemWithAnnouncement503Error and sets the default values. +func NewV1beta1AnnouncementsItemWithAnnouncement503Error()(*V1beta1AnnouncementsItemWithAnnouncement503Error) { + m := &V1beta1AnnouncementsItemWithAnnouncement503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AnnouncementsItemWithAnnouncement503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AnnouncementsItemWithAnnouncement503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AnnouncementsItemWithAnnouncement503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: HPE_GL_ERROR_SERVICE_UNAVAILABLE +// returns a UntypedNodeable when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement503Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AnnouncementsItemWithAnnouncement503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AnnouncementsItemWithAnnouncement503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AnnouncementsItemWithAnnouncement503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: HPE_GL_ERROR_SERVICE_UNAVAILABLE +func (m *V1beta1AnnouncementsItemWithAnnouncement503Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1AnnouncementsItemWithAnnouncement503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_get_response.go new file mode 100644 index 0000000..cfb7feb --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_get_response.go @@ -0,0 +1,396 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AnnouncementsItemWithAnnouncementGetResponse all possible properties of an announcement resource. +type V1beta1AnnouncementsItemWithAnnouncementGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The body of an announcement, may contain rich media. + content *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // List of images associated with the announcement. + images []V1beta1AnnouncementsItemWithAnnouncementGetResponse_imagesable + // A system specified name for the resource. + name *string + // The self reference for this resource. + resourceUri *string + // List of product services associated with the announcement. + services []V1beta1AnnouncementsItemWithAnnouncementGetResponse_servicesable + // A sentence summarising an announcement. + title *string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1AnnouncementsItemWithAnnouncementGetResponse instantiates a new V1beta1AnnouncementsItemWithAnnouncementGetResponse and sets the default values. +func NewV1beta1AnnouncementsItemWithAnnouncementGetResponse()(*V1beta1AnnouncementsItemWithAnnouncementGetResponse) { + m := &V1beta1AnnouncementsItemWithAnnouncementGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AnnouncementsItemWithAnnouncementGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AnnouncementsItemWithAnnouncementGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AnnouncementsItemWithAnnouncementGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetContent gets the content property value. The body of an announcement, may contain rich media. +// returns a *string when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) GetContent()(*string) { + return m.content +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["content"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetContent(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["images"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1AnnouncementsItemWithAnnouncementGetResponse_imagesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1AnnouncementsItemWithAnnouncementGetResponse_imagesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1AnnouncementsItemWithAnnouncementGetResponse_imagesable) + } + } + m.SetImages(res) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["services"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1AnnouncementsItemWithAnnouncementGetResponse_servicesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1AnnouncementsItemWithAnnouncementGetResponse_servicesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1AnnouncementsItemWithAnnouncementGetResponse_servicesable) + } + } + m.SetServices(res) + } + return nil + } + res["title"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTitle(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetImages gets the images property value. List of images associated with the announcement. +// returns a []V1beta1AnnouncementsItemWithAnnouncementGetResponse_imagesable when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) GetImages()([]V1beta1AnnouncementsItemWithAnnouncementGetResponse_imagesable) { + return m.images +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetServices gets the services property value. List of product services associated with the announcement. +// returns a []V1beta1AnnouncementsItemWithAnnouncementGetResponse_servicesable when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) GetServices()([]V1beta1AnnouncementsItemWithAnnouncementGetResponse_servicesable) { + return m.services +} +// GetTitle gets the title property value. A sentence summarising an announcement. +// returns a *string when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) GetTitle()(*string) { + return m.title +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("content", m.GetContent()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + if m.GetImages() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetImages())) + for i, v := range m.GetImages() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("images", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + if m.GetServices() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetServices())) + for i, v := range m.GetServices() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("services", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("title", m.GetTitle()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetContent sets the content property value. The body of an announcement, may contain rich media. +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) SetContent(value *string)() { + m.content = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetImages sets the images property value. List of images associated with the announcement. +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) SetImages(value []V1beta1AnnouncementsItemWithAnnouncementGetResponse_imagesable)() { + m.images = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetServices sets the services property value. List of product services associated with the announcement. +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) SetServices(value []V1beta1AnnouncementsItemWithAnnouncementGetResponse_servicesable)() { + m.services = value +} +// SetTitle sets the title property value. A sentence summarising an announcement. +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) SetTitle(value *string)() { + m.title = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1AnnouncementsItemWithAnnouncementGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetContent()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetImages()([]V1beta1AnnouncementsItemWithAnnouncementGetResponse_imagesable) + GetName()(*string) + GetResourceUri()(*string) + GetServices()([]V1beta1AnnouncementsItemWithAnnouncementGetResponse_servicesable) + GetTitle()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetContent(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetImages(value []V1beta1AnnouncementsItemWithAnnouncementGetResponse_imagesable)() + SetName(value *string)() + SetResourceUri(value *string)() + SetServices(value []V1beta1AnnouncementsItemWithAnnouncementGetResponse_servicesable)() + SetTitle(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_get_response_escaped_images.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_get_response_escaped_images.go new file mode 100644 index 0000000..85c39e9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_get_response_escaped_images.go @@ -0,0 +1,62 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AnnouncementsItemWithAnnouncementGetResponse_images a reference to an image associated with an announcement. +type V1beta1AnnouncementsItemWithAnnouncementGetResponse_images struct { + // URL of an image associated with an announcement. + url *string +} +// NewV1beta1AnnouncementsItemWithAnnouncementGetResponse_images instantiates a new V1beta1AnnouncementsItemWithAnnouncementGetResponse_images and sets the default values. +func NewV1beta1AnnouncementsItemWithAnnouncementGetResponse_images()(*V1beta1AnnouncementsItemWithAnnouncementGetResponse_images) { + m := &V1beta1AnnouncementsItemWithAnnouncementGetResponse_images{ + } + return m +} +// CreateV1beta1AnnouncementsItemWithAnnouncementGetResponse_imagesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AnnouncementsItemWithAnnouncementGetResponse_imagesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AnnouncementsItemWithAnnouncementGetResponse_images(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse_images) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUrl(val) + } + return nil + } + return res +} +// GetUrl gets the url property value. URL of an image associated with an announcement. +// returns a *string when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse_images) GetUrl()(*string) { + return m.url +} +// Serialize serializes information the current object +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse_images) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("url", m.GetUrl()) + if err != nil { + return err + } + } + return nil +} +// SetUrl sets the url property value. URL of an image associated with an announcement. +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse_images) SetUrl(value *string)() { + m.url = value +} +type V1beta1AnnouncementsItemWithAnnouncementGetResponse_imagesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetUrl()(*string) + SetUrl(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_get_response_escaped_services.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_get_response_escaped_services.go new file mode 100644 index 0000000..4c1ce4d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_get_response_escaped_services.go @@ -0,0 +1,91 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AnnouncementsItemWithAnnouncementGetResponse_services a reference to a specific service relevant to an announcement. +type V1beta1AnnouncementsItemWithAnnouncementGetResponse_services struct { + // A unique service identifier. + id *string + // Human-readable service name. + name *string +} +// NewV1beta1AnnouncementsItemWithAnnouncementGetResponse_services instantiates a new V1beta1AnnouncementsItemWithAnnouncementGetResponse_services and sets the default values. +func NewV1beta1AnnouncementsItemWithAnnouncementGetResponse_services()(*V1beta1AnnouncementsItemWithAnnouncementGetResponse_services) { + m := &V1beta1AnnouncementsItemWithAnnouncementGetResponse_services{ + } + return m +} +// CreateV1beta1AnnouncementsItemWithAnnouncementGetResponse_servicesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AnnouncementsItemWithAnnouncementGetResponse_servicesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AnnouncementsItemWithAnnouncementGetResponse_services(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse_services) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. A unique service identifier. +// returns a *string when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse_services) GetId()(*string) { + return m.id +} +// GetName gets the name property value. Human-readable service name. +// returns a *string when successful +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse_services) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse_services) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + return nil +} +// SetId sets the id property value. A unique service identifier. +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse_services) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. Human-readable service name. +func (m *V1beta1AnnouncementsItemWithAnnouncementGetResponse_services) SetName(value *string)() { + m.name = value +} +type V1beta1AnnouncementsItemWithAnnouncementGetResponse_servicesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + SetId(value *string)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_response.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_response.go new file mode 100644 index 0000000..9cc0c7b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_item_with_announcement_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AnnouncementsItemWithAnnouncementResponse all possible properties of an announcement resource. +// Deprecated: This class is obsolete. Use V1beta1AnnouncementsItemWithAnnouncementGetResponseable instead. +type V1beta1AnnouncementsItemWithAnnouncementResponse struct { + V1beta1AnnouncementsItemWithAnnouncementGetResponse +} +// NewV1beta1AnnouncementsItemWithAnnouncementResponse instantiates a new V1beta1AnnouncementsItemWithAnnouncementResponse and sets the default values. +func NewV1beta1AnnouncementsItemWithAnnouncementResponse()(*V1beta1AnnouncementsItemWithAnnouncementResponse) { + m := &V1beta1AnnouncementsItemWithAnnouncementResponse{ + V1beta1AnnouncementsItemWithAnnouncementGetResponse: *NewV1beta1AnnouncementsItemWithAnnouncementGetResponse(), + } + return m +} +// CreateV1beta1AnnouncementsItemWithAnnouncementResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AnnouncementsItemWithAnnouncementResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AnnouncementsItemWithAnnouncementResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1AnnouncementsItemWithAnnouncementGetResponseable instead. +type V1beta1AnnouncementsItemWithAnnouncementResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1AnnouncementsItemWithAnnouncementGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_request_builder.go new file mode 100644 index 0000000..389ffaa --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_request_builder.go @@ -0,0 +1,146 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" +) + +// V1beta1AnnouncementsRequestBuilder builds and executes requests for operations under \data-services\v1beta1\announcements +type V1beta1AnnouncementsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1AnnouncementsRequestBuilderGetQueryParameters returns a collection of all published announcements in the system. The following parameters are supported toreduce the collection according to the specified criteria:- filtering announcements by title, content, services and updated timeframe;- sorting announcements by title, created and updated timeframe;- pagination controls (`limit` and `offset`);- selecting specific announcement properties to view. +type V1beta1AnnouncementsRequestBuilderGetQueryParameters struct { + // The expression to use for filtering responses.The OData filter query parameter supports the following:Operators:- and- or- eq- ge- inProperties:- title- content- services- updatedAtFunctions:- containsFor example:- `contains(title, 'HPE GreenLake') or contains(content, 'HPE GreenLake')`;- `backup-and-recovery in services`;- `updatedAt ge 2023-03-03T07:20:00.00Z and updatedAt lt 2023-03-04T07:20:00.00Z`. Grouping of expressions to change the evaluation precedence is NOT supported. + Filter *string `uriparametername:"filter"` + // The `limit` query parameter should be used in conjunction with `offset` for paging. The`limit` is the maximum number of items to include in the response. + Limit *int32 `uriparametername:"limit"` + // The `offset` query parameter should be used in conjunction with `limit` for paging. The`offset` is the number of items from the beginning of the result set to the first itemincluded in the response. + Offset *int32 `uriparametername:"offset"` + // A list of announcement properties to include in the response separated by a `,`,e.g. `id,title`. If this is omitted, all properties shall be returned. + Select []string `uriparametername:"select"` + // A list of properties defining the sort order. This takes a single property name followedby the direction to sort in, separated by a space.The supported properties are `title`, `createdAt` and `updatedAt`.If not specified, the default property is `updatedAt`. The supported directions are `asc` and `desc`for ascending and descending respectively. If not specified, the direction defaults to `desc`.Simply specifying `asc` or `desc` without a preceding property is considered invalidand will result in an error being returned. + Sort *string `uriparametername:"sort"` +} +// V1beta1AnnouncementsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1AnnouncementsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1AnnouncementsRequestBuilderGetQueryParameters +} +// ByAnnouncementId gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.announcements.item collection +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. +// returns a *V1beta1AnnouncementsWithAnnouncementItemRequestBuilder when successful +func (m *V1beta1AnnouncementsRequestBuilder) ByAnnouncementId(announcementId string)(*V1beta1AnnouncementsWithAnnouncementItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if announcementId != "" { + urlTplParams["announcementId"] = announcementId + } + return NewV1beta1AnnouncementsWithAnnouncementItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ByAnnouncementIdGuid gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.announcements.item collection +// returns a *V1beta1AnnouncementsWithAnnouncementItemRequestBuilder when successful +func (m *V1beta1AnnouncementsRequestBuilder) ByAnnouncementIdGuid(announcementId i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*V1beta1AnnouncementsWithAnnouncementItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["announcementId"] = announcementId.String() + return NewV1beta1AnnouncementsWithAnnouncementItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1AnnouncementsRequestBuilderInternal instantiates a new V1beta1AnnouncementsRequestBuilder and sets the default values. +func NewV1beta1AnnouncementsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1AnnouncementsRequestBuilder) { + m := &V1beta1AnnouncementsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/announcements{?filter*,limit*,offset*,select,sort*}", pathParameters), + } + return m +} +// NewV1beta1AnnouncementsRequestBuilder instantiates a new V1beta1AnnouncementsRequestBuilder and sets the default values. +func NewV1beta1AnnouncementsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1AnnouncementsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1AnnouncementsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns a collection of all published announcements in the system. The following parameters are supported toreduce the collection according to the specified criteria:- filtering announcements by title, content, services and updated timeframe;- sorting announcements by title, created and updated timeframe;- pagination controls (`limit` and `offset`);- selecting specific announcement properties to view. +// Deprecated: This method is obsolete. Use GetAsAnnouncementsGetResponse instead. +// returns a V1beta1AnnouncementsResponseable when successful +// returns a V1beta1Announcements400Error error when the service returns a 400 status code +// returns a V1beta1Announcements401Error error when the service returns a 401 status code +// returns a V1beta1Announcements403Error error when the service returns a 403 status code +// returns a V1beta1Announcements500Error error when the service returns a 500 status code +// returns a V1beta1Announcements503Error error when the service returns a 503 status code +func (m *V1beta1AnnouncementsRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1AnnouncementsRequestBuilderGetRequestConfiguration)(V1beta1AnnouncementsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Announcements400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Announcements401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Announcements403ErrorFromDiscriminatorValue, + "500": CreateV1beta1Announcements500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Announcements503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1AnnouncementsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1AnnouncementsResponseable), nil +} +// GetAsAnnouncementsGetResponse returns a collection of all published announcements in the system. The following parameters are supported toreduce the collection according to the specified criteria:- filtering announcements by title, content, services and updated timeframe;- sorting announcements by title, created and updated timeframe;- pagination controls (`limit` and `offset`);- selecting specific announcement properties to view. +// returns a V1beta1AnnouncementsGetResponseable when successful +// returns a V1beta1Announcements400Error error when the service returns a 400 status code +// returns a V1beta1Announcements401Error error when the service returns a 401 status code +// returns a V1beta1Announcements403Error error when the service returns a 403 status code +// returns a V1beta1Announcements500Error error when the service returns a 500 status code +// returns a V1beta1Announcements503Error error when the service returns a 503 status code +func (m *V1beta1AnnouncementsRequestBuilder) GetAsAnnouncementsGetResponse(ctx context.Context, requestConfiguration *V1beta1AnnouncementsRequestBuilderGetRequestConfiguration)(V1beta1AnnouncementsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Announcements400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Announcements401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Announcements403ErrorFromDiscriminatorValue, + "500": CreateV1beta1Announcements500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Announcements503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1AnnouncementsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1AnnouncementsGetResponseable), nil +} +// ToGetRequestInformation returns a collection of all published announcements in the system. The following parameters are supported toreduce the collection according to the specified criteria:- filtering announcements by title, content, services and updated timeframe;- sorting announcements by title, created and updated timeframe;- pagination controls (`limit` and `offset`);- selecting specific announcement properties to view. +// returns a *RequestInformation when successful +func (m *V1beta1AnnouncementsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1AnnouncementsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1AnnouncementsRequestBuilder when successful +func (m *V1beta1AnnouncementsRequestBuilder) WithUrl(rawUrl string)(*V1beta1AnnouncementsRequestBuilder) { + return NewV1beta1AnnouncementsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_response.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_response.go new file mode 100644 index 0000000..56d2b03 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1AnnouncementsGetResponseable instead. +type V1beta1AnnouncementsResponse struct { + V1beta1AnnouncementsGetResponse +} +// NewV1beta1AnnouncementsResponse instantiates a new V1beta1AnnouncementsResponse and sets the default values. +func NewV1beta1AnnouncementsResponse()(*V1beta1AnnouncementsResponse) { + m := &V1beta1AnnouncementsResponse{ + V1beta1AnnouncementsGetResponse: *NewV1beta1AnnouncementsGetResponse(), + } + return m +} +// CreateV1beta1AnnouncementsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AnnouncementsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AnnouncementsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1AnnouncementsGetResponseable instead. +type V1beta1AnnouncementsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1AnnouncementsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_announcements_with_announcement_item_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_announcements_with_announcement_item_request_builder.go new file mode 100644 index 0000000..d822323 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_announcements_with_announcement_item_request_builder.go @@ -0,0 +1,108 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1AnnouncementsWithAnnouncementItemRequestBuilder builds and executes requests for operations under \data-services\v1beta1\announcements\{announcementId} +type V1beta1AnnouncementsWithAnnouncementItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1AnnouncementsWithAnnouncementItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1AnnouncementsWithAnnouncementItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1AnnouncementsWithAnnouncementItemRequestBuilderInternal instantiates a new V1beta1AnnouncementsWithAnnouncementItemRequestBuilder and sets the default values. +func NewV1beta1AnnouncementsWithAnnouncementItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1AnnouncementsWithAnnouncementItemRequestBuilder) { + m := &V1beta1AnnouncementsWithAnnouncementItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/announcements/{announcementId}", pathParameters), + } + return m +} +// NewV1beta1AnnouncementsWithAnnouncementItemRequestBuilder instantiates a new V1beta1AnnouncementsWithAnnouncementItemRequestBuilder and sets the default values. +func NewV1beta1AnnouncementsWithAnnouncementItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1AnnouncementsWithAnnouncementItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1AnnouncementsWithAnnouncementItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns details of a specific announcement with the given ID. +// Deprecated: This method is obsolete. Use GetAsWithAnnouncementGetResponse instead. +// returns a V1beta1AnnouncementsItemWithAnnouncementResponseable when successful +// returns a V1beta1AnnouncementsItemWithAnnouncement400Error error when the service returns a 400 status code +// returns a V1beta1AnnouncementsItemWithAnnouncement401Error error when the service returns a 401 status code +// returns a V1beta1AnnouncementsItemWithAnnouncement403Error error when the service returns a 403 status code +// returns a V1beta1AnnouncementsItemWithAnnouncement404Error error when the service returns a 404 status code +// returns a V1beta1AnnouncementsItemWithAnnouncement500Error error when the service returns a 500 status code +// returns a V1beta1AnnouncementsItemWithAnnouncement503Error error when the service returns a 503 status code +func (m *V1beta1AnnouncementsWithAnnouncementItemRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1AnnouncementsWithAnnouncementItemRequestBuilderGetRequestConfiguration)(V1beta1AnnouncementsItemWithAnnouncementResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1AnnouncementsItemWithAnnouncement400ErrorFromDiscriminatorValue, + "401": CreateV1beta1AnnouncementsItemWithAnnouncement401ErrorFromDiscriminatorValue, + "403": CreateV1beta1AnnouncementsItemWithAnnouncement403ErrorFromDiscriminatorValue, + "404": CreateV1beta1AnnouncementsItemWithAnnouncement404ErrorFromDiscriminatorValue, + "500": CreateV1beta1AnnouncementsItemWithAnnouncement500ErrorFromDiscriminatorValue, + "503": CreateV1beta1AnnouncementsItemWithAnnouncement503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1AnnouncementsItemWithAnnouncementResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1AnnouncementsItemWithAnnouncementResponseable), nil +} +// GetAsWithAnnouncementGetResponse returns details of a specific announcement with the given ID. +// returns a V1beta1AnnouncementsItemWithAnnouncementGetResponseable when successful +// returns a V1beta1AnnouncementsItemWithAnnouncement400Error error when the service returns a 400 status code +// returns a V1beta1AnnouncementsItemWithAnnouncement401Error error when the service returns a 401 status code +// returns a V1beta1AnnouncementsItemWithAnnouncement403Error error when the service returns a 403 status code +// returns a V1beta1AnnouncementsItemWithAnnouncement404Error error when the service returns a 404 status code +// returns a V1beta1AnnouncementsItemWithAnnouncement500Error error when the service returns a 500 status code +// returns a V1beta1AnnouncementsItemWithAnnouncement503Error error when the service returns a 503 status code +func (m *V1beta1AnnouncementsWithAnnouncementItemRequestBuilder) GetAsWithAnnouncementGetResponse(ctx context.Context, requestConfiguration *V1beta1AnnouncementsWithAnnouncementItemRequestBuilderGetRequestConfiguration)(V1beta1AnnouncementsItemWithAnnouncementGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1AnnouncementsItemWithAnnouncement400ErrorFromDiscriminatorValue, + "401": CreateV1beta1AnnouncementsItemWithAnnouncement401ErrorFromDiscriminatorValue, + "403": CreateV1beta1AnnouncementsItemWithAnnouncement403ErrorFromDiscriminatorValue, + "404": CreateV1beta1AnnouncementsItemWithAnnouncement404ErrorFromDiscriminatorValue, + "500": CreateV1beta1AnnouncementsItemWithAnnouncement500ErrorFromDiscriminatorValue, + "503": CreateV1beta1AnnouncementsItemWithAnnouncement503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1AnnouncementsItemWithAnnouncementGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1AnnouncementsItemWithAnnouncementGetResponseable), nil +} +// ToGetRequestInformation returns details of a specific announcement with the given ID. +// returns a *RequestInformation when successful +func (m *V1beta1AnnouncementsWithAnnouncementItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1AnnouncementsWithAnnouncementItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1AnnouncementsWithAnnouncementItemRequestBuilder when successful +func (m *V1beta1AnnouncementsWithAnnouncementItemRequestBuilder) WithUrl(rawUrl string)(*V1beta1AnnouncementsWithAnnouncementItemRequestBuilder) { + return NewV1beta1AnnouncementsWithAnnouncementItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations400_error.go new file mode 100644 index 0000000..b5b3a64 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations400_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperations400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: BAD_REQUEST, INVALID_PARAMETER + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1AsyncOperations400Error instantiates a new V1beta1AsyncOperations400Error and sets the default values. +func NewV1beta1AsyncOperations400Error()(*V1beta1AsyncOperations400Error) { + m := &V1beta1AsyncOperations400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperations400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperations400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperations400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AsyncOperations400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperations400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: BAD_REQUEST, INVALID_PARAMETER +// returns a UntypedNodeable when successful +func (m *V1beta1AsyncOperations400Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperations400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperations400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperations400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: BAD_REQUEST, INVALID_PARAMETER +func (m *V1beta1AsyncOperations400Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1AsyncOperations400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations401_error.go new file mode 100644 index 0000000..a074227 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations401_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperations401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: UNAUTHENTICATED + errorCode *string +} +// NewV1beta1AsyncOperations401Error instantiates a new V1beta1AsyncOperations401Error and sets the default values. +func NewV1beta1AsyncOperations401Error()(*V1beta1AsyncOperations401Error) { + m := &V1beta1AsyncOperations401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperations401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperations401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperations401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AsyncOperations401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperations401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: UNAUTHENTICATED +// returns a *string when successful +func (m *V1beta1AsyncOperations401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperations401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperations401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperations401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: UNAUTHENTICATED +func (m *V1beta1AsyncOperations401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +type V1beta1AsyncOperations401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(*string) + SetErrorCode(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations403_error.go new file mode 100644 index 0000000..4f79458 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations403_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperations403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: FORBIDDEN + errorCode *string +} +// NewV1beta1AsyncOperations403Error instantiates a new V1beta1AsyncOperations403Error and sets the default values. +func NewV1beta1AsyncOperations403Error()(*V1beta1AsyncOperations403Error) { + m := &V1beta1AsyncOperations403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperations403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperations403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperations403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AsyncOperations403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperations403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: FORBIDDEN +// returns a *string when successful +func (m *V1beta1AsyncOperations403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperations403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperations403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperations403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: FORBIDDEN +func (m *V1beta1AsyncOperations403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +type V1beta1AsyncOperations403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(*string) + SetErrorCode(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations500_error.go new file mode 100644 index 0000000..f2aa405 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations500_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperations500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: INTERNAL_ERROR + errorCode *string +} +// NewV1beta1AsyncOperations500Error instantiates a new V1beta1AsyncOperations500Error and sets the default values. +func NewV1beta1AsyncOperations500Error()(*V1beta1AsyncOperations500Error) { + m := &V1beta1AsyncOperations500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperations500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperations500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperations500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AsyncOperations500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperations500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: INTERNAL_ERROR +// returns a *string when successful +func (m *V1beta1AsyncOperations500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperations500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperations500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperations500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: INTERNAL_ERROR +func (m *V1beta1AsyncOperations500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +type V1beta1AsyncOperations500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(*string) + SetErrorCode(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations503_error.go new file mode 100644 index 0000000..b2fe009 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations503_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperations503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: SERVICE_UNAVAILABLE + errorCode *string +} +// NewV1beta1AsyncOperations503Error instantiates a new V1beta1AsyncOperations503Error and sets the default values. +func NewV1beta1AsyncOperations503Error()(*V1beta1AsyncOperations503Error) { + m := &V1beta1AsyncOperations503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperations503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperations503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperations503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AsyncOperations503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperations503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: SERVICE_UNAVAILABLE +// returns a *string when successful +func (m *V1beta1AsyncOperations503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperations503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperations503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperations503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: SERVICE_UNAVAILABLE +func (m *V1beta1AsyncOperations503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +type V1beta1AsyncOperations503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(*string) + SetErrorCode(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_async_operations_item_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_async_operations_item_request_builder.go new file mode 100644 index 0000000..6bb932b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_async_operations_item_request_builder.go @@ -0,0 +1,118 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder builds and executes requests for operations under \data-services\v1beta1\async-operations\{id} +type V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1AsyncOperationsAsyncOperationsItemRequestBuilderGetQueryParameters returns the async-operation with the given id. +type V1beta1AsyncOperationsAsyncOperationsItemRequestBuilderGetQueryParameters struct { + // A list of properties to include in the response. + Select *string `uriparametername:"select"` +} +// V1beta1AsyncOperationsAsyncOperationsItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1AsyncOperationsAsyncOperationsItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1AsyncOperationsAsyncOperationsItemRequestBuilderGetQueryParameters +} +// NewV1beta1AsyncOperationsAsyncOperationsItemRequestBuilderInternal instantiates a new V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder and sets the default values. +func NewV1beta1AsyncOperationsAsyncOperationsItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder) { + m := &V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/async-operations/{id}{?select*}", pathParameters), + } + return m +} +// NewV1beta1AsyncOperationsAsyncOperationsItemRequestBuilder instantiates a new V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder and sets the default values. +func NewV1beta1AsyncOperationsAsyncOperationsItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1AsyncOperationsAsyncOperationsItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns the async-operation with the given id. +// Deprecated: This method is obsolete. Use GetAsAsyncOperationsGetResponse instead. +// returns a V1beta1AsyncOperationsItemAsyncOperationsResponseable when successful +// returns a V1beta1AsyncOperationsItemAsyncOperations400Error error when the service returns a 400 status code +// returns a V1beta1AsyncOperationsItemAsyncOperations401Error error when the service returns a 401 status code +// returns a V1beta1AsyncOperationsItemAsyncOperations403Error error when the service returns a 403 status code +// returns a V1beta1AsyncOperationsItemAsyncOperations404Error error when the service returns a 404 status code +// returns a V1beta1AsyncOperationsItemAsyncOperations500Error error when the service returns a 500 status code +// returns a V1beta1AsyncOperationsItemAsyncOperations503Error error when the service returns a 503 status code +func (m *V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1AsyncOperationsAsyncOperationsItemRequestBuilderGetRequestConfiguration)(V1beta1AsyncOperationsItemAsyncOperationsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1AsyncOperationsItemAsyncOperations400ErrorFromDiscriminatorValue, + "401": CreateV1beta1AsyncOperationsItemAsyncOperations401ErrorFromDiscriminatorValue, + "403": CreateV1beta1AsyncOperationsItemAsyncOperations403ErrorFromDiscriminatorValue, + "404": CreateV1beta1AsyncOperationsItemAsyncOperations404ErrorFromDiscriminatorValue, + "500": CreateV1beta1AsyncOperationsItemAsyncOperations500ErrorFromDiscriminatorValue, + "503": CreateV1beta1AsyncOperationsItemAsyncOperations503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1AsyncOperationsItemAsyncOperationsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1AsyncOperationsItemAsyncOperationsResponseable), nil +} +// GetAsAsyncOperationsGetResponse returns the async-operation with the given id. +// returns a V1beta1AsyncOperationsItemAsyncOperationsGetResponseable when successful +// returns a V1beta1AsyncOperationsItemAsyncOperations400Error error when the service returns a 400 status code +// returns a V1beta1AsyncOperationsItemAsyncOperations401Error error when the service returns a 401 status code +// returns a V1beta1AsyncOperationsItemAsyncOperations403Error error when the service returns a 403 status code +// returns a V1beta1AsyncOperationsItemAsyncOperations404Error error when the service returns a 404 status code +// returns a V1beta1AsyncOperationsItemAsyncOperations500Error error when the service returns a 500 status code +// returns a V1beta1AsyncOperationsItemAsyncOperations503Error error when the service returns a 503 status code +func (m *V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder) GetAsAsyncOperationsGetResponse(ctx context.Context, requestConfiguration *V1beta1AsyncOperationsAsyncOperationsItemRequestBuilderGetRequestConfiguration)(V1beta1AsyncOperationsItemAsyncOperationsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1AsyncOperationsItemAsyncOperations400ErrorFromDiscriminatorValue, + "401": CreateV1beta1AsyncOperationsItemAsyncOperations401ErrorFromDiscriminatorValue, + "403": CreateV1beta1AsyncOperationsItemAsyncOperations403ErrorFromDiscriminatorValue, + "404": CreateV1beta1AsyncOperationsItemAsyncOperations404ErrorFromDiscriminatorValue, + "500": CreateV1beta1AsyncOperationsItemAsyncOperations500ErrorFromDiscriminatorValue, + "503": CreateV1beta1AsyncOperationsItemAsyncOperations503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1AsyncOperationsItemAsyncOperationsGetResponseable), nil +} +// ToGetRequestInformation returns the async-operation with the given id. +// returns a *RequestInformation when successful +func (m *V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1AsyncOperationsAsyncOperationsItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder when successful +func (m *V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder) WithUrl(rawUrl string)(*V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder) { + return NewV1beta1AsyncOperationsAsyncOperationsItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response.go new file mode 100644 index 0000000..9cc108e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response.go @@ -0,0 +1,92 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperationsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The items property + items []V1beta1AsyncOperationsGetResponse_itemsable +} +// NewV1beta1AsyncOperationsGetResponse instantiates a new V1beta1AsyncOperationsGetResponse and sets the default values. +func NewV1beta1AsyncOperationsGetResponse()(*V1beta1AsyncOperationsGetResponse) { + m := &V1beta1AsyncOperationsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1AsyncOperationsGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1AsyncOperationsGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1AsyncOperationsGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + return res +} +// GetItems gets the items property value. The items property +// returns a []V1beta1AsyncOperationsGetResponse_itemsable when successful +func (m *V1beta1AsyncOperationsGetResponse) GetItems()([]V1beta1AsyncOperationsGetResponse_itemsable) { + return m.items +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetItems sets the items property value. The items property +func (m *V1beta1AsyncOperationsGetResponse) SetItems(value []V1beta1AsyncOperationsGetResponse_itemsable)() { + m.items = value +} +type V1beta1AsyncOperationsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetItems()([]V1beta1AsyncOperationsGetResponse_itemsable) + SetItems(value []V1beta1AsyncOperationsGetResponse_itemsable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items.go new file mode 100644 index 0000000..cdc9c45 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items.go @@ -0,0 +1,919 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AsyncOperationsGetResponse_items the operation resource provides information about progress of asynchronousrequest processing and is where associated resources can be found. +type V1beta1AsyncOperationsGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A link to be displayed in the Operations UI. This can be used when a operation is paused to take the user to the console UI page with information on how to unpause the operation, or for more general information when the operation is in other states. + additionalDetails V1beta1AsyncOperationsGetResponse_items_additionalDetailsable + // Resources that are associated with the operation. These may be created by the operation or other resources that are involved in the operation. + associatedResources []V1beta1AsyncOperationsGetResponse_items_associatedResourcesable + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // The displayed name for the operation. + displayName *string + // The time this operation completed. + endedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The error response status of the operation. + error V1beta1AsyncOperationsGetResponse_items_errorable + // An estimate of how long the operation will run before completing. + estimatedRunningDurationMinutes *int32 + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // A list of groups associated with this operation. + groups []V1beta1AsyncOperationsGetResponse_items_groupsable + // Indicates this operation possesses child operations. The list of child operations for a given operation may be acquired by querying /data-services/v1beta1/async-operations?filter=parent/id+eq+'{id}' with pagination parameters added as needed to retrieve the full list. + hasChildOperations *bool + // The health status indicates if any errors or problems have been encountered during the operation. Expected values are OK, ERROR, WARNING, UNKNOWN, and UNSPECIFIED. + healthStatus *string + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Time stamped messages that record the progress of the operation. The number of messages presented is limited in number and only the most recent messages are included. Some older log messages may therefore be removed to make room for newer messages. + logMessages []V1beta1AsyncOperationsGetResponse_items_logMessagesable + // A system specified name for the resource. + name *string + // The parent is the operation that initiated this sub-operation. If this operation is not a sub-operation this will be null. + parent V1beta1AsyncOperationsGetResponse_items_parentable + // A percentage representation of progress to completion. + progressPercent *int32 + // Recommendations on how to fix failing operations. + recommendations []V1beta1AsyncOperationsGetResponse_items_recommendationsable + // The self reference for this resource. + resourceUri *string + // The root of the tree of operations. If this operation is not part of a tree this will be null. + rootOperation V1beta1AsyncOperationsGetResponse_items_rootOperationable + // List of services this operation belongs to, can be used to filter to specific services in the UI. + services []string + // The resource that was used to initiate the operation. + sourceResourceUri *string + // The time this operation was started. + startedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // A message to indicate the current state of the operation, for example the current step in a workflow.Expected values are INITIALIZED, RUNNING, FAILED, SUCCEEDED, TIMEDOUT, PAUSED, CANCELLED, and UNSPECIFIED. + state *string + // The count of the number of child Operations below this one, recursively. + subtreeOperationCount *int32 + // This attribute suggests a suitable interval to use when polling for progress. Where specified this will be based on the frequency with which the operation is likely to be updated. + suggestedPollingIntervalSeconds *int32 + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The ID or email address of the user that initiated the operation. + userId *string +} +// NewV1beta1AsyncOperationsGetResponse_items instantiates a new V1beta1AsyncOperationsGetResponse_items and sets the default values. +func NewV1beta1AsyncOperationsGetResponse_items()(*V1beta1AsyncOperationsGetResponse_items) { + m := &V1beta1AsyncOperationsGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAdditionalDetails gets the additionalDetails property value. A link to be displayed in the Operations UI. This can be used when a operation is paused to take the user to the console UI page with information on how to unpause the operation, or for more general information when the operation is in other states. +// returns a V1beta1AsyncOperationsGetResponse_items_additionalDetailsable when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetAdditionalDetails()(V1beta1AsyncOperationsGetResponse_items_additionalDetailsable) { + return m.additionalDetails +} +// GetAssociatedResources gets the associatedResources property value. Resources that are associated with the operation. These may be created by the operation or other resources that are involved in the operation. +// returns a []V1beta1AsyncOperationsGetResponse_items_associatedResourcesable when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetAssociatedResources()([]V1beta1AsyncOperationsGetResponse_items_associatedResourcesable) { + return m.associatedResources +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetDisplayName gets the displayName property value. The displayed name for the operation. +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetDisplayName()(*string) { + return m.displayName +} +// GetEndedAt gets the endedAt property value. The time this operation completed. +// returns a *Time when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetEndedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.endedAt +} +// GetError gets the error property value. The error response status of the operation. +// returns a V1beta1AsyncOperationsGetResponse_items_errorable when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetError()(V1beta1AsyncOperationsGetResponse_items_errorable) { + return m.error +} +// GetEstimatedRunningDurationMinutes gets the estimatedRunningDurationMinutes property value. An estimate of how long the operation will run before completing. +// returns a *int32 when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetEstimatedRunningDurationMinutes()(*int32) { + return m.estimatedRunningDurationMinutes +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["additionalDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1AsyncOperationsGetResponse_items_additionalDetailsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAdditionalDetails(val.(V1beta1AsyncOperationsGetResponse_items_additionalDetailsable)) + } + return nil + } + res["associatedResources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1AsyncOperationsGetResponse_items_associatedResourcesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1AsyncOperationsGetResponse_items_associatedResourcesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1AsyncOperationsGetResponse_items_associatedResourcesable) + } + } + m.SetAssociatedResources(res) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["endedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetEndedAt(val) + } + return nil + } + res["error"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1AsyncOperationsGetResponse_items_errorFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetError(val.(V1beta1AsyncOperationsGetResponse_items_errorable)) + } + return nil + } + res["estimatedRunningDurationMinutes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetEstimatedRunningDurationMinutes(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1AsyncOperationsGetResponse_items_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1AsyncOperationsGetResponse_items_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1AsyncOperationsGetResponse_items_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["hasChildOperations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetHasChildOperations(val) + } + return nil + } + res["healthStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetHealthStatus(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["logMessages"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1AsyncOperationsGetResponse_items_logMessagesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1AsyncOperationsGetResponse_items_logMessagesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1AsyncOperationsGetResponse_items_logMessagesable) + } + } + m.SetLogMessages(res) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["parent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1AsyncOperationsGetResponse_items_parentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetParent(val.(V1beta1AsyncOperationsGetResponse_items_parentable)) + } + return nil + } + res["progressPercent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetProgressPercent(val) + } + return nil + } + res["recommendations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1AsyncOperationsGetResponse_items_recommendationsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1AsyncOperationsGetResponse_items_recommendationsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1AsyncOperationsGetResponse_items_recommendationsable) + } + } + m.SetRecommendations(res) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["rootOperation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1AsyncOperationsGetResponse_items_rootOperationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetRootOperation(val.(V1beta1AsyncOperationsGetResponse_items_rootOperationable)) + } + return nil + } + res["services"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetServices(res) + } + return nil + } + res["sourceResourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSourceResourceUri(val) + } + return nil + } + res["startedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStartedAt(val) + } + return nil + } + res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetState(val) + } + return nil + } + res["subtreeOperationCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetSubtreeOperationCount(val) + } + return nil + } + res["suggestedPollingIntervalSeconds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetSuggestedPollingIntervalSeconds(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + res["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUserId(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetGeneration()(*int64) { + return m.generation +} +// GetGroups gets the groups property value. A list of groups associated with this operation. +// returns a []V1beta1AsyncOperationsGetResponse_items_groupsable when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetGroups()([]V1beta1AsyncOperationsGetResponse_items_groupsable) { + return m.groups +} +// GetHasChildOperations gets the hasChildOperations property value. Indicates this operation possesses child operations. The list of child operations for a given operation may be acquired by querying /data-services/v1beta1/async-operations?filter=parent/id+eq+'{id}' with pagination parameters added as needed to retrieve the full list. +// returns a *bool when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetHasChildOperations()(*bool) { + return m.hasChildOperations +} +// GetHealthStatus gets the healthStatus property value. The health status indicates if any errors or problems have been encountered during the operation. Expected values are OK, ERROR, WARNING, UNKNOWN, and UNSPECIFIED. +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetHealthStatus()(*string) { + return m.healthStatus +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetLogMessages gets the logMessages property value. Time stamped messages that record the progress of the operation. The number of messages presented is limited in number and only the most recent messages are included. Some older log messages may therefore be removed to make room for newer messages. +// returns a []V1beta1AsyncOperationsGetResponse_items_logMessagesable when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetLogMessages()([]V1beta1AsyncOperationsGetResponse_items_logMessagesable) { + return m.logMessages +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetName()(*string) { + return m.name +} +// GetParent gets the parent property value. The parent is the operation that initiated this sub-operation. If this operation is not a sub-operation this will be null. +// returns a V1beta1AsyncOperationsGetResponse_items_parentable when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetParent()(V1beta1AsyncOperationsGetResponse_items_parentable) { + return m.parent +} +// GetProgressPercent gets the progressPercent property value. A percentage representation of progress to completion. +// returns a *int32 when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetProgressPercent()(*int32) { + return m.progressPercent +} +// GetRecommendations gets the recommendations property value. Recommendations on how to fix failing operations. +// returns a []V1beta1AsyncOperationsGetResponse_items_recommendationsable when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetRecommendations()([]V1beta1AsyncOperationsGetResponse_items_recommendationsable) { + return m.recommendations +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetRootOperation gets the rootOperation property value. The root of the tree of operations. If this operation is not part of a tree this will be null. +// returns a V1beta1AsyncOperationsGetResponse_items_rootOperationable when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetRootOperation()(V1beta1AsyncOperationsGetResponse_items_rootOperationable) { + return m.rootOperation +} +// GetServices gets the services property value. List of services this operation belongs to, can be used to filter to specific services in the UI. +// returns a []string when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetServices()([]string) { + return m.services +} +// GetSourceResourceUri gets the sourceResourceUri property value. The resource that was used to initiate the operation. +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetSourceResourceUri()(*string) { + return m.sourceResourceUri +} +// GetStartedAt gets the startedAt property value. The time this operation was started. +// returns a *Time when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetStartedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.startedAt +} +// GetState gets the state property value. A message to indicate the current state of the operation, for example the current step in a workflow.Expected values are INITIALIZED, RUNNING, FAILED, SUCCEEDED, TIMEDOUT, PAUSED, CANCELLED, and UNSPECIFIED. +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetState()(*string) { + return m.state +} +// GetSubtreeOperationCount gets the subtreeOperationCount property value. The count of the number of child Operations below this one, recursively. +// returns a *int32 when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetSubtreeOperationCount()(*int32) { + return m.subtreeOperationCount +} +// GetSuggestedPollingIntervalSeconds gets the suggestedPollingIntervalSeconds property value. This attribute suggests a suitable interval to use when polling for progress. Where specified this will be based on the frequency with which the operation is likely to be updated. +// returns a *int32 when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetSuggestedPollingIntervalSeconds()(*int32) { + return m.suggestedPollingIntervalSeconds +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// GetUserId gets the userId property value. The ID or email address of the user that initiated the operation. +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items) GetUserId()(*string) { + return m.userId +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("additionalDetails", m.GetAdditionalDetails()) + if err != nil { + return err + } + } + if m.GetAssociatedResources() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAssociatedResources())) + for i, v := range m.GetAssociatedResources() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("associatedResources", cast) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("endedAt", m.GetEndedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("error", m.GetError()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("estimatedRunningDurationMinutes", m.GetEstimatedRunningDurationMinutes()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("hasChildOperations", m.GetHasChildOperations()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("healthStatus", m.GetHealthStatus()) + if err != nil { + return err + } + } + if m.GetLogMessages() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetLogMessages())) + for i, v := range m.GetLogMessages() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("logMessages", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("parent", m.GetParent()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("progressPercent", m.GetProgressPercent()) + if err != nil { + return err + } + } + if m.GetRecommendations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRecommendations())) + for i, v := range m.GetRecommendations() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("recommendations", cast) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("rootOperation", m.GetRootOperation()) + if err != nil { + return err + } + } + if m.GetServices() != nil { + err := writer.WriteCollectionOfStringValues("services", m.GetServices()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sourceResourceUri", m.GetSourceResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("startedAt", m.GetStartedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("state", m.GetState()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("subtreeOperationCount", m.GetSubtreeOperationCount()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("suggestedPollingIntervalSeconds", m.GetSuggestedPollingIntervalSeconds()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("userId", m.GetUserId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAdditionalDetails sets the additionalDetails property value. A link to be displayed in the Operations UI. This can be used when a operation is paused to take the user to the console UI page with information on how to unpause the operation, or for more general information when the operation is in other states. +func (m *V1beta1AsyncOperationsGetResponse_items) SetAdditionalDetails(value V1beta1AsyncOperationsGetResponse_items_additionalDetailsable)() { + m.additionalDetails = value +} +// SetAssociatedResources sets the associatedResources property value. Resources that are associated with the operation. These may be created by the operation or other resources that are involved in the operation. +func (m *V1beta1AsyncOperationsGetResponse_items) SetAssociatedResources(value []V1beta1AsyncOperationsGetResponse_items_associatedResourcesable)() { + m.associatedResources = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1AsyncOperationsGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1AsyncOperationsGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDisplayName sets the displayName property value. The displayed name for the operation. +func (m *V1beta1AsyncOperationsGetResponse_items) SetDisplayName(value *string)() { + m.displayName = value +} +// SetEndedAt sets the endedAt property value. The time this operation completed. +func (m *V1beta1AsyncOperationsGetResponse_items) SetEndedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.endedAt = value +} +// SetError sets the error property value. The error response status of the operation. +func (m *V1beta1AsyncOperationsGetResponse_items) SetError(value V1beta1AsyncOperationsGetResponse_items_errorable)() { + m.error = value +} +// SetEstimatedRunningDurationMinutes sets the estimatedRunningDurationMinutes property value. An estimate of how long the operation will run before completing. +func (m *V1beta1AsyncOperationsGetResponse_items) SetEstimatedRunningDurationMinutes(value *int32)() { + m.estimatedRunningDurationMinutes = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1AsyncOperationsGetResponse_items) SetGeneration(value *int64)() { + m.generation = value +} +// SetGroups sets the groups property value. A list of groups associated with this operation. +func (m *V1beta1AsyncOperationsGetResponse_items) SetGroups(value []V1beta1AsyncOperationsGetResponse_items_groupsable)() { + m.groups = value +} +// SetHasChildOperations sets the hasChildOperations property value. Indicates this operation possesses child operations. The list of child operations for a given operation may be acquired by querying /data-services/v1beta1/async-operations?filter=parent/id+eq+'{id}' with pagination parameters added as needed to retrieve the full list. +func (m *V1beta1AsyncOperationsGetResponse_items) SetHasChildOperations(value *bool)() { + m.hasChildOperations = value +} +// SetHealthStatus sets the healthStatus property value. The health status indicates if any errors or problems have been encountered during the operation. Expected values are OK, ERROR, WARNING, UNKNOWN, and UNSPECIFIED. +func (m *V1beta1AsyncOperationsGetResponse_items) SetHealthStatus(value *string)() { + m.healthStatus = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1AsyncOperationsGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetLogMessages sets the logMessages property value. Time stamped messages that record the progress of the operation. The number of messages presented is limited in number and only the most recent messages are included. Some older log messages may therefore be removed to make room for newer messages. +func (m *V1beta1AsyncOperationsGetResponse_items) SetLogMessages(value []V1beta1AsyncOperationsGetResponse_items_logMessagesable)() { + m.logMessages = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1AsyncOperationsGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetParent sets the parent property value. The parent is the operation that initiated this sub-operation. If this operation is not a sub-operation this will be null. +func (m *V1beta1AsyncOperationsGetResponse_items) SetParent(value V1beta1AsyncOperationsGetResponse_items_parentable)() { + m.parent = value +} +// SetProgressPercent sets the progressPercent property value. A percentage representation of progress to completion. +func (m *V1beta1AsyncOperationsGetResponse_items) SetProgressPercent(value *int32)() { + m.progressPercent = value +} +// SetRecommendations sets the recommendations property value. Recommendations on how to fix failing operations. +func (m *V1beta1AsyncOperationsGetResponse_items) SetRecommendations(value []V1beta1AsyncOperationsGetResponse_items_recommendationsable)() { + m.recommendations = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1AsyncOperationsGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetRootOperation sets the rootOperation property value. The root of the tree of operations. If this operation is not part of a tree this will be null. +func (m *V1beta1AsyncOperationsGetResponse_items) SetRootOperation(value V1beta1AsyncOperationsGetResponse_items_rootOperationable)() { + m.rootOperation = value +} +// SetServices sets the services property value. List of services this operation belongs to, can be used to filter to specific services in the UI. +func (m *V1beta1AsyncOperationsGetResponse_items) SetServices(value []string)() { + m.services = value +} +// SetSourceResourceUri sets the sourceResourceUri property value. The resource that was used to initiate the operation. +func (m *V1beta1AsyncOperationsGetResponse_items) SetSourceResourceUri(value *string)() { + m.sourceResourceUri = value +} +// SetStartedAt sets the startedAt property value. The time this operation was started. +func (m *V1beta1AsyncOperationsGetResponse_items) SetStartedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.startedAt = value +} +// SetState sets the state property value. A message to indicate the current state of the operation, for example the current step in a workflow.Expected values are INITIALIZED, RUNNING, FAILED, SUCCEEDED, TIMEDOUT, PAUSED, CANCELLED, and UNSPECIFIED. +func (m *V1beta1AsyncOperationsGetResponse_items) SetState(value *string)() { + m.state = value +} +// SetSubtreeOperationCount sets the subtreeOperationCount property value. The count of the number of child Operations below this one, recursively. +func (m *V1beta1AsyncOperationsGetResponse_items) SetSubtreeOperationCount(value *int32)() { + m.subtreeOperationCount = value +} +// SetSuggestedPollingIntervalSeconds sets the suggestedPollingIntervalSeconds property value. This attribute suggests a suitable interval to use when polling for progress. Where specified this will be based on the frequency with which the operation is likely to be updated. +func (m *V1beta1AsyncOperationsGetResponse_items) SetSuggestedPollingIntervalSeconds(value *int32)() { + m.suggestedPollingIntervalSeconds = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1AsyncOperationsGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1AsyncOperationsGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +// SetUserId sets the userId property value. The ID or email address of the user that initiated the operation. +func (m *V1beta1AsyncOperationsGetResponse_items) SetUserId(value *string)() { + m.userId = value +} +type V1beta1AsyncOperationsGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAdditionalDetails()(V1beta1AsyncOperationsGetResponse_items_additionalDetailsable) + GetAssociatedResources()([]V1beta1AsyncOperationsGetResponse_items_associatedResourcesable) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDisplayName()(*string) + GetEndedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetError()(V1beta1AsyncOperationsGetResponse_items_errorable) + GetEstimatedRunningDurationMinutes()(*int32) + GetGeneration()(*int64) + GetGroups()([]V1beta1AsyncOperationsGetResponse_items_groupsable) + GetHasChildOperations()(*bool) + GetHealthStatus()(*string) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLogMessages()([]V1beta1AsyncOperationsGetResponse_items_logMessagesable) + GetName()(*string) + GetParent()(V1beta1AsyncOperationsGetResponse_items_parentable) + GetProgressPercent()(*int32) + GetRecommendations()([]V1beta1AsyncOperationsGetResponse_items_recommendationsable) + GetResourceUri()(*string) + GetRootOperation()(V1beta1AsyncOperationsGetResponse_items_rootOperationable) + GetServices()([]string) + GetSourceResourceUri()(*string) + GetStartedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetState()(*string) + GetSubtreeOperationCount()(*int32) + GetSuggestedPollingIntervalSeconds()(*int32) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetUserId()(*string) + SetAdditionalDetails(value V1beta1AsyncOperationsGetResponse_items_additionalDetailsable)() + SetAssociatedResources(value []V1beta1AsyncOperationsGetResponse_items_associatedResourcesable)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDisplayName(value *string)() + SetEndedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetError(value V1beta1AsyncOperationsGetResponse_items_errorable)() + SetEstimatedRunningDurationMinutes(value *int32)() + SetGeneration(value *int64)() + SetGroups(value []V1beta1AsyncOperationsGetResponse_items_groupsable)() + SetHasChildOperations(value *bool)() + SetHealthStatus(value *string)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLogMessages(value []V1beta1AsyncOperationsGetResponse_items_logMessagesable)() + SetName(value *string)() + SetParent(value V1beta1AsyncOperationsGetResponse_items_parentable)() + SetProgressPercent(value *int32)() + SetRecommendations(value []V1beta1AsyncOperationsGetResponse_items_recommendationsable)() + SetResourceUri(value *string)() + SetRootOperation(value V1beta1AsyncOperationsGetResponse_items_rootOperationable)() + SetServices(value []string)() + SetSourceResourceUri(value *string)() + SetStartedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetState(value *string)() + SetSubtreeOperationCount(value *int32)() + SetSuggestedPollingIntervalSeconds(value *int32)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetUserId(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_additional_details.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_additional_details.go new file mode 100644 index 0000000..b891a30 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_additional_details.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AsyncOperationsGetResponse_items_additionalDetails references to other UI link include the consoleUri +type V1beta1AsyncOperationsGetResponse_items_additionalDetails struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The consoleUri property + consoleUri *string +} +// NewV1beta1AsyncOperationsGetResponse_items_additionalDetails instantiates a new V1beta1AsyncOperationsGetResponse_items_additionalDetails and sets the default values. +func NewV1beta1AsyncOperationsGetResponse_items_additionalDetails()(*V1beta1AsyncOperationsGetResponse_items_additionalDetails) { + m := &V1beta1AsyncOperationsGetResponse_items_additionalDetails{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsGetResponse_items_additionalDetailsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsGetResponse_items_additionalDetailsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsGetResponse_items_additionalDetails(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsGetResponse_items_additionalDetails) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetConsoleUri gets the consoleUri property value. The consoleUri property +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items_additionalDetails) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsGetResponse_items_additionalDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsGetResponse_items_additionalDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsGetResponse_items_additionalDetails) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetConsoleUri sets the consoleUri property value. The consoleUri property +func (m *V1beta1AsyncOperationsGetResponse_items_additionalDetails) SetConsoleUri(value *string)() { + m.consoleUri = value +} +type V1beta1AsyncOperationsGetResponse_items_additionalDetailsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConsoleUri()(*string) + SetConsoleUri(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_associated_resources.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_associated_resources.go new file mode 100644 index 0000000..dbb5253 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_associated_resources.go @@ -0,0 +1,121 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AsyncOperationsGetResponse_items_associatedResources references to other resources include the name, type and URI of the other resource. +type V1beta1AsyncOperationsGetResponse_items_associatedResources struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The name property + name *string + // The resourceUri property + resourceUri *string + // The type property + typeEscaped *string +} +// NewV1beta1AsyncOperationsGetResponse_items_associatedResources instantiates a new V1beta1AsyncOperationsGetResponse_items_associatedResources and sets the default values. +func NewV1beta1AsyncOperationsGetResponse_items_associatedResources()(*V1beta1AsyncOperationsGetResponse_items_associatedResources) { + m := &V1beta1AsyncOperationsGetResponse_items_associatedResources{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsGetResponse_items_associatedResourcesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsGetResponse_items_associatedResourcesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsGetResponse_items_associatedResources(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsGetResponse_items_associatedResources) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsGetResponse_items_associatedResources) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items_associatedResources) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The resourceUri property +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items_associatedResources) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items_associatedResources) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsGetResponse_items_associatedResources) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsGetResponse_items_associatedResources) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. The name property +func (m *V1beta1AsyncOperationsGetResponse_items_associatedResources) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The resourceUri property +func (m *V1beta1AsyncOperationsGetResponse_items_associatedResources) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type property +func (m *V1beta1AsyncOperationsGetResponse_items_associatedResources) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1AsyncOperationsGetResponse_items_associatedResourcesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_error.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_error.go new file mode 100644 index 0000000..72fdcb2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_error.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AsyncOperationsGetResponse_items_error the error response status of the operation. +type V1beta1AsyncOperationsGetResponse_items_error struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1AsyncOperationsGetResponse_items_error instantiates a new V1beta1AsyncOperationsGetResponse_items_error and sets the default values. +func NewV1beta1AsyncOperationsGetResponse_items_error()(*V1beta1AsyncOperationsGetResponse_items_error) { + m := &V1beta1AsyncOperationsGetResponse_items_error{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsGetResponse_items_errorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsGetResponse_items_errorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsGetResponse_items_error(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsGetResponse_items_error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsGetResponse_items_error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsGetResponse_items_error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsGetResponse_items_error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1AsyncOperationsGetResponse_items_errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_groups.go new file mode 100644 index 0000000..8efaa07 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_groups.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperationsGetResponse_items_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // ID of the associated group + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the associated group + name *string +} +// NewV1beta1AsyncOperationsGetResponse_items_groups instantiates a new V1beta1AsyncOperationsGetResponse_items_groups and sets the default values. +func NewV1beta1AsyncOperationsGetResponse_items_groups()(*V1beta1AsyncOperationsGetResponse_items_groups) { + m := &V1beta1AsyncOperationsGetResponse_items_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsGetResponse_items_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsGetResponse_items_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsGetResponse_items_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsGetResponse_items_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsGetResponse_items_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. ID of the associated group +// returns a *UUID when successful +func (m *V1beta1AsyncOperationsGetResponse_items_groups) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsGetResponse_items_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsGetResponse_items_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. ID of the associated group +func (m *V1beta1AsyncOperationsGetResponse_items_groups) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1AsyncOperationsGetResponse_items_groups) SetName(value *string)() { + m.name = value +} +type V1beta1AsyncOperationsGetResponse_items_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_log_messages.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_log_messages.go new file mode 100644 index 0000000..b2eb101 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_log_messages.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperationsGetResponse_items_logMessages struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The message property + message *string + // The timestamp property + timestamp *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1AsyncOperationsGetResponse_items_logMessages instantiates a new V1beta1AsyncOperationsGetResponse_items_logMessages and sets the default values. +func NewV1beta1AsyncOperationsGetResponse_items_logMessages()(*V1beta1AsyncOperationsGetResponse_items_logMessages) { + m := &V1beta1AsyncOperationsGetResponse_items_logMessages{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsGetResponse_items_logMessagesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsGetResponse_items_logMessagesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsGetResponse_items_logMessages(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsGetResponse_items_logMessages) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsGetResponse_items_logMessages) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + res["timestamp"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetTimestamp(val) + } + return nil + } + return res +} +// GetMessage gets the message property value. The message property +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items_logMessages) GetMessage()(*string) { + return m.message +} +// GetTimestamp gets the timestamp property value. The timestamp property +// returns a *Time when successful +func (m *V1beta1AsyncOperationsGetResponse_items_logMessages) GetTimestamp()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.timestamp +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsGetResponse_items_logMessages) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("timestamp", m.GetTimestamp()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsGetResponse_items_logMessages) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetMessage sets the message property value. The message property +func (m *V1beta1AsyncOperationsGetResponse_items_logMessages) SetMessage(value *string)() { + m.message = value +} +// SetTimestamp sets the timestamp property value. The timestamp property +func (m *V1beta1AsyncOperationsGetResponse_items_logMessages) SetTimestamp(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.timestamp = value +} +type V1beta1AsyncOperationsGetResponse_items_logMessagesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetMessage()(*string) + GetTimestamp()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetMessage(value *string)() + SetTimestamp(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_parent.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_parent.go new file mode 100644 index 0000000..5b833d4 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_parent.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AsyncOperationsGetResponse_items_parent the parent is the operation that initiated this sub-operation. If this operation is not a sub-operation this will be null. +type V1beta1AsyncOperationsGetResponse_items_parent struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1AsyncOperationsGetResponse_items_parent instantiates a new V1beta1AsyncOperationsGetResponse_items_parent and sets the default values. +func NewV1beta1AsyncOperationsGetResponse_items_parent()(*V1beta1AsyncOperationsGetResponse_items_parent) { + m := &V1beta1AsyncOperationsGetResponse_items_parent{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsGetResponse_items_parentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsGetResponse_items_parentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsGetResponse_items_parent(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsGetResponse_items_parent) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsGetResponse_items_parent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsGetResponse_items_parent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsGetResponse_items_parent) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1AsyncOperationsGetResponse_items_parentable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_recommendations.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_recommendations.go new file mode 100644 index 0000000..b643d59 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_recommendations.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperationsGetResponse_items_recommendations struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The message property + message *string +} +// NewV1beta1AsyncOperationsGetResponse_items_recommendations instantiates a new V1beta1AsyncOperationsGetResponse_items_recommendations and sets the default values. +func NewV1beta1AsyncOperationsGetResponse_items_recommendations()(*V1beta1AsyncOperationsGetResponse_items_recommendations) { + m := &V1beta1AsyncOperationsGetResponse_items_recommendations{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsGetResponse_items_recommendationsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsGetResponse_items_recommendationsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsGetResponse_items_recommendations(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsGetResponse_items_recommendations) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsGetResponse_items_recommendations) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetMessage gets the message property value. The message property +// returns a *string when successful +func (m *V1beta1AsyncOperationsGetResponse_items_recommendations) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsGetResponse_items_recommendations) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsGetResponse_items_recommendations) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetMessage sets the message property value. The message property +func (m *V1beta1AsyncOperationsGetResponse_items_recommendations) SetMessage(value *string)() { + m.message = value +} +type V1beta1AsyncOperationsGetResponse_items_recommendationsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetMessage()(*string) + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_root_operation.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_root_operation.go new file mode 100644 index 0000000..5ba3c01 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_get_response_escaped_items_escaped_root_operation.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AsyncOperationsGetResponse_items_rootOperation the root of the tree of operations. If this operation is not part of a tree this will be null. +type V1beta1AsyncOperationsGetResponse_items_rootOperation struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1AsyncOperationsGetResponse_items_rootOperation instantiates a new V1beta1AsyncOperationsGetResponse_items_rootOperation and sets the default values. +func NewV1beta1AsyncOperationsGetResponse_items_rootOperation()(*V1beta1AsyncOperationsGetResponse_items_rootOperation) { + m := &V1beta1AsyncOperationsGetResponse_items_rootOperation{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsGetResponse_items_rootOperationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsGetResponse_items_rootOperationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsGetResponse_items_rootOperation(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsGetResponse_items_rootOperation) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsGetResponse_items_rootOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsGetResponse_items_rootOperation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsGetResponse_items_rootOperation) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1AsyncOperationsGetResponse_items_rootOperationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations400_error.go new file mode 100644 index 0000000..e6d7d93 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations400_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperationsItemAsyncOperations400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: BAD_REQUEST, INVALID_PARAMETER + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1AsyncOperationsItemAsyncOperations400Error instantiates a new V1beta1AsyncOperationsItemAsyncOperations400Error and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperations400Error()(*V1beta1AsyncOperationsItemAsyncOperations400Error) { + m := &V1beta1AsyncOperationsItemAsyncOperations400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperations400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperations400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperations400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: BAD_REQUEST, INVALID_PARAMETER +// returns a UntypedNodeable when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations400Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsItemAsyncOperations400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsItemAsyncOperations400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: BAD_REQUEST, INVALID_PARAMETER +func (m *V1beta1AsyncOperationsItemAsyncOperations400Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1AsyncOperationsItemAsyncOperations400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations401_error.go new file mode 100644 index 0000000..f16e0cd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations401_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperationsItemAsyncOperations401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: UNAUTHENTICATED + errorCode *string +} +// NewV1beta1AsyncOperationsItemAsyncOperations401Error instantiates a new V1beta1AsyncOperationsItemAsyncOperations401Error and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperations401Error()(*V1beta1AsyncOperationsItemAsyncOperations401Error) { + m := &V1beta1AsyncOperationsItemAsyncOperations401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperations401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperations401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperations401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: UNAUTHENTICATED +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsItemAsyncOperations401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsItemAsyncOperations401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: UNAUTHENTICATED +func (m *V1beta1AsyncOperationsItemAsyncOperations401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +type V1beta1AsyncOperationsItemAsyncOperations401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(*string) + SetErrorCode(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations403_error.go new file mode 100644 index 0000000..fc50093 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations403_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperationsItemAsyncOperations403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: FORBIDDEN + errorCode *string +} +// NewV1beta1AsyncOperationsItemAsyncOperations403Error instantiates a new V1beta1AsyncOperationsItemAsyncOperations403Error and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperations403Error()(*V1beta1AsyncOperationsItemAsyncOperations403Error) { + m := &V1beta1AsyncOperationsItemAsyncOperations403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperations403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperations403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperations403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: FORBIDDEN +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsItemAsyncOperations403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsItemAsyncOperations403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: FORBIDDEN +func (m *V1beta1AsyncOperationsItemAsyncOperations403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +type V1beta1AsyncOperationsItemAsyncOperations403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(*string) + SetErrorCode(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations404_error.go new file mode 100644 index 0000000..67e7701 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations404_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperationsItemAsyncOperations404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: NOT_FOUND + errorCode *string +} +// NewV1beta1AsyncOperationsItemAsyncOperations404Error instantiates a new V1beta1AsyncOperationsItemAsyncOperations404Error and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperations404Error()(*V1beta1AsyncOperationsItemAsyncOperations404Error) { + m := &V1beta1AsyncOperationsItemAsyncOperations404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperations404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperations404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperations404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: NOT_FOUND +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsItemAsyncOperations404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsItemAsyncOperations404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: NOT_FOUND +func (m *V1beta1AsyncOperationsItemAsyncOperations404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +type V1beta1AsyncOperationsItemAsyncOperations404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(*string) + SetErrorCode(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations500_error.go new file mode 100644 index 0000000..0161907 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations500_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperationsItemAsyncOperations500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: INTERNAL_ERROR + errorCode *string +} +// NewV1beta1AsyncOperationsItemAsyncOperations500Error instantiates a new V1beta1AsyncOperationsItemAsyncOperations500Error and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperations500Error()(*V1beta1AsyncOperationsItemAsyncOperations500Error) { + m := &V1beta1AsyncOperationsItemAsyncOperations500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperations500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperations500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperations500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: INTERNAL_ERROR +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsItemAsyncOperations500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsItemAsyncOperations500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: INTERNAL_ERROR +func (m *V1beta1AsyncOperationsItemAsyncOperations500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +type V1beta1AsyncOperationsItemAsyncOperations500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(*string) + SetErrorCode(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations503_error.go new file mode 100644 index 0000000..d639a4f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations503_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperationsItemAsyncOperations503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: SERVICE_UNAVAILABLE + errorCode *string +} +// NewV1beta1AsyncOperationsItemAsyncOperations503Error instantiates a new V1beta1AsyncOperationsItemAsyncOperations503Error and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperations503Error()(*V1beta1AsyncOperationsItemAsyncOperations503Error) { + m := &V1beta1AsyncOperationsItemAsyncOperations503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperations503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperations503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperations503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: SERVICE_UNAVAILABLE +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsItemAsyncOperations503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsItemAsyncOperations503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsItemAsyncOperations503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: SERVICE_UNAVAILABLE +func (m *V1beta1AsyncOperationsItemAsyncOperations503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +type V1beta1AsyncOperationsItemAsyncOperations503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(*string) + SetErrorCode(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response.go new file mode 100644 index 0000000..01dcf33 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response.go @@ -0,0 +1,919 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AsyncOperationsItemAsyncOperationsGetResponse the operation resource provides information about progress of asynchronousrequest processing and is where associated resources can be found. +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A link to be displayed in the Operations UI. This can be used when a operation is paused to take the user to the console UI page with information on how to unpause the operation, or for more general information when the operation is in other states. + additionalDetails V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetailsable + // Resources that are associated with the operation. These may be created by the operation or other resources that are involved in the operation. + associatedResources []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResourcesable + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // The displayed name for the operation. + displayName *string + // The time this operation completed. + endedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The error response status of the operation. + error V1beta1AsyncOperationsItemAsyncOperationsGetResponse_errorable + // An estimate of how long the operation will run before completing. + estimatedRunningDurationMinutes *int32 + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // A list of groups associated with this operation. + groups []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groupsable + // Indicates this operation possesses child operations. The list of child operations for a given operation may be acquired by querying /data-services/v1beta1/async-operations?filter=parent/id+eq+'{id}' with pagination parameters added as needed to retrieve the full list. + hasChildOperations *bool + // The health status indicates if any errors or problems have been encountered during the operation. Expected values are OK, ERROR, WARNING, UNKNOWN, and UNSPECIFIED. + healthStatus *string + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Time stamped messages that record the progress of the operation. The number of messages presented is limited in number and only the most recent messages are included. Some older log messages may therefore be removed to make room for newer messages. + logMessages []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessagesable + // A system specified name for the resource. + name *string + // The parent is the operation that initiated this sub-operation. If this operation is not a sub-operation this will be null. + parent V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parentable + // A percentage representation of progress to completion. + progressPercent *int32 + // Recommendations on how to fix failing operations. + recommendations []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendationsable + // The self reference for this resource. + resourceUri *string + // The root of the tree of operations. If this operation is not part of a tree this will be null. + rootOperation V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperationable + // List of services this operation belongs to, can be used to filter to specific services in the UI. + services []string + // The resource that was used to initiate the operation. + sourceResourceUri *string + // The time this operation was started. + startedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // A message to indicate the current state of the operation, for example the current step in a workflow.Expected values are INITIALIZED, RUNNING, FAILED, SUCCEEDED, TIMEDOUT, PAUSED, CANCELLED, and UNSPECIFIED. + state *string + // The count of the number of child Operations below this one, recursively. + subtreeOperationCount *int32 + // This attribute suggests a suitable interval to use when polling for progress. Where specified this will be based on the frequency with which the operation is likely to be updated. + suggestedPollingIntervalSeconds *int32 + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The ID or email address of the user that initiated the operation. + userId *string +} +// NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse instantiates a new V1beta1AsyncOperationsItemAsyncOperationsGetResponse and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse()(*V1beta1AsyncOperationsItemAsyncOperationsGetResponse) { + m := &V1beta1AsyncOperationsItemAsyncOperationsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAdditionalDetails gets the additionalDetails property value. A link to be displayed in the Operations UI. This can be used when a operation is paused to take the user to the console UI page with information on how to unpause the operation, or for more general information when the operation is in other states. +// returns a V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetailsable when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetAdditionalDetails()(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetailsable) { + return m.additionalDetails +} +// GetAssociatedResources gets the associatedResources property value. Resources that are associated with the operation. These may be created by the operation or other resources that are involved in the operation. +// returns a []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResourcesable when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetAssociatedResources()([]V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResourcesable) { + return m.associatedResources +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDisplayName gets the displayName property value. The displayed name for the operation. +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetDisplayName()(*string) { + return m.displayName +} +// GetEndedAt gets the endedAt property value. The time this operation completed. +// returns a *Time when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetEndedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.endedAt +} +// GetError gets the error property value. The error response status of the operation. +// returns a V1beta1AsyncOperationsItemAsyncOperationsGetResponse_errorable when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetError()(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_errorable) { + return m.error +} +// GetEstimatedRunningDurationMinutes gets the estimatedRunningDurationMinutes property value. An estimate of how long the operation will run before completing. +// returns a *int32 when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetEstimatedRunningDurationMinutes()(*int32) { + return m.estimatedRunningDurationMinutes +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["additionalDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetailsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAdditionalDetails(val.(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetailsable)) + } + return nil + } + res["associatedResources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResourcesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResourcesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResourcesable) + } + } + m.SetAssociatedResources(res) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["endedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetEndedAt(val) + } + return nil + } + res["error"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_errorFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetError(val.(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_errorable)) + } + return nil + } + res["estimatedRunningDurationMinutes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetEstimatedRunningDurationMinutes(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["hasChildOperations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetHasChildOperations(val) + } + return nil + } + res["healthStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetHealthStatus(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["logMessages"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessagesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessagesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessagesable) + } + } + m.SetLogMessages(res) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["parent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_parentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetParent(val.(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parentable)) + } + return nil + } + res["progressPercent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetProgressPercent(val) + } + return nil + } + res["recommendations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendationsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendationsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendationsable) + } + } + m.SetRecommendations(res) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["rootOperation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetRootOperation(val.(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperationable)) + } + return nil + } + res["services"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetServices(res) + } + return nil + } + res["sourceResourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSourceResourceUri(val) + } + return nil + } + res["startedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStartedAt(val) + } + return nil + } + res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetState(val) + } + return nil + } + res["subtreeOperationCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetSubtreeOperationCount(val) + } + return nil + } + res["suggestedPollingIntervalSeconds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetSuggestedPollingIntervalSeconds(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + res["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUserId(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetGeneration()(*int64) { + return m.generation +} +// GetGroups gets the groups property value. A list of groups associated with this operation. +// returns a []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groupsable when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetGroups()([]V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groupsable) { + return m.groups +} +// GetHasChildOperations gets the hasChildOperations property value. Indicates this operation possesses child operations. The list of child operations for a given operation may be acquired by querying /data-services/v1beta1/async-operations?filter=parent/id+eq+'{id}' with pagination parameters added as needed to retrieve the full list. +// returns a *bool when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetHasChildOperations()(*bool) { + return m.hasChildOperations +} +// GetHealthStatus gets the healthStatus property value. The health status indicates if any errors or problems have been encountered during the operation. Expected values are OK, ERROR, WARNING, UNKNOWN, and UNSPECIFIED. +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetHealthStatus()(*string) { + return m.healthStatus +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetLogMessages gets the logMessages property value. Time stamped messages that record the progress of the operation. The number of messages presented is limited in number and only the most recent messages are included. Some older log messages may therefore be removed to make room for newer messages. +// returns a []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessagesable when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetLogMessages()([]V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessagesable) { + return m.logMessages +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetName()(*string) { + return m.name +} +// GetParent gets the parent property value. The parent is the operation that initiated this sub-operation. If this operation is not a sub-operation this will be null. +// returns a V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parentable when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetParent()(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parentable) { + return m.parent +} +// GetProgressPercent gets the progressPercent property value. A percentage representation of progress to completion. +// returns a *int32 when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetProgressPercent()(*int32) { + return m.progressPercent +} +// GetRecommendations gets the recommendations property value. Recommendations on how to fix failing operations. +// returns a []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendationsable when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetRecommendations()([]V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendationsable) { + return m.recommendations +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetRootOperation gets the rootOperation property value. The root of the tree of operations. If this operation is not part of a tree this will be null. +// returns a V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperationable when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetRootOperation()(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperationable) { + return m.rootOperation +} +// GetServices gets the services property value. List of services this operation belongs to, can be used to filter to specific services in the UI. +// returns a []string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetServices()([]string) { + return m.services +} +// GetSourceResourceUri gets the sourceResourceUri property value. The resource that was used to initiate the operation. +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetSourceResourceUri()(*string) { + return m.sourceResourceUri +} +// GetStartedAt gets the startedAt property value. The time this operation was started. +// returns a *Time when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetStartedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.startedAt +} +// GetState gets the state property value. A message to indicate the current state of the operation, for example the current step in a workflow.Expected values are INITIALIZED, RUNNING, FAILED, SUCCEEDED, TIMEDOUT, PAUSED, CANCELLED, and UNSPECIFIED. +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetState()(*string) { + return m.state +} +// GetSubtreeOperationCount gets the subtreeOperationCount property value. The count of the number of child Operations below this one, recursively. +// returns a *int32 when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetSubtreeOperationCount()(*int32) { + return m.subtreeOperationCount +} +// GetSuggestedPollingIntervalSeconds gets the suggestedPollingIntervalSeconds property value. This attribute suggests a suitable interval to use when polling for progress. Where specified this will be based on the frequency with which the operation is likely to be updated. +// returns a *int32 when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetSuggestedPollingIntervalSeconds()(*int32) { + return m.suggestedPollingIntervalSeconds +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// GetUserId gets the userId property value. The ID or email address of the user that initiated the operation. +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) GetUserId()(*string) { + return m.userId +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("additionalDetails", m.GetAdditionalDetails()) + if err != nil { + return err + } + } + if m.GetAssociatedResources() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAssociatedResources())) + for i, v := range m.GetAssociatedResources() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("associatedResources", cast) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("endedAt", m.GetEndedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("error", m.GetError()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("estimatedRunningDurationMinutes", m.GetEstimatedRunningDurationMinutes()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("hasChildOperations", m.GetHasChildOperations()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("healthStatus", m.GetHealthStatus()) + if err != nil { + return err + } + } + if m.GetLogMessages() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetLogMessages())) + for i, v := range m.GetLogMessages() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("logMessages", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("parent", m.GetParent()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("progressPercent", m.GetProgressPercent()) + if err != nil { + return err + } + } + if m.GetRecommendations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRecommendations())) + for i, v := range m.GetRecommendations() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("recommendations", cast) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("rootOperation", m.GetRootOperation()) + if err != nil { + return err + } + } + if m.GetServices() != nil { + err := writer.WriteCollectionOfStringValues("services", m.GetServices()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sourceResourceUri", m.GetSourceResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("startedAt", m.GetStartedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("state", m.GetState()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("subtreeOperationCount", m.GetSubtreeOperationCount()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("suggestedPollingIntervalSeconds", m.GetSuggestedPollingIntervalSeconds()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("userId", m.GetUserId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAdditionalDetails sets the additionalDetails property value. A link to be displayed in the Operations UI. This can be used when a operation is paused to take the user to the console UI page with information on how to unpause the operation, or for more general information when the operation is in other states. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetAdditionalDetails(value V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetailsable)() { + m.additionalDetails = value +} +// SetAssociatedResources sets the associatedResources property value. Resources that are associated with the operation. These may be created by the operation or other resources that are involved in the operation. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetAssociatedResources(value []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResourcesable)() { + m.associatedResources = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDisplayName sets the displayName property value. The displayed name for the operation. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetDisplayName(value *string)() { + m.displayName = value +} +// SetEndedAt sets the endedAt property value. The time this operation completed. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetEndedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.endedAt = value +} +// SetError sets the error property value. The error response status of the operation. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetError(value V1beta1AsyncOperationsItemAsyncOperationsGetResponse_errorable)() { + m.error = value +} +// SetEstimatedRunningDurationMinutes sets the estimatedRunningDurationMinutes property value. An estimate of how long the operation will run before completing. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetEstimatedRunningDurationMinutes(value *int32)() { + m.estimatedRunningDurationMinutes = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetGeneration(value *int64)() { + m.generation = value +} +// SetGroups sets the groups property value. A list of groups associated with this operation. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetGroups(value []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groupsable)() { + m.groups = value +} +// SetHasChildOperations sets the hasChildOperations property value. Indicates this operation possesses child operations. The list of child operations for a given operation may be acquired by querying /data-services/v1beta1/async-operations?filter=parent/id+eq+'{id}' with pagination parameters added as needed to retrieve the full list. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetHasChildOperations(value *bool)() { + m.hasChildOperations = value +} +// SetHealthStatus sets the healthStatus property value. The health status indicates if any errors or problems have been encountered during the operation. Expected values are OK, ERROR, WARNING, UNKNOWN, and UNSPECIFIED. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetHealthStatus(value *string)() { + m.healthStatus = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetLogMessages sets the logMessages property value. Time stamped messages that record the progress of the operation. The number of messages presented is limited in number and only the most recent messages are included. Some older log messages may therefore be removed to make room for newer messages. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetLogMessages(value []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessagesable)() { + m.logMessages = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetName(value *string)() { + m.name = value +} +// SetParent sets the parent property value. The parent is the operation that initiated this sub-operation. If this operation is not a sub-operation this will be null. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetParent(value V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parentable)() { + m.parent = value +} +// SetProgressPercent sets the progressPercent property value. A percentage representation of progress to completion. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetProgressPercent(value *int32)() { + m.progressPercent = value +} +// SetRecommendations sets the recommendations property value. Recommendations on how to fix failing operations. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetRecommendations(value []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendationsable)() { + m.recommendations = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetRootOperation sets the rootOperation property value. The root of the tree of operations. If this operation is not part of a tree this will be null. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetRootOperation(value V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperationable)() { + m.rootOperation = value +} +// SetServices sets the services property value. List of services this operation belongs to, can be used to filter to specific services in the UI. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetServices(value []string)() { + m.services = value +} +// SetSourceResourceUri sets the sourceResourceUri property value. The resource that was used to initiate the operation. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetSourceResourceUri(value *string)() { + m.sourceResourceUri = value +} +// SetStartedAt sets the startedAt property value. The time this operation was started. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetStartedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.startedAt = value +} +// SetState sets the state property value. A message to indicate the current state of the operation, for example the current step in a workflow.Expected values are INITIALIZED, RUNNING, FAILED, SUCCEEDED, TIMEDOUT, PAUSED, CANCELLED, and UNSPECIFIED. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetState(value *string)() { + m.state = value +} +// SetSubtreeOperationCount sets the subtreeOperationCount property value. The count of the number of child Operations below this one, recursively. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetSubtreeOperationCount(value *int32)() { + m.subtreeOperationCount = value +} +// SetSuggestedPollingIntervalSeconds sets the suggestedPollingIntervalSeconds property value. This attribute suggests a suitable interval to use when polling for progress. Where specified this will be based on the frequency with which the operation is likely to be updated. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetSuggestedPollingIntervalSeconds(value *int32)() { + m.suggestedPollingIntervalSeconds = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +// SetUserId sets the userId property value. The ID or email address of the user that initiated the operation. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse) SetUserId(value *string)() { + m.userId = value +} +type V1beta1AsyncOperationsItemAsyncOperationsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAdditionalDetails()(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetailsable) + GetAssociatedResources()([]V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResourcesable) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDisplayName()(*string) + GetEndedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetError()(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_errorable) + GetEstimatedRunningDurationMinutes()(*int32) + GetGeneration()(*int64) + GetGroups()([]V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groupsable) + GetHasChildOperations()(*bool) + GetHealthStatus()(*string) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLogMessages()([]V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessagesable) + GetName()(*string) + GetParent()(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parentable) + GetProgressPercent()(*int32) + GetRecommendations()([]V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendationsable) + GetResourceUri()(*string) + GetRootOperation()(V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperationable) + GetServices()([]string) + GetSourceResourceUri()(*string) + GetStartedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetState()(*string) + GetSubtreeOperationCount()(*int32) + GetSuggestedPollingIntervalSeconds()(*int32) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetUserId()(*string) + SetAdditionalDetails(value V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetailsable)() + SetAssociatedResources(value []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResourcesable)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDisplayName(value *string)() + SetEndedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetError(value V1beta1AsyncOperationsItemAsyncOperationsGetResponse_errorable)() + SetEstimatedRunningDurationMinutes(value *int32)() + SetGeneration(value *int64)() + SetGroups(value []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groupsable)() + SetHasChildOperations(value *bool)() + SetHealthStatus(value *string)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLogMessages(value []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessagesable)() + SetName(value *string)() + SetParent(value V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parentable)() + SetProgressPercent(value *int32)() + SetRecommendations(value []V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendationsable)() + SetResourceUri(value *string)() + SetRootOperation(value V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperationable)() + SetServices(value []string)() + SetSourceResourceUri(value *string)() + SetStartedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetState(value *string)() + SetSubtreeOperationCount(value *int32)() + SetSuggestedPollingIntervalSeconds(value *int32)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetUserId(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_additional_details.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_additional_details.go new file mode 100644 index 0000000..3ee5d27 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_additional_details.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetails references to other UI link include the consoleUri +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetails struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The consoleUri property + consoleUri *string +} +// NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetails instantiates a new V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetails and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetails()(*V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetails) { + m := &V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetails{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetailsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetailsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetails(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetails) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetConsoleUri gets the consoleUri property value. The consoleUri property +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetails) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetails) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetConsoleUri sets the consoleUri property value. The consoleUri property +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetails) SetConsoleUri(value *string)() { + m.consoleUri = value +} +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_additionalDetailsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConsoleUri()(*string) + SetConsoleUri(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_associated_resources.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_associated_resources.go new file mode 100644 index 0000000..ae890dd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_associated_resources.go @@ -0,0 +1,121 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources references to other resources include the name, type and URI of the other resource. +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The name property + name *string + // The resourceUri property + resourceUri *string + // The type property + typeEscaped *string +} +// NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources instantiates a new V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources()(*V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources) { + m := &V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResourcesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResourcesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The resourceUri property +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. The name property +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The resourceUri property +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type property +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResources) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_associatedResourcesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_error.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_error.go new file mode 100644 index 0000000..a6d4746 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_error.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AsyncOperationsItemAsyncOperationsGetResponse_error the error response status of the operation. +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_error struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_error instantiates a new V1beta1AsyncOperationsItemAsyncOperationsGetResponse_error and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_error()(*V1beta1AsyncOperationsItemAsyncOperationsGetResponse_error) { + m := &V1beta1AsyncOperationsItemAsyncOperationsGetResponse_error{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_errorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_errorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_error(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_groups.go new file mode 100644 index 0000000..28717b3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_groups.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // ID of the associated group + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the associated group + name *string +} +// NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_groups instantiates a new V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groups and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_groups()(*V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groups) { + m := &V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. ID of the associated group +// returns a *UUID when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groups) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. ID of the associated group +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groups) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groups) SetName(value *string)() { + m.name = value +} +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_log_messages.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_log_messages.go new file mode 100644 index 0000000..d4ef3d4 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_log_messages.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessages struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The message property + message *string + // The timestamp property + timestamp *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessages instantiates a new V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessages and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessages()(*V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessages) { + m := &V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessages{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessagesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessagesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessages(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessages) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessages) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + res["timestamp"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetTimestamp(val) + } + return nil + } + return res +} +// GetMessage gets the message property value. The message property +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessages) GetMessage()(*string) { + return m.message +} +// GetTimestamp gets the timestamp property value. The timestamp property +// returns a *Time when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessages) GetTimestamp()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.timestamp +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessages) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("timestamp", m.GetTimestamp()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessages) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetMessage sets the message property value. The message property +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessages) SetMessage(value *string)() { + m.message = value +} +// SetTimestamp sets the timestamp property value. The timestamp property +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessages) SetTimestamp(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.timestamp = value +} +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_logMessagesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetMessage()(*string) + GetTimestamp()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetMessage(value *string)() + SetTimestamp(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_parent.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_parent.go new file mode 100644 index 0000000..ffc7383 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_parent.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parent the parent is the operation that initiated this sub-operation. If this operation is not a sub-operation this will be null. +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parent struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_parent instantiates a new V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parent and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_parent()(*V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parent) { + m := &V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parent{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_parentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_parentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_parent(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parent) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parent) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_parentable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_recommendations.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_recommendations.go new file mode 100644 index 0000000..2ae4f0e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_recommendations.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendations struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The message property + message *string +} +// NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendations instantiates a new V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendations and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendations()(*V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendations) { + m := &V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendations{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendationsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendationsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendations(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendations) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendations) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetMessage gets the message property value. The message property +// returns a *string when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendations) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendations) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendations) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetMessage sets the message property value. The message property +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendations) SetMessage(value *string)() { + m.message = value +} +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_recommendationsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetMessage()(*string) + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_root_operation.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_root_operation.go new file mode 100644 index 0000000..e727f3f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_get_response_escaped_root_operation.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperation the root of the tree of operations. If this operation is not part of a tree this will be null. +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperation struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperation instantiates a new V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperation and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperation()(*V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperation) { + m := &V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperation{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperation(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperation) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperation) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1AsyncOperationsItemAsyncOperationsGetResponse_rootOperationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_response.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_response.go new file mode 100644 index 0000000..0181291 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_item_async_operations_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1AsyncOperationsItemAsyncOperationsResponse the operation resource provides information about progress of asynchronousrequest processing and is where associated resources can be found. +// Deprecated: This class is obsolete. Use V1beta1AsyncOperationsItemAsyncOperationsGetResponseable instead. +type V1beta1AsyncOperationsItemAsyncOperationsResponse struct { + V1beta1AsyncOperationsItemAsyncOperationsGetResponse +} +// NewV1beta1AsyncOperationsItemAsyncOperationsResponse instantiates a new V1beta1AsyncOperationsItemAsyncOperationsResponse and sets the default values. +func NewV1beta1AsyncOperationsItemAsyncOperationsResponse()(*V1beta1AsyncOperationsItemAsyncOperationsResponse) { + m := &V1beta1AsyncOperationsItemAsyncOperationsResponse{ + V1beta1AsyncOperationsItemAsyncOperationsGetResponse: *NewV1beta1AsyncOperationsItemAsyncOperationsGetResponse(), + } + return m +} +// CreateV1beta1AsyncOperationsItemAsyncOperationsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsItemAsyncOperationsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsItemAsyncOperationsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1AsyncOperationsItemAsyncOperationsGetResponseable instead. +type V1beta1AsyncOperationsItemAsyncOperationsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1AsyncOperationsItemAsyncOperationsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_request_builder.go new file mode 100644 index 0000000..3fbfe99 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_request_builder.go @@ -0,0 +1,146 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" +) + +// V1beta1AsyncOperationsRequestBuilder builds and executes requests for operations under \data-services\v1beta1\async-operations +type V1beta1AsyncOperationsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1AsyncOperationsRequestBuilderGetQueryParameters returns a list of async-operations that are visible to the user. The response canbe paged by using the limit and offset query parameters and filtered andsorted by using the filter and sort query parameters. +type V1beta1AsyncOperationsRequestBuilderGetQueryParameters struct { + // The expression to filter responses. + Filter *string `uriparametername:"filter"` + // The limit query parameter should be used in conjunction with offsetfor paging, e.g.: offset=30&&limit=10. The limit is the maximumnumber of items to include in the response. + Limit *int32 `uriparametername:"limit"` + // The offset query parameter should be used in conjunction with limitfor paging, e.g.: offset=30&&limit=10. The offset is the number ofitems from the beginning of the result set to the first itemincluded in the response. + Offset *int32 `uriparametername:"offset"` + // A list of properties to include in the response. + Select *string `uriparametername:"select"` + // A comma separated list of properties to sort by, followed by a direction indicator ("asc" or "desc"). If no direction indicator is specified the default order is ascending. + Sort *string `uriparametername:"sort"` +} +// V1beta1AsyncOperationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1AsyncOperationsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1AsyncOperationsRequestBuilderGetQueryParameters +} +// ById gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.asyncOperations.item collection +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. +// returns a *V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder when successful +func (m *V1beta1AsyncOperationsRequestBuilder) ById(id string)(*V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["id"] = id + } + return NewV1beta1AsyncOperationsAsyncOperationsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ByIdGuid gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.asyncOperations.item collection +// returns a *V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder when successful +func (m *V1beta1AsyncOperationsRequestBuilder) ByIdGuid(id i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*V1beta1AsyncOperationsAsyncOperationsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["id"] = id.String() + return NewV1beta1AsyncOperationsAsyncOperationsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1AsyncOperationsRequestBuilderInternal instantiates a new V1beta1AsyncOperationsRequestBuilder and sets the default values. +func NewV1beta1AsyncOperationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1AsyncOperationsRequestBuilder) { + m := &V1beta1AsyncOperationsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/async-operations{?filter*,limit*,offset*,select*,sort*}", pathParameters), + } + return m +} +// NewV1beta1AsyncOperationsRequestBuilder instantiates a new V1beta1AsyncOperationsRequestBuilder and sets the default values. +func NewV1beta1AsyncOperationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1AsyncOperationsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1AsyncOperationsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns a list of async-operations that are visible to the user. The response canbe paged by using the limit and offset query parameters and filtered andsorted by using the filter and sort query parameters. +// Deprecated: This method is obsolete. Use GetAsAsyncOperationsGetResponse instead. +// returns a V1beta1AsyncOperationsResponseable when successful +// returns a V1beta1AsyncOperations400Error error when the service returns a 400 status code +// returns a V1beta1AsyncOperations401Error error when the service returns a 401 status code +// returns a V1beta1AsyncOperations403Error error when the service returns a 403 status code +// returns a V1beta1AsyncOperations500Error error when the service returns a 500 status code +// returns a V1beta1AsyncOperations503Error error when the service returns a 503 status code +func (m *V1beta1AsyncOperationsRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1AsyncOperationsRequestBuilderGetRequestConfiguration)(V1beta1AsyncOperationsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1AsyncOperations400ErrorFromDiscriminatorValue, + "401": CreateV1beta1AsyncOperations401ErrorFromDiscriminatorValue, + "403": CreateV1beta1AsyncOperations403ErrorFromDiscriminatorValue, + "500": CreateV1beta1AsyncOperations500ErrorFromDiscriminatorValue, + "503": CreateV1beta1AsyncOperations503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1AsyncOperationsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1AsyncOperationsResponseable), nil +} +// GetAsAsyncOperationsGetResponse returns a list of async-operations that are visible to the user. The response canbe paged by using the limit and offset query parameters and filtered andsorted by using the filter and sort query parameters. +// returns a V1beta1AsyncOperationsGetResponseable when successful +// returns a V1beta1AsyncOperations400Error error when the service returns a 400 status code +// returns a V1beta1AsyncOperations401Error error when the service returns a 401 status code +// returns a V1beta1AsyncOperations403Error error when the service returns a 403 status code +// returns a V1beta1AsyncOperations500Error error when the service returns a 500 status code +// returns a V1beta1AsyncOperations503Error error when the service returns a 503 status code +func (m *V1beta1AsyncOperationsRequestBuilder) GetAsAsyncOperationsGetResponse(ctx context.Context, requestConfiguration *V1beta1AsyncOperationsRequestBuilderGetRequestConfiguration)(V1beta1AsyncOperationsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1AsyncOperations400ErrorFromDiscriminatorValue, + "401": CreateV1beta1AsyncOperations401ErrorFromDiscriminatorValue, + "403": CreateV1beta1AsyncOperations403ErrorFromDiscriminatorValue, + "500": CreateV1beta1AsyncOperations500ErrorFromDiscriminatorValue, + "503": CreateV1beta1AsyncOperations503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1AsyncOperationsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1AsyncOperationsGetResponseable), nil +} +// ToGetRequestInformation returns a list of async-operations that are visible to the user. The response canbe paged by using the limit and offset query parameters and filtered andsorted by using the filter and sort query parameters. +// returns a *RequestInformation when successful +func (m *V1beta1AsyncOperationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1AsyncOperationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1AsyncOperationsRequestBuilder when successful +func (m *V1beta1AsyncOperationsRequestBuilder) WithUrl(rawUrl string)(*V1beta1AsyncOperationsRequestBuilder) { + return NewV1beta1AsyncOperationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_async_operations_response.go b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_response.go new file mode 100644 index 0000000..d89225d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_async_operations_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1AsyncOperationsGetResponseable instead. +type V1beta1AsyncOperationsResponse struct { + V1beta1AsyncOperationsGetResponse +} +// NewV1beta1AsyncOperationsResponse instantiates a new V1beta1AsyncOperationsResponse and sets the default values. +func NewV1beta1AsyncOperationsResponse()(*V1beta1AsyncOperationsResponse) { + m := &V1beta1AsyncOperationsResponse{ + V1beta1AsyncOperationsGetResponse: *NewV1beta1AsyncOperationsGetResponse(), + } + return m +} +// CreateV1beta1AsyncOperationsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1AsyncOperationsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1AsyncOperationsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1AsyncOperationsGetResponseable instead. +type V1beta1AsyncOperationsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1AsyncOperationsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors400_error.go new file mode 100644 index 0000000..e8ce95c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectors400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectors400Error instantiates a new V1beta1DataServicesConnectors400Error and sets the default values. +func NewV1beta1DataServicesConnectors400Error()(*V1beta1DataServicesConnectors400Error) { + m := &V1beta1DataServicesConnectors400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectors400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectors400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectors400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectors400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectors400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectors400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectors400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectors400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectors400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectors400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectors400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectors400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectors400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectors400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectors400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectors400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectors400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors401_error.go new file mode 100644 index 0000000..6f3f3f8 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectors401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectors401Error instantiates a new V1beta1DataServicesConnectors401Error and sets the default values. +func NewV1beta1DataServicesConnectors401Error()(*V1beta1DataServicesConnectors401Error) { + m := &V1beta1DataServicesConnectors401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectors401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectors401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectors401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectors401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectors401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectors401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectors401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectors401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectors401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectors401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectors401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectors401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectors401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectors401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectors401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectors401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectors401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors403_error.go new file mode 100644 index 0000000..40ec46d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectors403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectors403Error instantiates a new V1beta1DataServicesConnectors403Error and sets the default values. +func NewV1beta1DataServicesConnectors403Error()(*V1beta1DataServicesConnectors403Error) { + m := &V1beta1DataServicesConnectors403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectors403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectors403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectors403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectors403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectors403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectors403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectors403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectors403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectors403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectors403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectors403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectors403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectors403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectors403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectors403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectors403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectors403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors500_error.go new file mode 100644 index 0000000..31bc06b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectors500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectors500Error instantiates a new V1beta1DataServicesConnectors500Error and sets the default values. +func NewV1beta1DataServicesConnectors500Error()(*V1beta1DataServicesConnectors500Error) { + m := &V1beta1DataServicesConnectors500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectors500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectors500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectors500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectors500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectors500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectors500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectors500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectors500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectors500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectors500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectors500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectors500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectors500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectors500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectors500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectors500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectors500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors503_error.go new file mode 100644 index 0000000..b96efa0 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectors503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectors503Error instantiates a new V1beta1DataServicesConnectors503Error and sets the default values. +func NewV1beta1DataServicesConnectors503Error()(*V1beta1DataServicesConnectors503Error) { + m := &V1beta1DataServicesConnectors503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectors503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectors503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectors503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectors503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectors503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectors503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectors503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectors503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectors503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectors503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectors503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectors503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectors503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectors503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectors503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectors503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectors503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_data_services_connectors_item_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_data_services_connectors_item_request_builder.go new file mode 100644 index 0000000..3c8ee19 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_data_services_connectors_item_request_builder.go @@ -0,0 +1,234 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder builds and executes requests for operations under \data-services\v1beta1\data-services-connectors\{id} +type V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderDeleteQueryParameters this API will unregister the Data Services Connector from the DSCC customer account. +type V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderDeleteQueryParameters struct { + // Force option can be used to forcefully unregister Data Services Connector which internally unregisters associated hypervisor managers + Force *bool `uriparametername:"force"` +} +// V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderDeleteQueryParameters +} +// V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderInternal instantiates a new V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder and sets the default values. +func NewV1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) { + m := &V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/data-services-connectors/{id}{?force*}", pathParameters), + } + return m +} +// NewV1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder instantiates a new V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder and sets the default values. +func NewV1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete this API will unregister the Data Services Connector from the DSCC customer account. +// returns a UntypedNodeable when successful +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors400Error error when the service returns a 400 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors401Error error when the service returns a 401 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors403Error error when the service returns a 403 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors404Error error when the service returns a 404 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors500Error error when the service returns a 500 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors503Error error when the service returns a 503 status code +func (m *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderDeleteRequestConfiguration)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable, error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors403ErrorFromDiscriminatorValue, + "404": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors404ErrorFromDiscriminatorValue, + "500": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable), nil +} +// GenerateSupportBundle the generateSupportBundle property +// returns a *V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder when successful +func (m *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) GenerateSupportBundle()(*V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder) { + return NewV1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// GenerateTotp the generateTotp property +// returns a *V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder when successful +func (m *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) GenerateTotp()(*V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder) { + return NewV1beta1DataServicesConnectorsItemGenerateTotpRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get returns details for a specified Data Services Connector +// Deprecated: This method is obsolete. Use GetAsDataServicesConnectorsGetResponse instead. +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectorsResponseable when successful +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors400Error error when the service returns a 400 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors401Error error when the service returns a 401 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors403Error error when the service returns a 403 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors404Error error when the service returns a 404 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors500Error error when the service returns a 500 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors503Error error when the service returns a 503 status code +func (m *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderGetRequestConfiguration)(V1beta1DataServicesConnectorsItemDataServicesConnectorsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors403ErrorFromDiscriminatorValue, + "404": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors404ErrorFromDiscriminatorValue, + "500": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1DataServicesConnectorsItemDataServicesConnectorsResponseable), nil +} +// GetAsDataServicesConnectorsGetResponse returns details for a specified Data Services Connector +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponseable when successful +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors400Error error when the service returns a 400 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors401Error error when the service returns a 401 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors403Error error when the service returns a 403 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors404Error error when the service returns a 404 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors500Error error when the service returns a 500 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors503Error error when the service returns a 503 status code +func (m *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) GetAsDataServicesConnectorsGetResponse(ctx context.Context, requestConfiguration *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderGetRequestConfiguration)(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors403ErrorFromDiscriminatorValue, + "404": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors404ErrorFromDiscriminatorValue, + "500": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponseable), nil +} +// Patch update attributes of a specified Data Services Connector +// returns a UntypedNodeable when successful +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors400Error error when the service returns a 400 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors401Error error when the service returns a 401 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors403Error error when the service returns a 403 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors404Error error when the service returns a 404 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors500Error error when the service returns a 500 status code +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectors503Error error when the service returns a 503 status code +func (m *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) Patch(ctx context.Context, body V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBodyable, requestConfiguration *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderPatchRequestConfiguration)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors403ErrorFromDiscriminatorValue, + "404": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors404ErrorFromDiscriminatorValue, + "500": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DataServicesConnectorsItemDataServicesConnectors503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable), nil +} +// SetRemoteSupport the setRemoteSupport property +// returns a *V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder when successful +func (m *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) SetRemoteSupport()(*V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder) { + return NewV1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation this API will unregister the Data Services Connector from the DSCC customer account. +// returns a *RequestInformation when successful +func (m *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation returns details for a specified Data Services Connector +// returns a *RequestInformation when successful +func (m *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update attributes of a specified Data Services Connector +// returns a *RequestInformation when successful +func (m *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBodyable, requestConfiguration *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/merge-patch+json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder when successful +func (m *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) WithUrl(rawUrl string)(*V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) { + return NewV1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response.go new file mode 100644 index 0000000..4f36d45 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response.go @@ -0,0 +1,179 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Total number of records returned. + count *int32 + // The items property + items []V1beta1DataServicesConnectorsGetResponse_itemsable + // The number of items to skip before starting to collect the result set + offset *int32 + // Total number of documents matching filter criteria. + total *int32 +} +// NewV1beta1DataServicesConnectorsGetResponse instantiates a new V1beta1DataServicesConnectorsGetResponse and sets the default values. +func NewV1beta1DataServicesConnectorsGetResponse()(*V1beta1DataServicesConnectorsGetResponse) { + m := &V1beta1DataServicesConnectorsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Total number of records returned. +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DataServicesConnectorsGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DataServicesConnectorsGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DataServicesConnectorsGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetItems gets the items property value. The items property +// returns a []V1beta1DataServicesConnectorsGetResponse_itemsable when successful +func (m *V1beta1DataServicesConnectorsGetResponse) GetItems()([]V1beta1DataServicesConnectorsGetResponse_itemsable) { + return m.items +} +// GetOffset gets the offset property value. The number of items to skip before starting to collect the result set +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetTotal gets the total property value. Total number of documents matching filter criteria. +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Total number of records returned. +func (m *V1beta1DataServicesConnectorsGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. The items property +func (m *V1beta1DataServicesConnectorsGetResponse) SetItems(value []V1beta1DataServicesConnectorsGetResponse_itemsable)() { + m.items = value +} +// SetOffset sets the offset property value. The number of items to skip before starting to collect the result set +func (m *V1beta1DataServicesConnectorsGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetTotal sets the total property value. Total number of documents matching filter criteria. +func (m *V1beta1DataServicesConnectorsGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1DataServicesConnectorsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1DataServicesConnectorsGetResponse_itemsable) + GetOffset()(*int32) + GetTotal()(*int32) + SetCount(value *int32)() + SetItems(value []V1beta1DataServicesConnectorsGetResponse_itemsable)() + SetOffset(value *int32)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items.go new file mode 100644 index 0000000..db8b371 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items.go @@ -0,0 +1,895 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DataServicesConnectorsGetResponse_items detailed information of Data Services Collector +type V1beta1DataServicesConnectorsGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // This details the current date and time of the Data Services Connector, how the current date and time is determined, as well as the user specified timezone. + dateTime V1beta1DataServicesConnectorsGetResponse_items_dateTimeable + // Device model of Data Services Connector. + deviceModel *string + // User-defined name given to Data Services Connector. + displayName *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // List of hypervisor managers configured on the Data Services Connector. + hypervisorManagers []V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagersable + // Unique ID identifying a Data Services Connector. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Indicates whether Infosight is enabled or disabled. + infosightEnabled *bool + // The interfaces property + interfaces V1beta1DataServicesConnectorsGetResponse_items_interfacesable + // UTC time when the Data Services Connector was last updated. + lastUpdateCheckTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Name of Data Services Connector. + name *string + // The ntp property + ntp V1beta1DataServicesConnectorsGetResponse_items_ntpable + // Data Services Connector persona. + persona *string + // UTC time when Data Services Connector was last powered on. + poweredOnAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Product name of Data Services Connector. + productName *string + // This provides details of the RDA for Data Services Connector. + rdaInfo V1beta1DataServicesConnectorsGetResponse_items_rdaInfoable + // RDA Station ID identifying a Data Services Connector. + remoteAccessStationId *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The self reference for this resource. + resourceUri *string + // Data Services Connector serial number. + serialNumber *string + // List of services with name and version configured on the Data Services Connector. + serviceVersions []V1beta1DataServicesConnectorsGetResponse_items_serviceVersionsable + // Data Services Connector software version. + softwareVersion *string + // Reason for the Data Services Connector being in the current state. This will be empty when the Data Services Connector is in an OK state. + stateReason *string + // Serial number of the Alletra MP Storage System. + storageSystemSerialNumber *string + // Total RAM configured for the Data Services Connector in GiB. + totalMemoryInGiB *int32 + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Returns the number of seconds since Data Services Connector was powered on. + upTimeInSeconds *float64 + // Number of virtual CPUs configured for the Data Services Connector. + vCpu *int32 +} +// NewV1beta1DataServicesConnectorsGetResponse_items instantiates a new V1beta1DataServicesConnectorsGetResponse_items and sets the default values. +func NewV1beta1DataServicesConnectorsGetResponse_items()(*V1beta1DataServicesConnectorsGetResponse_items) { + m := &V1beta1DataServicesConnectorsGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetDateTime gets the dateTime property value. This details the current date and time of the Data Services Connector, how the current date and time is determined, as well as the user specified timezone. +// returns a V1beta1DataServicesConnectorsGetResponse_items_dateTimeable when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetDateTime()(V1beta1DataServicesConnectorsGetResponse_items_dateTimeable) { + return m.dateTime +} +// GetDeviceModel gets the deviceModel property value. Device model of Data Services Connector. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetDeviceModel()(*string) { + return m.deviceModel +} +// GetDisplayName gets the displayName property value. User-defined name given to Data Services Connector. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetDisplayName()(*string) { + return m.displayName +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["dateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsGetResponse_items_dateTimeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetDateTime(val.(V1beta1DataServicesConnectorsGetResponse_items_dateTimeable)) + } + return nil + } + res["deviceModel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDeviceModel(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["hypervisorManagers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DataServicesConnectorsGetResponse_items_hypervisorManagersFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagersable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagersable) + } + } + m.SetHypervisorManagers(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["infosightEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetInfosightEnabled(val) + } + return nil + } + res["interfaces"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsGetResponse_items_interfacesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetInterfaces(val.(V1beta1DataServicesConnectorsGetResponse_items_interfacesable)) + } + return nil + } + res["lastUpdateCheckTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdateCheckTime(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["ntp"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsGetResponse_items_ntpFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNtp(val.(V1beta1DataServicesConnectorsGetResponse_items_ntpable)) + } + return nil + } + res["persona"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPersona(val) + } + return nil + } + res["poweredOnAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetPoweredOnAt(val) + } + return nil + } + res["productName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetProductName(val) + } + return nil + } + res["rdaInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsGetResponse_items_rdaInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetRdaInfo(val.(V1beta1DataServicesConnectorsGetResponse_items_rdaInfoable)) + } + return nil + } + res["remoteAccessStationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetRemoteAccessStationId(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["serialNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSerialNumber(val) + } + return nil + } + res["serviceVersions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DataServicesConnectorsGetResponse_items_serviceVersionsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DataServicesConnectorsGetResponse_items_serviceVersionsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DataServicesConnectorsGetResponse_items_serviceVersionsable) + } + } + m.SetServiceVersions(res) + } + return nil + } + res["softwareVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSoftwareVersion(val) + } + return nil + } + res["stateReason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStateReason(val) + } + return nil + } + res["storageSystemSerialNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStorageSystemSerialNumber(val) + } + return nil + } + res["totalMemoryInGiB"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotalMemoryInGiB(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["upTimeInSeconds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetFloat64Value() + if err != nil { + return err + } + if val != nil { + m.SetUpTimeInSeconds(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + res["vCpu"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetVCpu(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetGeneration()(*int64) { + return m.generation +} +// GetHypervisorManagers gets the hypervisorManagers property value. List of hypervisor managers configured on the Data Services Connector. +// returns a []V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagersable when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetHypervisorManagers()([]V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagersable) { + return m.hypervisorManagers +} +// GetId gets the id property value. Unique ID identifying a Data Services Connector. +// returns a *UUID when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetInfosightEnabled gets the infosightEnabled property value. Indicates whether Infosight is enabled or disabled. +// returns a *bool when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetInfosightEnabled()(*bool) { + return m.infosightEnabled +} +// GetInterfaces gets the interfaces property value. The interfaces property +// returns a V1beta1DataServicesConnectorsGetResponse_items_interfacesable when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetInterfaces()(V1beta1DataServicesConnectorsGetResponse_items_interfacesable) { + return m.interfaces +} +// GetLastUpdateCheckTime gets the lastUpdateCheckTime property value. UTC time when the Data Services Connector was last updated. +// returns a *Time when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetLastUpdateCheckTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.lastUpdateCheckTime +} +// GetName gets the name property value. Name of Data Services Connector. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetName()(*string) { + return m.name +} +// GetNtp gets the ntp property value. The ntp property +// returns a V1beta1DataServicesConnectorsGetResponse_items_ntpable when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetNtp()(V1beta1DataServicesConnectorsGetResponse_items_ntpable) { + return m.ntp +} +// GetPersona gets the persona property value. Data Services Connector persona. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetPersona()(*string) { + return m.persona +} +// GetPoweredOnAt gets the poweredOnAt property value. UTC time when Data Services Connector was last powered on. +// returns a *Time when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetPoweredOnAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.poweredOnAt +} +// GetProductName gets the productName property value. Product name of Data Services Connector. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetProductName()(*string) { + return m.productName +} +// GetRdaInfo gets the rdaInfo property value. This provides details of the RDA for Data Services Connector. +// returns a V1beta1DataServicesConnectorsGetResponse_items_rdaInfoable when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetRdaInfo()(V1beta1DataServicesConnectorsGetResponse_items_rdaInfoable) { + return m.rdaInfo +} +// GetRemoteAccessStationId gets the remoteAccessStationId property value. RDA Station ID identifying a Data Services Connector. +// returns a *UUID when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetRemoteAccessStationId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.remoteAccessStationId +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSerialNumber gets the serialNumber property value. Data Services Connector serial number. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetSerialNumber()(*string) { + return m.serialNumber +} +// GetServiceVersions gets the serviceVersions property value. List of services with name and version configured on the Data Services Connector. +// returns a []V1beta1DataServicesConnectorsGetResponse_items_serviceVersionsable when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetServiceVersions()([]V1beta1DataServicesConnectorsGetResponse_items_serviceVersionsable) { + return m.serviceVersions +} +// GetSoftwareVersion gets the softwareVersion property value. Data Services Connector software version. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetSoftwareVersion()(*string) { + return m.softwareVersion +} +// GetStateReason gets the stateReason property value. Reason for the Data Services Connector being in the current state. This will be empty when the Data Services Connector is in an OK state. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetStateReason()(*string) { + return m.stateReason +} +// GetStorageSystemSerialNumber gets the storageSystemSerialNumber property value. Serial number of the Alletra MP Storage System. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetStorageSystemSerialNumber()(*string) { + return m.storageSystemSerialNumber +} +// GetTotalMemoryInGiB gets the totalMemoryInGiB property value. Total RAM configured for the Data Services Connector in GiB. +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetTotalMemoryInGiB()(*int32) { + return m.totalMemoryInGiB +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// GetUpTimeInSeconds gets the upTimeInSeconds property value. Returns the number of seconds since Data Services Connector was powered on. +// returns a *float64 when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetUpTimeInSeconds()(*float64) { + return m.upTimeInSeconds +} +// GetVCpu gets the vCpu property value. Number of virtual CPUs configured for the Data Services Connector. +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items) GetVCpu()(*int32) { + return m.vCpu +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("dateTime", m.GetDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("deviceModel", m.GetDeviceModel()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + if m.GetHypervisorManagers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetHypervisorManagers())) + for i, v := range m.GetHypervisorManagers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("hypervisorManagers", cast) + if err != nil { + return err + } + } + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("infosightEnabled", m.GetInfosightEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("interfaces", m.GetInterfaces()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("lastUpdateCheckTime", m.GetLastUpdateCheckTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("ntp", m.GetNtp()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("persona", m.GetPersona()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("poweredOnAt", m.GetPoweredOnAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("productName", m.GetProductName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("rdaInfo", m.GetRdaInfo()) + if err != nil { + return err + } + } + { + err := writer.WriteUUIDValue("remoteAccessStationId", m.GetRemoteAccessStationId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("serialNumber", m.GetSerialNumber()) + if err != nil { + return err + } + } + if m.GetServiceVersions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetServiceVersions())) + for i, v := range m.GetServiceVersions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("serviceVersions", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("softwareVersion", m.GetSoftwareVersion()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("stateReason", m.GetStateReason()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("storageSystemSerialNumber", m.GetStorageSystemSerialNumber()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("totalMemoryInGiB", m.GetTotalMemoryInGiB()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteFloat64Value("upTimeInSeconds", m.GetUpTimeInSeconds()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("vCpu", m.GetVCpu()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDateTime sets the dateTime property value. This details the current date and time of the Data Services Connector, how the current date and time is determined, as well as the user specified timezone. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetDateTime(value V1beta1DataServicesConnectorsGetResponse_items_dateTimeable)() { + m.dateTime = value +} +// SetDeviceModel sets the deviceModel property value. Device model of Data Services Connector. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetDeviceModel(value *string)() { + m.deviceModel = value +} +// SetDisplayName sets the displayName property value. User-defined name given to Data Services Connector. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetDisplayName(value *string)() { + m.displayName = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetGeneration(value *int64)() { + m.generation = value +} +// SetHypervisorManagers sets the hypervisorManagers property value. List of hypervisor managers configured on the Data Services Connector. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetHypervisorManagers(value []V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagersable)() { + m.hypervisorManagers = value +} +// SetId sets the id property value. Unique ID identifying a Data Services Connector. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetInfosightEnabled sets the infosightEnabled property value. Indicates whether Infosight is enabled or disabled. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetInfosightEnabled(value *bool)() { + m.infosightEnabled = value +} +// SetInterfaces sets the interfaces property value. The interfaces property +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetInterfaces(value V1beta1DataServicesConnectorsGetResponse_items_interfacesable)() { + m.interfaces = value +} +// SetLastUpdateCheckTime sets the lastUpdateCheckTime property value. UTC time when the Data Services Connector was last updated. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetLastUpdateCheckTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.lastUpdateCheckTime = value +} +// SetName sets the name property value. Name of Data Services Connector. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetNtp sets the ntp property value. The ntp property +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetNtp(value V1beta1DataServicesConnectorsGetResponse_items_ntpable)() { + m.ntp = value +} +// SetPersona sets the persona property value. Data Services Connector persona. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetPersona(value *string)() { + m.persona = value +} +// SetPoweredOnAt sets the poweredOnAt property value. UTC time when Data Services Connector was last powered on. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetPoweredOnAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.poweredOnAt = value +} +// SetProductName sets the productName property value. Product name of Data Services Connector. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetProductName(value *string)() { + m.productName = value +} +// SetRdaInfo sets the rdaInfo property value. This provides details of the RDA for Data Services Connector. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetRdaInfo(value V1beta1DataServicesConnectorsGetResponse_items_rdaInfoable)() { + m.rdaInfo = value +} +// SetRemoteAccessStationId sets the remoteAccessStationId property value. RDA Station ID identifying a Data Services Connector. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetRemoteAccessStationId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.remoteAccessStationId = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSerialNumber sets the serialNumber property value. Data Services Connector serial number. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetSerialNumber(value *string)() { + m.serialNumber = value +} +// SetServiceVersions sets the serviceVersions property value. List of services with name and version configured on the Data Services Connector. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetServiceVersions(value []V1beta1DataServicesConnectorsGetResponse_items_serviceVersionsable)() { + m.serviceVersions = value +} +// SetSoftwareVersion sets the softwareVersion property value. Data Services Connector software version. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetSoftwareVersion(value *string)() { + m.softwareVersion = value +} +// SetStateReason sets the stateReason property value. Reason for the Data Services Connector being in the current state. This will be empty when the Data Services Connector is in an OK state. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetStateReason(value *string)() { + m.stateReason = value +} +// SetStorageSystemSerialNumber sets the storageSystemSerialNumber property value. Serial number of the Alletra MP Storage System. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetStorageSystemSerialNumber(value *string)() { + m.storageSystemSerialNumber = value +} +// SetTotalMemoryInGiB sets the totalMemoryInGiB property value. Total RAM configured for the Data Services Connector in GiB. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetTotalMemoryInGiB(value *int32)() { + m.totalMemoryInGiB = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +// SetUpTimeInSeconds sets the upTimeInSeconds property value. Returns the number of seconds since Data Services Connector was powered on. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetUpTimeInSeconds(value *float64)() { + m.upTimeInSeconds = value +} +// SetVCpu sets the vCpu property value. Number of virtual CPUs configured for the Data Services Connector. +func (m *V1beta1DataServicesConnectorsGetResponse_items) SetVCpu(value *int32)() { + m.vCpu = value +} +type V1beta1DataServicesConnectorsGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDateTime()(V1beta1DataServicesConnectorsGetResponse_items_dateTimeable) + GetDeviceModel()(*string) + GetDisplayName()(*string) + GetGeneration()(*int64) + GetHypervisorManagers()([]V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagersable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetInfosightEnabled()(*bool) + GetInterfaces()(V1beta1DataServicesConnectorsGetResponse_items_interfacesable) + GetLastUpdateCheckTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetName()(*string) + GetNtp()(V1beta1DataServicesConnectorsGetResponse_items_ntpable) + GetPersona()(*string) + GetPoweredOnAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetProductName()(*string) + GetRdaInfo()(V1beta1DataServicesConnectorsGetResponse_items_rdaInfoable) + GetRemoteAccessStationId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetResourceUri()(*string) + GetSerialNumber()(*string) + GetServiceVersions()([]V1beta1DataServicesConnectorsGetResponse_items_serviceVersionsable) + GetSoftwareVersion()(*string) + GetStateReason()(*string) + GetStorageSystemSerialNumber()(*string) + GetTotalMemoryInGiB()(*int32) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetUpTimeInSeconds()(*float64) + GetVCpu()(*int32) + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDateTime(value V1beta1DataServicesConnectorsGetResponse_items_dateTimeable)() + SetDeviceModel(value *string)() + SetDisplayName(value *string)() + SetGeneration(value *int64)() + SetHypervisorManagers(value []V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagersable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetInfosightEnabled(value *bool)() + SetInterfaces(value V1beta1DataServicesConnectorsGetResponse_items_interfacesable)() + SetLastUpdateCheckTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetName(value *string)() + SetNtp(value V1beta1DataServicesConnectorsGetResponse_items_ntpable)() + SetPersona(value *string)() + SetPoweredOnAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetProductName(value *string)() + SetRdaInfo(value V1beta1DataServicesConnectorsGetResponse_items_rdaInfoable)() + SetRemoteAccessStationId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetResourceUri(value *string)() + SetSerialNumber(value *string)() + SetServiceVersions(value []V1beta1DataServicesConnectorsGetResponse_items_serviceVersionsable)() + SetSoftwareVersion(value *string)() + SetStateReason(value *string)() + SetStorageSystemSerialNumber(value *string)() + SetTotalMemoryInGiB(value *int32)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetUpTimeInSeconds(value *float64)() + SetVCpu(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_date_time.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_date_time.go new file mode 100644 index 0000000..0ffc765 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_date_time.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DataServicesConnectorsGetResponse_items_dateTime this details the current date and time of the Data Services Connector, how the current date and time is determined, as well as the user specified timezone. +type V1beta1DataServicesConnectorsGetResponse_items_dateTime struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Time zone in which the Data Services Connector is deployed. + timezone *string +} +// NewV1beta1DataServicesConnectorsGetResponse_items_dateTime instantiates a new V1beta1DataServicesConnectorsGetResponse_items_dateTime and sets the default values. +func NewV1beta1DataServicesConnectorsGetResponse_items_dateTime()(*V1beta1DataServicesConnectorsGetResponse_items_dateTime) { + m := &V1beta1DataServicesConnectorsGetResponse_items_dateTime{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsGetResponse_items_dateTimeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsGetResponse_items_dateTimeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsGetResponse_items_dateTime(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_dateTime) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_dateTime) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["timezone"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTimezone(val) + } + return nil + } + return res +} +// GetTimezone gets the timezone property value. Time zone in which the Data Services Connector is deployed. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_dateTime) GetTimezone()(*string) { + return m.timezone +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsGetResponse_items_dateTime) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("timezone", m.GetTimezone()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsGetResponse_items_dateTime) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetTimezone sets the timezone property value. Time zone in which the Data Services Connector is deployed. +func (m *V1beta1DataServicesConnectorsGetResponse_items_dateTime) SetTimezone(value *string)() { + m.timezone = value +} +type V1beta1DataServicesConnectorsGetResponse_items_dateTimeable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetTimezone()(*string) + SetTimezone(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_hypervisor_managers.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_hypervisor_managers.go new file mode 100644 index 0000000..b215022 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_hypervisor_managers.go @@ -0,0 +1,156 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Unique ID identifying a Hypervisor Manager. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of Hypervisor Manager. + name *string + // The self reference for this resource. + resourceUri *string + // The type of resource. + typeEscaped *string +} +// NewV1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers instantiates a new V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers and sets the default values. +func NewV1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers()(*V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers) { + m := &V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsGetResponse_items_hypervisorManagersFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsGetResponse_items_hypervisorManagersFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. Unique ID identifying a Hypervisor Manager. +// returns a *UUID when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of Hypervisor Manager. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Unique ID identifying a Hypervisor Manager. +func (m *V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of Hypervisor Manager. +func (m *V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagers) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1DataServicesConnectorsGetResponse_items_hypervisorManagersable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_interfaces.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_interfaces.go new file mode 100644 index 0000000..fced86e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_interfaces.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsGetResponse_items_interfaces struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The network property + network V1beta1DataServicesConnectorsGetResponse_items_interfaces_networkable +} +// NewV1beta1DataServicesConnectorsGetResponse_items_interfaces instantiates a new V1beta1DataServicesConnectorsGetResponse_items_interfaces and sets the default values. +func NewV1beta1DataServicesConnectorsGetResponse_items_interfaces()(*V1beta1DataServicesConnectorsGetResponse_items_interfaces) { + m := &V1beta1DataServicesConnectorsGetResponse_items_interfaces{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsGetResponse_items_interfacesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsGetResponse_items_interfacesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsGetResponse_items_interfaces(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["network"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsGetResponse_items_interfaces_networkFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNetwork(val.(V1beta1DataServicesConnectorsGetResponse_items_interfaces_networkable)) + } + return nil + } + return res +} +// GetNetwork gets the network property value. The network property +// returns a V1beta1DataServicesConnectorsGetResponse_items_interfaces_networkable when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces) GetNetwork()(V1beta1DataServicesConnectorsGetResponse_items_interfaces_networkable) { + return m.network +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("network", m.GetNetwork()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetNetwork sets the network property value. The network property +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces) SetNetwork(value V1beta1DataServicesConnectorsGetResponse_items_interfaces_networkable)() { + m.network = value +} +type V1beta1DataServicesConnectorsGetResponse_items_interfacesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetNetwork()(V1beta1DataServicesConnectorsGetResponse_items_interfaces_networkable) + SetNetwork(value V1beta1DataServicesConnectorsGetResponse_items_interfaces_networkable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_interfaces_escaped_network.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_interfaces_escaped_network.go new file mode 100644 index 0000000..4a17b07 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_interfaces_escaped_network.go @@ -0,0 +1,255 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsGetResponse_items_interfaces_network struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // IP address or FQDN of the default gateway. + defaultGateway *string + // IP address or FQDN of the Data Services Connector. + hostname *string + // List of configured DNS servers configured on the Data Services Connector. + nameServers []V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServersable + // List of network interfaces configured on the Data Services Connector. + nic []V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nicable + // The proxy property + proxy V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxyable + // List of search domains. + searchDomains []string +} +// NewV1beta1DataServicesConnectorsGetResponse_items_interfaces_network instantiates a new V1beta1DataServicesConnectorsGetResponse_items_interfaces_network and sets the default values. +func NewV1beta1DataServicesConnectorsGetResponse_items_interfaces_network()(*V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) { + m := &V1beta1DataServicesConnectorsGetResponse_items_interfaces_network{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsGetResponse_items_interfaces_networkFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsGetResponse_items_interfaces_networkFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsGetResponse_items_interfaces_network(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDefaultGateway gets the defaultGateway property value. IP address or FQDN of the default gateway. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) GetDefaultGateway()(*string) { + return m.defaultGateway +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["defaultGateway"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDefaultGateway(val) + } + return nil + } + res["hostname"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetHostname(val) + } + return nil + } + res["nameServers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServersFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServersable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServersable) + } + } + m.SetNameServers(res) + } + return nil + } + res["nic"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nicFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nicable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nicable) + } + } + m.SetNic(res) + } + return nil + } + res["proxy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetProxy(val.(V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxyable)) + } + return nil + } + res["searchDomains"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetSearchDomains(res) + } + return nil + } + return res +} +// GetHostname gets the hostname property value. IP address or FQDN of the Data Services Connector. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) GetHostname()(*string) { + return m.hostname +} +// GetNameServers gets the nameServers property value. List of configured DNS servers configured on the Data Services Connector. +// returns a []V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServersable when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) GetNameServers()([]V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServersable) { + return m.nameServers +} +// GetNic gets the nic property value. List of network interfaces configured on the Data Services Connector. +// returns a []V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nicable when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) GetNic()([]V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nicable) { + return m.nic +} +// GetProxy gets the proxy property value. The proxy property +// returns a V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxyable when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) GetProxy()(V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxyable) { + return m.proxy +} +// GetSearchDomains gets the searchDomains property value. List of search domains. +// returns a []string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) GetSearchDomains()([]string) { + return m.searchDomains +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("defaultGateway", m.GetDefaultGateway()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("hostname", m.GetHostname()) + if err != nil { + return err + } + } + if m.GetNameServers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetNameServers())) + for i, v := range m.GetNameServers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("nameServers", cast) + if err != nil { + return err + } + } + if m.GetNic() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetNic())) + for i, v := range m.GetNic() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("nic", cast) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("proxy", m.GetProxy()) + if err != nil { + return err + } + } + if m.GetSearchDomains() != nil { + err := writer.WriteCollectionOfStringValues("searchDomains", m.GetSearchDomains()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDefaultGateway sets the defaultGateway property value. IP address or FQDN of the default gateway. +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) SetDefaultGateway(value *string)() { + m.defaultGateway = value +} +// SetHostname sets the hostname property value. IP address or FQDN of the Data Services Connector. +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) SetHostname(value *string)() { + m.hostname = value +} +// SetNameServers sets the nameServers property value. List of configured DNS servers configured on the Data Services Connector. +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) SetNameServers(value []V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServersable)() { + m.nameServers = value +} +// SetNic sets the nic property value. List of network interfaces configured on the Data Services Connector. +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) SetNic(value []V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nicable)() { + m.nic = value +} +// SetProxy sets the proxy property value. The proxy property +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) SetProxy(value V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxyable)() { + m.proxy = value +} +// SetSearchDomains sets the searchDomains property value. List of search domains. +func (m *V1beta1DataServicesConnectorsGetResponse_items_interfaces_network) SetSearchDomains(value []string)() { + m.searchDomains = value +} +type V1beta1DataServicesConnectorsGetResponse_items_interfaces_networkable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDefaultGateway()(*string) + GetHostname()(*string) + GetNameServers()([]V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServersable) + GetNic()([]V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nicable) + GetProxy()(V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxyable) + GetSearchDomains()([]string) + SetDefaultGateway(value *string)() + SetHostname(value *string)() + SetNameServers(value []V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nameServersable)() + SetNic(value []V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_nicable)() + SetProxy(value V1beta1DataServicesConnectorsGetResponse_items_interfaces_network_proxyable)() + SetSearchDomains(value []string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_ntp.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_ntp.go new file mode 100644 index 0000000..653866b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_ntp.go @@ -0,0 +1,121 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsGetResponse_items_ntp struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // NTP servers against which the Data Services Connector should synchronize. + ntpServers []V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServersable + // Reason for the current state of the NTP configuration. + stateReason *string +} +// NewV1beta1DataServicesConnectorsGetResponse_items_ntp instantiates a new V1beta1DataServicesConnectorsGetResponse_items_ntp and sets the default values. +func NewV1beta1DataServicesConnectorsGetResponse_items_ntp()(*V1beta1DataServicesConnectorsGetResponse_items_ntp) { + m := &V1beta1DataServicesConnectorsGetResponse_items_ntp{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsGetResponse_items_ntpFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsGetResponse_items_ntpFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsGetResponse_items_ntp(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_ntp) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_ntp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["ntpServers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServersFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServersable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServersable) + } + } + m.SetNtpServers(res) + } + return nil + } + res["stateReason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStateReason(val) + } + return nil + } + return res +} +// GetNtpServers gets the ntpServers property value. NTP servers against which the Data Services Connector should synchronize. +// returns a []V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServersable when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_ntp) GetNtpServers()([]V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServersable) { + return m.ntpServers +} +// GetStateReason gets the stateReason property value. Reason for the current state of the NTP configuration. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_ntp) GetStateReason()(*string) { + return m.stateReason +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsGetResponse_items_ntp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetNtpServers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetNtpServers())) + for i, v := range m.GetNtpServers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("ntpServers", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("stateReason", m.GetStateReason()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsGetResponse_items_ntp) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetNtpServers sets the ntpServers property value. NTP servers against which the Data Services Connector should synchronize. +func (m *V1beta1DataServicesConnectorsGetResponse_items_ntp) SetNtpServers(value []V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServersable)() { + m.ntpServers = value +} +// SetStateReason sets the stateReason property value. Reason for the current state of the NTP configuration. +func (m *V1beta1DataServicesConnectorsGetResponse_items_ntp) SetStateReason(value *string)() { + m.stateReason = value +} +type V1beta1DataServicesConnectorsGetResponse_items_ntpable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetNtpServers()([]V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServersable) + GetStateReason()(*string) + SetNtpServers(value []V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServersable)() + SetStateReason(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_ntp_escaped_ntp_servers.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_ntp_escaped_ntp_servers.go new file mode 100644 index 0000000..1078509 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_ntp_escaped_ntp_servers.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServers struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // An IP address or FQDN of the NTP server. + networkAddress *string +} +// NewV1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServers instantiates a new V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServers and sets the default values. +func NewV1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServers()(*V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServers) { + m := &V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServers{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServersFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServersFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServers(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServers) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServers) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["networkAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNetworkAddress(val) + } + return nil + } + return res +} +// GetNetworkAddress gets the networkAddress property value. An IP address or FQDN of the NTP server. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServers) GetNetworkAddress()(*string) { + return m.networkAddress +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServers) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("networkAddress", m.GetNetworkAddress()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServers) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetNetworkAddress sets the networkAddress property value. An IP address or FQDN of the NTP server. +func (m *V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServers) SetNetworkAddress(value *string)() { + m.networkAddress = value +} +type V1beta1DataServicesConnectorsGetResponse_items_ntp_ntpServersable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetNetworkAddress()(*string) + SetNetworkAddress(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_rda_info.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_rda_info.go new file mode 100644 index 0000000..b233841 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_rda_info.go @@ -0,0 +1,296 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DataServicesConnectorsGetResponse_items_rdaInfo this provides details of the RDA for Data Services Connector. +type V1beta1DataServicesConnectorsGetResponse_items_rdaInfo struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Is RDA enabled. + enabled *bool + // Features support in RDA. + features []V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_featuresable + // Is RDA connected to internet. + internetConnected *bool + // RDA midway URL. + midway *string + // name of DSC product class. + productClass *string + // name of DSC product line. + productLine *string + // Is remote access to RDA enabled. + remoteAccessEnabled *bool + // Reason for the RDA being in the current state. This will be empty when the RDA is in an OK state. + stateReason *string +} +// NewV1beta1DataServicesConnectorsGetResponse_items_rdaInfo instantiates a new V1beta1DataServicesConnectorsGetResponse_items_rdaInfo and sets the default values. +func NewV1beta1DataServicesConnectorsGetResponse_items_rdaInfo()(*V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) { + m := &V1beta1DataServicesConnectorsGetResponse_items_rdaInfo{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsGetResponse_items_rdaInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsGetResponse_items_rdaInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsGetResponse_items_rdaInfo(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetEnabled gets the enabled property value. Is RDA enabled. +// returns a *bool when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) GetEnabled()(*bool) { + return m.enabled +} +// GetFeatures gets the features property value. Features support in RDA. +// returns a []V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_featuresable when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) GetFeatures()([]V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_featuresable) { + return m.features +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["enabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetEnabled(val) + } + return nil + } + res["features"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DataServicesConnectorsGetResponse_items_rdaInfo_featuresFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_featuresable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_featuresable) + } + } + m.SetFeatures(res) + } + return nil + } + res["internetConnected"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetInternetConnected(val) + } + return nil + } + res["midway"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMidway(val) + } + return nil + } + res["productClass"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetProductClass(val) + } + return nil + } + res["productLine"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetProductLine(val) + } + return nil + } + res["remoteAccessEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetRemoteAccessEnabled(val) + } + return nil + } + res["stateReason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStateReason(val) + } + return nil + } + return res +} +// GetInternetConnected gets the internetConnected property value. Is RDA connected to internet. +// returns a *bool when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) GetInternetConnected()(*bool) { + return m.internetConnected +} +// GetMidway gets the midway property value. RDA midway URL. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) GetMidway()(*string) { + return m.midway +} +// GetProductClass gets the productClass property value. name of DSC product class. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) GetProductClass()(*string) { + return m.productClass +} +// GetProductLine gets the productLine property value. name of DSC product line. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) GetProductLine()(*string) { + return m.productLine +} +// GetRemoteAccessEnabled gets the remoteAccessEnabled property value. Is remote access to RDA enabled. +// returns a *bool when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) GetRemoteAccessEnabled()(*bool) { + return m.remoteAccessEnabled +} +// GetStateReason gets the stateReason property value. Reason for the RDA being in the current state. This will be empty when the RDA is in an OK state. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) GetStateReason()(*string) { + return m.stateReason +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("enabled", m.GetEnabled()) + if err != nil { + return err + } + } + if m.GetFeatures() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetFeatures())) + for i, v := range m.GetFeatures() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("features", cast) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("internetConnected", m.GetInternetConnected()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("midway", m.GetMidway()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("productClass", m.GetProductClass()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("productLine", m.GetProductLine()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("remoteAccessEnabled", m.GetRemoteAccessEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("stateReason", m.GetStateReason()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetEnabled sets the enabled property value. Is RDA enabled. +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) SetEnabled(value *bool)() { + m.enabled = value +} +// SetFeatures sets the features property value. Features support in RDA. +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) SetFeatures(value []V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_featuresable)() { + m.features = value +} +// SetInternetConnected sets the internetConnected property value. Is RDA connected to internet. +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) SetInternetConnected(value *bool)() { + m.internetConnected = value +} +// SetMidway sets the midway property value. RDA midway URL. +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) SetMidway(value *string)() { + m.midway = value +} +// SetProductClass sets the productClass property value. name of DSC product class. +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) SetProductClass(value *string)() { + m.productClass = value +} +// SetProductLine sets the productLine property value. name of DSC product line. +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) SetProductLine(value *string)() { + m.productLine = value +} +// SetRemoteAccessEnabled sets the remoteAccessEnabled property value. Is remote access to RDA enabled. +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) SetRemoteAccessEnabled(value *bool)() { + m.remoteAccessEnabled = value +} +// SetStateReason sets the stateReason property value. Reason for the RDA being in the current state. This will be empty when the RDA is in an OK state. +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo) SetStateReason(value *string)() { + m.stateReason = value +} +type V1beta1DataServicesConnectorsGetResponse_items_rdaInfoable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetEnabled()(*bool) + GetFeatures()([]V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_featuresable) + GetInternetConnected()(*bool) + GetMidway()(*string) + GetProductClass()(*string) + GetProductLine()(*string) + GetRemoteAccessEnabled()(*bool) + GetStateReason()(*string) + SetEnabled(value *bool)() + SetFeatures(value []V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_featuresable)() + SetInternetConnected(value *bool)() + SetMidway(value *string)() + SetProductClass(value *string)() + SetProductLine(value *string)() + SetRemoteAccessEnabled(value *bool)() + SetStateReason(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_rda_info_escaped_features.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_rda_info_escaped_features.go new file mode 100644 index 0000000..9e1ea75 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_rda_info_escaped_features.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_features struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Abbreviation of supported feature in RDA. + feature *string +} +// NewV1beta1DataServicesConnectorsGetResponse_items_rdaInfo_features instantiates a new V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_features and sets the default values. +func NewV1beta1DataServicesConnectorsGetResponse_items_rdaInfo_features()(*V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_features) { + m := &V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_features{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsGetResponse_items_rdaInfo_featuresFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsGetResponse_items_rdaInfo_featuresFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsGetResponse_items_rdaInfo_features(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_features) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFeature gets the feature property value. Abbreviation of supported feature in RDA. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_features) GetFeature()(*string) { + return m.feature +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_features) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["feature"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFeature(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_features) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("feature", m.GetFeature()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_features) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetFeature sets the feature property value. Abbreviation of supported feature in RDA. +func (m *V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_features) SetFeature(value *string)() { + m.feature = value +} +type V1beta1DataServicesConnectorsGetResponse_items_rdaInfo_featuresable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetFeature()(*string) + SetFeature(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_service_versions.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_service_versions.go new file mode 100644 index 0000000..f54adfa --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_get_response_escaped_items_escaped_service_versions.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsGetResponse_items_serviceVersions struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the DSC service. + serviceName *string + // Version of the DSC service. + serviceVersion *string +} +// NewV1beta1DataServicesConnectorsGetResponse_items_serviceVersions instantiates a new V1beta1DataServicesConnectorsGetResponse_items_serviceVersions and sets the default values. +func NewV1beta1DataServicesConnectorsGetResponse_items_serviceVersions()(*V1beta1DataServicesConnectorsGetResponse_items_serviceVersions) { + m := &V1beta1DataServicesConnectorsGetResponse_items_serviceVersions{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsGetResponse_items_serviceVersionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsGetResponse_items_serviceVersionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsGetResponse_items_serviceVersions(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_serviceVersions) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_serviceVersions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["serviceName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetServiceName(val) + } + return nil + } + res["serviceVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetServiceVersion(val) + } + return nil + } + return res +} +// GetServiceName gets the serviceName property value. Name of the DSC service. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_serviceVersions) GetServiceName()(*string) { + return m.serviceName +} +// GetServiceVersion gets the serviceVersion property value. Version of the DSC service. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsGetResponse_items_serviceVersions) GetServiceVersion()(*string) { + return m.serviceVersion +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsGetResponse_items_serviceVersions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("serviceName", m.GetServiceName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("serviceVersion", m.GetServiceVersion()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsGetResponse_items_serviceVersions) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetServiceName sets the serviceName property value. Name of the DSC service. +func (m *V1beta1DataServicesConnectorsGetResponse_items_serviceVersions) SetServiceName(value *string)() { + m.serviceName = value +} +// SetServiceVersion sets the serviceVersion property value. Version of the DSC service. +func (m *V1beta1DataServicesConnectorsGetResponse_items_serviceVersions) SetServiceVersion(value *string)() { + m.serviceVersion = value +} +type V1beta1DataServicesConnectorsGetResponse_items_serviceVersionsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetServiceName()(*string) + GetServiceVersion()(*string) + SetServiceName(value *string)() + SetServiceVersion(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors400_error.go new file mode 100644 index 0000000..79301d3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectors400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectors400Error instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectors400Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectors400Error()(*V1beta1DataServicesConnectorsItemDataServicesConnectors400Error) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectors400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectors400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectors400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectors400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectors400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors401_error.go new file mode 100644 index 0000000..29d4e51 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectors401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectors401Error instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectors401Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectors401Error()(*V1beta1DataServicesConnectorsItemDataServicesConnectors401Error) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectors401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectors401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectors401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectors401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectors401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors403_error.go new file mode 100644 index 0000000..b660bba --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectors403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectors403Error instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectors403Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectors403Error()(*V1beta1DataServicesConnectorsItemDataServicesConnectors403Error) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectors403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectors403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectors403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectors403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectors403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors404_error.go new file mode 100644 index 0000000..1da3c7a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectors404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectors404Error instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectors404Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectors404Error()(*V1beta1DataServicesConnectorsItemDataServicesConnectors404Error) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectors404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectors404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectors404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectors404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectors404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors500_error.go new file mode 100644 index 0000000..9fa9b3d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectors500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectors500Error instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectors500Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectors500Error()(*V1beta1DataServicesConnectorsItemDataServicesConnectors500Error) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectors500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectors500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectors500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectors500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectors500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors503_error.go new file mode 100644 index 0000000..e6fab7d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectors503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectors503Error instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectors503Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectors503Error()(*V1beta1DataServicesConnectorsItemDataServicesConnectors503Error) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectors503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectors503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectors503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectors503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectors503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectors503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response.go new file mode 100644 index 0000000..579777b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response.go @@ -0,0 +1,930 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse detailed information of Data Services Collector +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // List of available software versions for upgrade + availableVersions []string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // This details the current date and time of the Data Services Connector, how the current date and time is determined, as well as the user specified timezone. + dateTime V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTimeable + // Device model of Data Services Connector. + deviceModel *string + // User-defined name given to Data Services Connector. + displayName *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // List of hypervisor managers configured on the Data Services Connector. + hypervisorManagers []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagersable + // Unique ID identifying a Data Services Connector. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Indicates whether Infosight is enabled or disabled. + infosightEnabled *bool + // The interfaces property + interfaces V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfacesable + // UTC time when the Data Services Connector was last updated. + lastUpdateCheckTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Name of Data Services Connector. + name *string + // The ntp property + ntp V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntpable + // Data Services Connector persona. + persona *string + // UTC time when Data Services Connector was last powered on. + poweredOnAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Product name of Data Services Connector. + productName *string + // This provides details of the RDA for Data Services Connector. + rdaInfo V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfoable + // RDA Station ID identifying a Data Services Connector. + remoteAccessStationId *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The self reference for this resource. + resourceUri *string + // Data Services Connector serial number. + serialNumber *string + // List of services with name and version configured on the Data Services Connector. + serviceVersions []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersionsable + // Data Services Connector software version. + softwareVersion *string + // Reason for the Data Services Connector being in the current state. This will be empty when the Data Services Connector is in an OK state. + stateReason *string + // Serial number of the Alletra MP Storage System. + storageSystemSerialNumber *string + // Total RAM configured for the Data Services Connector in GiB. + totalMemoryInGiB *int32 + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Returns the number of seconds since Data Services Connector was powered on. + upTimeInSeconds *float64 + // Number of virtual CPUs configured for the Data Services Connector. + vCpu *int32 +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAvailableVersions gets the availableVersions property value. List of available software versions for upgrade +// returns a []string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetAvailableVersions()([]string) { + return m.availableVersions +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDateTime gets the dateTime property value. This details the current date and time of the Data Services Connector, how the current date and time is determined, as well as the user specified timezone. +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTimeable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetDateTime()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTimeable) { + return m.dateTime +} +// GetDeviceModel gets the deviceModel property value. Device model of Data Services Connector. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetDeviceModel()(*string) { + return m.deviceModel +} +// GetDisplayName gets the displayName property value. User-defined name given to Data Services Connector. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetDisplayName()(*string) { + return m.displayName +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["availableVersions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetAvailableVersions(res) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["dateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTimeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetDateTime(val.(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTimeable)) + } + return nil + } + res["deviceModel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDeviceModel(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["hypervisorManagers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagersFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagersable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagersable) + } + } + m.SetHypervisorManagers(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["infosightEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetInfosightEnabled(val) + } + return nil + } + res["interfaces"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfacesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetInterfaces(val.(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfacesable)) + } + return nil + } + res["lastUpdateCheckTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdateCheckTime(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["ntp"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntpFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNtp(val.(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntpable)) + } + return nil + } + res["persona"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPersona(val) + } + return nil + } + res["poweredOnAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetPoweredOnAt(val) + } + return nil + } + res["productName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetProductName(val) + } + return nil + } + res["rdaInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetRdaInfo(val.(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfoable)) + } + return nil + } + res["remoteAccessStationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetRemoteAccessStationId(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["serialNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSerialNumber(val) + } + return nil + } + res["serviceVersions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersionsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersionsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersionsable) + } + } + m.SetServiceVersions(res) + } + return nil + } + res["softwareVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSoftwareVersion(val) + } + return nil + } + res["stateReason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStateReason(val) + } + return nil + } + res["storageSystemSerialNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStorageSystemSerialNumber(val) + } + return nil + } + res["totalMemoryInGiB"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotalMemoryInGiB(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["upTimeInSeconds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetFloat64Value() + if err != nil { + return err + } + if val != nil { + m.SetUpTimeInSeconds(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + res["vCpu"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetVCpu(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetGeneration()(*int64) { + return m.generation +} +// GetHypervisorManagers gets the hypervisorManagers property value. List of hypervisor managers configured on the Data Services Connector. +// returns a []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagersable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetHypervisorManagers()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagersable) { + return m.hypervisorManagers +} +// GetId gets the id property value. Unique ID identifying a Data Services Connector. +// returns a *UUID when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetInfosightEnabled gets the infosightEnabled property value. Indicates whether Infosight is enabled or disabled. +// returns a *bool when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetInfosightEnabled()(*bool) { + return m.infosightEnabled +} +// GetInterfaces gets the interfaces property value. The interfaces property +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfacesable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetInterfaces()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfacesable) { + return m.interfaces +} +// GetLastUpdateCheckTime gets the lastUpdateCheckTime property value. UTC time when the Data Services Connector was last updated. +// returns a *Time when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetLastUpdateCheckTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.lastUpdateCheckTime +} +// GetName gets the name property value. Name of Data Services Connector. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetName()(*string) { + return m.name +} +// GetNtp gets the ntp property value. The ntp property +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntpable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetNtp()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntpable) { + return m.ntp +} +// GetPersona gets the persona property value. Data Services Connector persona. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetPersona()(*string) { + return m.persona +} +// GetPoweredOnAt gets the poweredOnAt property value. UTC time when Data Services Connector was last powered on. +// returns a *Time when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetPoweredOnAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.poweredOnAt +} +// GetProductName gets the productName property value. Product name of Data Services Connector. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetProductName()(*string) { + return m.productName +} +// GetRdaInfo gets the rdaInfo property value. This provides details of the RDA for Data Services Connector. +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfoable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetRdaInfo()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfoable) { + return m.rdaInfo +} +// GetRemoteAccessStationId gets the remoteAccessStationId property value. RDA Station ID identifying a Data Services Connector. +// returns a *UUID when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetRemoteAccessStationId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.remoteAccessStationId +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSerialNumber gets the serialNumber property value. Data Services Connector serial number. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetSerialNumber()(*string) { + return m.serialNumber +} +// GetServiceVersions gets the serviceVersions property value. List of services with name and version configured on the Data Services Connector. +// returns a []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersionsable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetServiceVersions()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersionsable) { + return m.serviceVersions +} +// GetSoftwareVersion gets the softwareVersion property value. Data Services Connector software version. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetSoftwareVersion()(*string) { + return m.softwareVersion +} +// GetStateReason gets the stateReason property value. Reason for the Data Services Connector being in the current state. This will be empty when the Data Services Connector is in an OK state. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetStateReason()(*string) { + return m.stateReason +} +// GetStorageSystemSerialNumber gets the storageSystemSerialNumber property value. Serial number of the Alletra MP Storage System. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetStorageSystemSerialNumber()(*string) { + return m.storageSystemSerialNumber +} +// GetTotalMemoryInGiB gets the totalMemoryInGiB property value. Total RAM configured for the Data Services Connector in GiB. +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetTotalMemoryInGiB()(*int32) { + return m.totalMemoryInGiB +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// GetUpTimeInSeconds gets the upTimeInSeconds property value. Returns the number of seconds since Data Services Connector was powered on. +// returns a *float64 when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetUpTimeInSeconds()(*float64) { + return m.upTimeInSeconds +} +// GetVCpu gets the vCpu property value. Number of virtual CPUs configured for the Data Services Connector. +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) GetVCpu()(*int32) { + return m.vCpu +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAvailableVersions() != nil { + err := writer.WriteCollectionOfStringValues("availableVersions", m.GetAvailableVersions()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("dateTime", m.GetDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("deviceModel", m.GetDeviceModel()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + if m.GetHypervisorManagers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetHypervisorManagers())) + for i, v := range m.GetHypervisorManagers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("hypervisorManagers", cast) + if err != nil { + return err + } + } + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("infosightEnabled", m.GetInfosightEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("interfaces", m.GetInterfaces()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("lastUpdateCheckTime", m.GetLastUpdateCheckTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("ntp", m.GetNtp()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("persona", m.GetPersona()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("poweredOnAt", m.GetPoweredOnAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("productName", m.GetProductName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("rdaInfo", m.GetRdaInfo()) + if err != nil { + return err + } + } + { + err := writer.WriteUUIDValue("remoteAccessStationId", m.GetRemoteAccessStationId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("serialNumber", m.GetSerialNumber()) + if err != nil { + return err + } + } + if m.GetServiceVersions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetServiceVersions())) + for i, v := range m.GetServiceVersions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("serviceVersions", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("softwareVersion", m.GetSoftwareVersion()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("stateReason", m.GetStateReason()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("storageSystemSerialNumber", m.GetStorageSystemSerialNumber()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("totalMemoryInGiB", m.GetTotalMemoryInGiB()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteFloat64Value("upTimeInSeconds", m.GetUpTimeInSeconds()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("vCpu", m.GetVCpu()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAvailableVersions sets the availableVersions property value. List of available software versions for upgrade +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetAvailableVersions(value []string)() { + m.availableVersions = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDateTime sets the dateTime property value. This details the current date and time of the Data Services Connector, how the current date and time is determined, as well as the user specified timezone. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetDateTime(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTimeable)() { + m.dateTime = value +} +// SetDeviceModel sets the deviceModel property value. Device model of Data Services Connector. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetDeviceModel(value *string)() { + m.deviceModel = value +} +// SetDisplayName sets the displayName property value. User-defined name given to Data Services Connector. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetDisplayName(value *string)() { + m.displayName = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetGeneration(value *int64)() { + m.generation = value +} +// SetHypervisorManagers sets the hypervisorManagers property value. List of hypervisor managers configured on the Data Services Connector. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetHypervisorManagers(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagersable)() { + m.hypervisorManagers = value +} +// SetId sets the id property value. Unique ID identifying a Data Services Connector. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetInfosightEnabled sets the infosightEnabled property value. Indicates whether Infosight is enabled or disabled. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetInfosightEnabled(value *bool)() { + m.infosightEnabled = value +} +// SetInterfaces sets the interfaces property value. The interfaces property +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetInterfaces(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfacesable)() { + m.interfaces = value +} +// SetLastUpdateCheckTime sets the lastUpdateCheckTime property value. UTC time when the Data Services Connector was last updated. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetLastUpdateCheckTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.lastUpdateCheckTime = value +} +// SetName sets the name property value. Name of Data Services Connector. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetName(value *string)() { + m.name = value +} +// SetNtp sets the ntp property value. The ntp property +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetNtp(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntpable)() { + m.ntp = value +} +// SetPersona sets the persona property value. Data Services Connector persona. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetPersona(value *string)() { + m.persona = value +} +// SetPoweredOnAt sets the poweredOnAt property value. UTC time when Data Services Connector was last powered on. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetPoweredOnAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.poweredOnAt = value +} +// SetProductName sets the productName property value. Product name of Data Services Connector. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetProductName(value *string)() { + m.productName = value +} +// SetRdaInfo sets the rdaInfo property value. This provides details of the RDA for Data Services Connector. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetRdaInfo(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfoable)() { + m.rdaInfo = value +} +// SetRemoteAccessStationId sets the remoteAccessStationId property value. RDA Station ID identifying a Data Services Connector. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetRemoteAccessStationId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.remoteAccessStationId = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSerialNumber sets the serialNumber property value. Data Services Connector serial number. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetSerialNumber(value *string)() { + m.serialNumber = value +} +// SetServiceVersions sets the serviceVersions property value. List of services with name and version configured on the Data Services Connector. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetServiceVersions(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersionsable)() { + m.serviceVersions = value +} +// SetSoftwareVersion sets the softwareVersion property value. Data Services Connector software version. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetSoftwareVersion(value *string)() { + m.softwareVersion = value +} +// SetStateReason sets the stateReason property value. Reason for the Data Services Connector being in the current state. This will be empty when the Data Services Connector is in an OK state. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetStateReason(value *string)() { + m.stateReason = value +} +// SetStorageSystemSerialNumber sets the storageSystemSerialNumber property value. Serial number of the Alletra MP Storage System. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetStorageSystemSerialNumber(value *string)() { + m.storageSystemSerialNumber = value +} +// SetTotalMemoryInGiB sets the totalMemoryInGiB property value. Total RAM configured for the Data Services Connector in GiB. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetTotalMemoryInGiB(value *int32)() { + m.totalMemoryInGiB = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +// SetUpTimeInSeconds sets the upTimeInSeconds property value. Returns the number of seconds since Data Services Connector was powered on. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetUpTimeInSeconds(value *float64)() { + m.upTimeInSeconds = value +} +// SetVCpu sets the vCpu property value. Number of virtual CPUs configured for the Data Services Connector. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse) SetVCpu(value *int32)() { + m.vCpu = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAvailableVersions()([]string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDateTime()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTimeable) + GetDeviceModel()(*string) + GetDisplayName()(*string) + GetGeneration()(*int64) + GetHypervisorManagers()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagersable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetInfosightEnabled()(*bool) + GetInterfaces()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfacesable) + GetLastUpdateCheckTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetName()(*string) + GetNtp()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntpable) + GetPersona()(*string) + GetPoweredOnAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetProductName()(*string) + GetRdaInfo()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfoable) + GetRemoteAccessStationId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetResourceUri()(*string) + GetSerialNumber()(*string) + GetServiceVersions()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersionsable) + GetSoftwareVersion()(*string) + GetStateReason()(*string) + GetStorageSystemSerialNumber()(*string) + GetTotalMemoryInGiB()(*int32) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetUpTimeInSeconds()(*float64) + GetVCpu()(*int32) + SetAvailableVersions(value []string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDateTime(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTimeable)() + SetDeviceModel(value *string)() + SetDisplayName(value *string)() + SetGeneration(value *int64)() + SetHypervisorManagers(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_hypervisorManagersable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetInfosightEnabled(value *bool)() + SetInterfaces(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfacesable)() + SetLastUpdateCheckTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetName(value *string)() + SetNtp(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntpable)() + SetPersona(value *string)() + SetPoweredOnAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetProductName(value *string)() + SetRdaInfo(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfoable)() + SetRemoteAccessStationId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetResourceUri(value *string)() + SetSerialNumber(value *string)() + SetServiceVersions(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersionsable)() + SetSoftwareVersion(value *string)() + SetStateReason(value *string)() + SetStorageSystemSerialNumber(value *string)() + SetTotalMemoryInGiB(value *int32)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetUpTimeInSeconds(value *float64)() + SetVCpu(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_date_time.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_date_time.go new file mode 100644 index 0000000..8c58728 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_date_time.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTime this details the current date and time of the Data Services Connector, how the current date and time is determined, as well as the user specified timezone. +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTime struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Time zone in which the Data Services Connector is deployed. + timezone *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTime instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTime and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTime()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTime) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTime{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTimeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTimeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTime(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTime) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTime) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["timezone"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTimezone(val) + } + return nil + } + return res +} +// GetTimezone gets the timezone property value. Time zone in which the Data Services Connector is deployed. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTime) GetTimezone()(*string) { + return m.timezone +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTime) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("timezone", m.GetTimezone()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTime) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetTimezone sets the timezone property value. Time zone in which the Data Services Connector is deployed. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTime) SetTimezone(value *string)() { + m.timezone = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_dateTimeable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetTimezone()(*string) + SetTimezone(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_interfaces.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_interfaces.go new file mode 100644 index 0000000..105a679 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_interfaces.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The network property + network V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_networkable +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfacesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfacesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["network"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_networkFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNetwork(val.(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_networkable)) + } + return nil + } + return res +} +// GetNetwork gets the network property value. The network property +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_networkable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces) GetNetwork()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_networkable) { + return m.network +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("network", m.GetNetwork()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetNetwork sets the network property value. The network property +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces) SetNetwork(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_networkable)() { + m.network = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfacesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetNetwork()(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_networkable) + SetNetwork(value V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_interfaces_networkable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_ntp.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_ntp.go new file mode 100644 index 0000000..0d59e24 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_ntp.go @@ -0,0 +1,121 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // NTP servers against which the Data Services Connector should synchronize. + ntpServers []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServersable + // Reason for the current state of the NTP configuration. + stateReason *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntpFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntpFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["ntpServers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServersFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServersable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServersable) + } + } + m.SetNtpServers(res) + } + return nil + } + res["stateReason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStateReason(val) + } + return nil + } + return res +} +// GetNtpServers gets the ntpServers property value. NTP servers against which the Data Services Connector should synchronize. +// returns a []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServersable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp) GetNtpServers()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServersable) { + return m.ntpServers +} +// GetStateReason gets the stateReason property value. Reason for the current state of the NTP configuration. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp) GetStateReason()(*string) { + return m.stateReason +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetNtpServers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetNtpServers())) + for i, v := range m.GetNtpServers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("ntpServers", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("stateReason", m.GetStateReason()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetNtpServers sets the ntpServers property value. NTP servers against which the Data Services Connector should synchronize. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp) SetNtpServers(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServersable)() { + m.ntpServers = value +} +// SetStateReason sets the stateReason property value. Reason for the current state of the NTP configuration. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp) SetStateReason(value *string)() { + m.stateReason = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntpable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetNtpServers()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServersable) + GetStateReason()(*string) + SetNtpServers(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_ntp_ntpServersable)() + SetStateReason(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_rda_info.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_rda_info.go new file mode 100644 index 0000000..08ac48b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_rda_info.go @@ -0,0 +1,296 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo this provides details of the RDA for Data Services Connector. +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Is RDA enabled. + enabled *bool + // Features support in RDA. + features []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_featuresable + // Is RDA connected to internet. + internetConnected *bool + // RDA midway URL. + midway *string + // name of DSC product class. + productClass *string + // name of DSC product line. + productLine *string + // Is remote access to RDA enabled. + remoteAccessEnabled *bool + // Reason for the RDA being in the current state. This will be empty when the RDA is in an OK state. + stateReason *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetEnabled gets the enabled property value. Is RDA enabled. +// returns a *bool when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) GetEnabled()(*bool) { + return m.enabled +} +// GetFeatures gets the features property value. Features support in RDA. +// returns a []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_featuresable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) GetFeatures()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_featuresable) { + return m.features +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["enabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetEnabled(val) + } + return nil + } + res["features"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_featuresFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_featuresable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_featuresable) + } + } + m.SetFeatures(res) + } + return nil + } + res["internetConnected"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetInternetConnected(val) + } + return nil + } + res["midway"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMidway(val) + } + return nil + } + res["productClass"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetProductClass(val) + } + return nil + } + res["productLine"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetProductLine(val) + } + return nil + } + res["remoteAccessEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetRemoteAccessEnabled(val) + } + return nil + } + res["stateReason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStateReason(val) + } + return nil + } + return res +} +// GetInternetConnected gets the internetConnected property value. Is RDA connected to internet. +// returns a *bool when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) GetInternetConnected()(*bool) { + return m.internetConnected +} +// GetMidway gets the midway property value. RDA midway URL. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) GetMidway()(*string) { + return m.midway +} +// GetProductClass gets the productClass property value. name of DSC product class. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) GetProductClass()(*string) { + return m.productClass +} +// GetProductLine gets the productLine property value. name of DSC product line. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) GetProductLine()(*string) { + return m.productLine +} +// GetRemoteAccessEnabled gets the remoteAccessEnabled property value. Is remote access to RDA enabled. +// returns a *bool when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) GetRemoteAccessEnabled()(*bool) { + return m.remoteAccessEnabled +} +// GetStateReason gets the stateReason property value. Reason for the RDA being in the current state. This will be empty when the RDA is in an OK state. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) GetStateReason()(*string) { + return m.stateReason +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("enabled", m.GetEnabled()) + if err != nil { + return err + } + } + if m.GetFeatures() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetFeatures())) + for i, v := range m.GetFeatures() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("features", cast) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("internetConnected", m.GetInternetConnected()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("midway", m.GetMidway()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("productClass", m.GetProductClass()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("productLine", m.GetProductLine()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("remoteAccessEnabled", m.GetRemoteAccessEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("stateReason", m.GetStateReason()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetEnabled sets the enabled property value. Is RDA enabled. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) SetEnabled(value *bool)() { + m.enabled = value +} +// SetFeatures sets the features property value. Features support in RDA. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) SetFeatures(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_featuresable)() { + m.features = value +} +// SetInternetConnected sets the internetConnected property value. Is RDA connected to internet. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) SetInternetConnected(value *bool)() { + m.internetConnected = value +} +// SetMidway sets the midway property value. RDA midway URL. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) SetMidway(value *string)() { + m.midway = value +} +// SetProductClass sets the productClass property value. name of DSC product class. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) SetProductClass(value *string)() { + m.productClass = value +} +// SetProductLine sets the productLine property value. name of DSC product line. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) SetProductLine(value *string)() { + m.productLine = value +} +// SetRemoteAccessEnabled sets the remoteAccessEnabled property value. Is remote access to RDA enabled. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) SetRemoteAccessEnabled(value *bool)() { + m.remoteAccessEnabled = value +} +// SetStateReason sets the stateReason property value. Reason for the RDA being in the current state. This will be empty when the RDA is in an OK state. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo) SetStateReason(value *string)() { + m.stateReason = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfoable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetEnabled()(*bool) + GetFeatures()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_featuresable) + GetInternetConnected()(*bool) + GetMidway()(*string) + GetProductClass()(*string) + GetProductLine()(*string) + GetRemoteAccessEnabled()(*bool) + GetStateReason()(*string) + SetEnabled(value *bool)() + SetFeatures(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_rdaInfo_featuresable)() + SetInternetConnected(value *bool)() + SetMidway(value *string)() + SetProductClass(value *string)() + SetProductLine(value *string)() + SetRemoteAccessEnabled(value *bool)() + SetStateReason(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_service_versions.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_service_versions.go new file mode 100644 index 0000000..0a62e06 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_get_response_escaped_service_versions.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersions struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the DSC service. + serviceName *string + // Version of the DSC service. + serviceVersion *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersions instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersions and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersions()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersions) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersions{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersions(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersions) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["serviceName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetServiceName(val) + } + return nil + } + res["serviceVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetServiceVersion(val) + } + return nil + } + return res +} +// GetServiceName gets the serviceName property value. Name of the DSC service. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersions) GetServiceName()(*string) { + return m.serviceName +} +// GetServiceVersion gets the serviceVersion property value. Version of the DSC service. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersions) GetServiceVersion()(*string) { + return m.serviceVersion +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("serviceName", m.GetServiceName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("serviceVersion", m.GetServiceVersion()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersions) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetServiceName sets the serviceName property value. Name of the DSC service. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersions) SetServiceName(value *string)() { + m.serviceName = value +} +// SetServiceVersion sets the serviceVersion property value. Version of the DSC service. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersions) SetServiceVersion(value *string)() { + m.serviceVersion = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse_serviceVersionsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetServiceName()(*string) + GetServiceVersion()(*string) + SetServiceName(value *string)() + SetServiceVersion(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body.go new file mode 100644 index 0000000..7321b4b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body.go @@ -0,0 +1,227 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody attrbutes of Data Services Collector which are available for update. +type V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // User-defined name given to the Data Services Connector by the customer. + displayName *string + // List of configured DNS servers configured on the Data Services Connector. + dns []V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dnsable + // NTP servers against which the Data Services Connector should synchronize. + ntp []V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntpable + // The proxy property + proxy V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxyable + // List of search domains. + searchDomains []string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDisplayName gets the displayName property value. User-defined name given to the Data Services Connector by the customer. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody) GetDisplayName()(*string) { + return m.displayName +} +// GetDns gets the dns property value. List of configured DNS servers configured on the Data Services Connector. +// returns a []V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dnsable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody) GetDns()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dnsable) { + return m.dns +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["dns"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dnsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dnsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dnsable) + } + } + m.SetDns(res) + } + return nil + } + res["ntp"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntpFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntpable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntpable) + } + } + m.SetNtp(res) + } + return nil + } + res["proxy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetProxy(val.(V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxyable)) + } + return nil + } + res["searchDomains"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetSearchDomains(res) + } + return nil + } + return res +} +// GetNtp gets the ntp property value. NTP servers against which the Data Services Connector should synchronize. +// returns a []V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntpable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody) GetNtp()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntpable) { + return m.ntp +} +// GetProxy gets the proxy property value. The proxy property +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxyable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody) GetProxy()(V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxyable) { + return m.proxy +} +// GetSearchDomains gets the searchDomains property value. List of search domains. +// returns a []string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody) GetSearchDomains()([]string) { + return m.searchDomains +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + if m.GetDns() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDns())) + for i, v := range m.GetDns() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("dns", cast) + if err != nil { + return err + } + } + if m.GetNtp() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetNtp())) + for i, v := range m.GetNtp() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("ntp", cast) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("proxy", m.GetProxy()) + if err != nil { + return err + } + } + if m.GetSearchDomains() != nil { + err := writer.WriteCollectionOfStringValues("searchDomains", m.GetSearchDomains()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDisplayName sets the displayName property value. User-defined name given to the Data Services Connector by the customer. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody) SetDisplayName(value *string)() { + m.displayName = value +} +// SetDns sets the dns property value. List of configured DNS servers configured on the Data Services Connector. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody) SetDns(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dnsable)() { + m.dns = value +} +// SetNtp sets the ntp property value. NTP servers against which the Data Services Connector should synchronize. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody) SetNtp(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntpable)() { + m.ntp = value +} +// SetProxy sets the proxy property value. The proxy property +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody) SetProxy(value V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxyable)() { + m.proxy = value +} +// SetSearchDomains sets the searchDomains property value. List of search domains. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody) SetSearchDomains(value []string)() { + m.searchDomains = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDisplayName()(*string) + GetDns()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dnsable) + GetNtp()([]V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntpable) + GetProxy()(V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxyable) + GetSearchDomains()([]string) + SetDisplayName(value *string)() + SetDns(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dnsable)() + SetNtp(value []V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntpable)() + SetProxy(value V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxyable)() + SetSearchDomains(value []string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body_escaped_dns.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body_escaped_dns.go new file mode 100644 index 0000000..f18a90d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body_escaped_dns.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dns struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // IP address or FQDN of DNS server. + networkAddress *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dns instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dns and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dns()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dns) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dns{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dnsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dnsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dns(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dns) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dns) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["networkAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNetworkAddress(val) + } + return nil + } + return res +} +// GetNetworkAddress gets the networkAddress property value. IP address or FQDN of DNS server. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dns) GetNetworkAddress()(*string) { + return m.networkAddress +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dns) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("networkAddress", m.GetNetworkAddress()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dns) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetNetworkAddress sets the networkAddress property value. IP address or FQDN of DNS server. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dns) SetNetworkAddress(value *string)() { + m.networkAddress = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_dnsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetNetworkAddress()(*string) + SetNetworkAddress(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body_escaped_ntp.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body_escaped_ntp.go new file mode 100644 index 0000000..5529675 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body_escaped_ntp.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntp struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // An IP address or FQDN of the NTP server. + networkAddress *string +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntp instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntp and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntp()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntp) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntp{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntpFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntpFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntp(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntp) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["networkAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNetworkAddress(val) + } + return nil + } + return res +} +// GetNetworkAddress gets the networkAddress property value. An IP address or FQDN of the NTP server. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntp) GetNetworkAddress()(*string) { + return m.networkAddress +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("networkAddress", m.GetNetworkAddress()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntp) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetNetworkAddress sets the networkAddress property value. An IP address or FQDN of the NTP server. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntp) SetNetworkAddress(value *string)() { + m.networkAddress = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_ntpable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetNetworkAddress()(*string) + SetNetworkAddress(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body_escaped_proxy.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body_escaped_proxy.go new file mode 100644 index 0000000..e71a129 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_patch_request_body_escaped_proxy.go @@ -0,0 +1,138 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The credentials property + credentials V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentialsable + // An IP address or FQDN to address the proxy server + networkAddress *string + // Port number of the proxy server + port *int32 +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCredentials gets the credentials property value. The credentials property +// returns a V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentialsable when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy) GetCredentials()(V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentialsable) { + return m.credentials +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["credentials"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentialsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCredentials(val.(V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentialsable)) + } + return nil + } + res["networkAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNetworkAddress(val) + } + return nil + } + res["port"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetPort(val) + } + return nil + } + return res +} +// GetNetworkAddress gets the networkAddress property value. An IP address or FQDN to address the proxy server +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy) GetNetworkAddress()(*string) { + return m.networkAddress +} +// GetPort gets the port property value. Port number of the proxy server +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy) GetPort()(*int32) { + return m.port +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("credentials", m.GetCredentials()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("networkAddress", m.GetNetworkAddress()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("port", m.GetPort()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCredentials sets the credentials property value. The credentials property +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy) SetCredentials(value V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentialsable)() { + m.credentials = value +} +// SetNetworkAddress sets the networkAddress property value. An IP address or FQDN to address the proxy server +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy) SetNetworkAddress(value *string)() { + m.networkAddress = value +} +// SetPort sets the port property value. Port number of the proxy server +func (m *V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy) SetPort(value *int32)() { + m.port = value +} +type V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCredentials()(V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentialsable) + GetNetworkAddress()(*string) + GetPort()(*int32) + SetCredentials(value V1beta1DataServicesConnectorsItemDataServicesConnectorsPatchRequestBody_proxy_credentialsable)() + SetNetworkAddress(value *string)() + SetPort(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_response.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_response.go new file mode 100644 index 0000000..180a140 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_data_services_connectors_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DataServicesConnectorsItemDataServicesConnectorsResponse detailed information of Data Services Collector +// Deprecated: This class is obsolete. Use V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponseable instead. +type V1beta1DataServicesConnectorsItemDataServicesConnectorsResponse struct { + V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse +} +// NewV1beta1DataServicesConnectorsItemDataServicesConnectorsResponse instantiates a new V1beta1DataServicesConnectorsItemDataServicesConnectorsResponse and sets the default values. +func NewV1beta1DataServicesConnectorsItemDataServicesConnectorsResponse()(*V1beta1DataServicesConnectorsItemDataServicesConnectorsResponse) { + m := &V1beta1DataServicesConnectorsItemDataServicesConnectorsResponse{ + V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse: *NewV1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponse(), + } + return m +} +// CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemDataServicesConnectorsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemDataServicesConnectorsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponseable instead. +type V1beta1DataServicesConnectorsItemDataServicesConnectorsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1DataServicesConnectorsItemDataServicesConnectorsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle400_error.go new file mode 100644 index 0000000..844c12c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemGenerateSupportBundle400Error instantiates a new V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateSupportBundle400Error()(*V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error) { + m := &V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemGenerateSupportBundle400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemGenerateSupportBundle400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle401_error.go new file mode 100644 index 0000000..eff4acf --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemGenerateSupportBundle401Error instantiates a new V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateSupportBundle401Error()(*V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error) { + m := &V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemGenerateSupportBundle401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemGenerateSupportBundle401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle403_error.go new file mode 100644 index 0000000..93884ee --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemGenerateSupportBundle403Error instantiates a new V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateSupportBundle403Error()(*V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error) { + m := &V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemGenerateSupportBundle403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemGenerateSupportBundle403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle404_error.go new file mode 100644 index 0000000..7dc111d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemGenerateSupportBundle404Error instantiates a new V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateSupportBundle404Error()(*V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error) { + m := &V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemGenerateSupportBundle404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemGenerateSupportBundle404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle500_error.go new file mode 100644 index 0000000..5c93b99 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemGenerateSupportBundle500Error instantiates a new V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateSupportBundle500Error()(*V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error) { + m := &V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemGenerateSupportBundle500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemGenerateSupportBundle500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle503_error.go new file mode 100644 index 0000000..99d3dff --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemGenerateSupportBundle503Error instantiates a new V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateSupportBundle503Error()(*V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error) { + m := &V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemGenerateSupportBundle503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemGenerateSupportBundle503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle_post_request_body.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle_post_request_body.go new file mode 100644 index 0000000..fc4e107 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle_post_request_body.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBody create a new support-bundle +type V1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBody struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A brief description about the support-bundle. + description *string +} +// NewV1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBody instantiates a new V1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBody and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBody()(*V1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBody) { + m := &V1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDescription gets the description property value. A brief description about the support-bundle. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBody) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDescription sets the description property value. A brief description about the support-bundle. +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBody) SetDescription(value *string)() { + m.description = value +} +type V1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDescription()(*string) + SetDescription(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle_request_builder.go new file mode 100644 index 0000000..f94eea8 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_support_bundle_request_builder.go @@ -0,0 +1,82 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder builds and executes requests for operations under \data-services\v1beta1\data-services-connectors\{id}\generate-support-bundle +type V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilderInternal instantiates a new V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder) { + m := &V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/data-services-connectors/{id}/generate-support-bundle", pathParameters), + } + return m +} +// NewV1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder instantiates a new V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilderInternal(urlParams, requestAdapter) +} +// Post generate a new support-bundle +// returns a UntypedNodeable when successful +// returns a V1beta1DataServicesConnectorsItemGenerateSupportBundle400Error error when the service returns a 400 status code +// returns a V1beta1DataServicesConnectorsItemGenerateSupportBundle401Error error when the service returns a 401 status code +// returns a V1beta1DataServicesConnectorsItemGenerateSupportBundle403Error error when the service returns a 403 status code +// returns a V1beta1DataServicesConnectorsItemGenerateSupportBundle404Error error when the service returns a 404 status code +// returns a V1beta1DataServicesConnectorsItemGenerateSupportBundle500Error error when the service returns a 500 status code +// returns a V1beta1DataServicesConnectorsItemGenerateSupportBundle503Error error when the service returns a 503 status code +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder) Post(ctx context.Context, body V1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBodyable, requestConfiguration *V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilderPostRequestConfiguration)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle403ErrorFromDiscriminatorValue, + "404": CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle404ErrorFromDiscriminatorValue, + "500": CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DataServicesConnectorsItemGenerateSupportBundle503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable), nil +} +// ToPostRequestInformation generate a new support-bundle +// returns a *RequestInformation when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder) ToPostRequestInformation(ctx context.Context, body V1beta1DataServicesConnectorsItemGenerateSupportBundlePostRequestBodyable, requestConfiguration *V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder when successful +func (m *V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder) WithUrl(rawUrl string)(*V1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder) { + return NewV1beta1DataServicesConnectorsItemGenerateSupportBundleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp400_error.go new file mode 100644 index 0000000..88b5f05 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemGenerateTotp400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemGenerateTotp400Error instantiates a new V1beta1DataServicesConnectorsItemGenerateTotp400Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateTotp400Error()(*V1beta1DataServicesConnectorsItemGenerateTotp400Error) { + m := &V1beta1DataServicesConnectorsItemGenerateTotp400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemGenerateTotp400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemGenerateTotp400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemGenerateTotp400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemGenerateTotp400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemGenerateTotp400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemGenerateTotp400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemGenerateTotp400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemGenerateTotp400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemGenerateTotp400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemGenerateTotp400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp401_error.go new file mode 100644 index 0000000..14e90b0 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemGenerateTotp401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemGenerateTotp401Error instantiates a new V1beta1DataServicesConnectorsItemGenerateTotp401Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateTotp401Error()(*V1beta1DataServicesConnectorsItemGenerateTotp401Error) { + m := &V1beta1DataServicesConnectorsItemGenerateTotp401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemGenerateTotp401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemGenerateTotp401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemGenerateTotp401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemGenerateTotp401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemGenerateTotp401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemGenerateTotp401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemGenerateTotp401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemGenerateTotp401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemGenerateTotp401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemGenerateTotp401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp403_error.go new file mode 100644 index 0000000..194c905 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemGenerateTotp403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemGenerateTotp403Error instantiates a new V1beta1DataServicesConnectorsItemGenerateTotp403Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateTotp403Error()(*V1beta1DataServicesConnectorsItemGenerateTotp403Error) { + m := &V1beta1DataServicesConnectorsItemGenerateTotp403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemGenerateTotp403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemGenerateTotp403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemGenerateTotp403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemGenerateTotp403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemGenerateTotp403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemGenerateTotp403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemGenerateTotp403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemGenerateTotp403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemGenerateTotp403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemGenerateTotp403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp404_error.go new file mode 100644 index 0000000..f249e05 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemGenerateTotp404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemGenerateTotp404Error instantiates a new V1beta1DataServicesConnectorsItemGenerateTotp404Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateTotp404Error()(*V1beta1DataServicesConnectorsItemGenerateTotp404Error) { + m := &V1beta1DataServicesConnectorsItemGenerateTotp404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemGenerateTotp404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemGenerateTotp404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemGenerateTotp404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemGenerateTotp404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemGenerateTotp404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemGenerateTotp404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemGenerateTotp404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemGenerateTotp404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemGenerateTotp404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemGenerateTotp404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp500_error.go new file mode 100644 index 0000000..4dc48bd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemGenerateTotp500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemGenerateTotp500Error instantiates a new V1beta1DataServicesConnectorsItemGenerateTotp500Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateTotp500Error()(*V1beta1DataServicesConnectorsItemGenerateTotp500Error) { + m := &V1beta1DataServicesConnectorsItemGenerateTotp500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemGenerateTotp500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemGenerateTotp500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemGenerateTotp500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemGenerateTotp500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemGenerateTotp500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemGenerateTotp500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemGenerateTotp500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemGenerateTotp500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemGenerateTotp500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemGenerateTotp500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp503_error.go new file mode 100644 index 0000000..ce63901 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemGenerateTotp503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemGenerateTotp503Error instantiates a new V1beta1DataServicesConnectorsItemGenerateTotp503Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateTotp503Error()(*V1beta1DataServicesConnectorsItemGenerateTotp503Error) { + m := &V1beta1DataServicesConnectorsItemGenerateTotp503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemGenerateTotp503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemGenerateTotp503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemGenerateTotp503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotp503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemGenerateTotp503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemGenerateTotp503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemGenerateTotp503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemGenerateTotp503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemGenerateTotp503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemGenerateTotp503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemGenerateTotp503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp_post_response.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp_post_response.go new file mode 100644 index 0000000..1b8997d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp_post_response.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemGenerateTotpPostResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // TOTP expiry time in seconds. + expiryInSeconds *int32 + // Time-based one-time password (TOTP) used to login to DSC VM UI and execute on-prem APIs + totp *string +} +// NewV1beta1DataServicesConnectorsItemGenerateTotpPostResponse instantiates a new V1beta1DataServicesConnectorsItemGenerateTotpPostResponse and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateTotpPostResponse()(*V1beta1DataServicesConnectorsItemGenerateTotpPostResponse) { + m := &V1beta1DataServicesConnectorsItemGenerateTotpPostResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemGenerateTotpPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemGenerateTotpPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemGenerateTotpPostResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotpPostResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetExpiryInSeconds gets the expiryInSeconds property value. TOTP expiry time in seconds. +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotpPostResponse) GetExpiryInSeconds()(*int32) { + return m.expiryInSeconds +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotpPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["expiryInSeconds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetExpiryInSeconds(val) + } + return nil + } + res["totp"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTotp(val) + } + return nil + } + return res +} +// GetTotp gets the totp property value. Time-based one-time password (TOTP) used to login to DSC VM UI and execute on-prem APIs +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotpPostResponse) GetTotp()(*string) { + return m.totp +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemGenerateTotpPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("expiryInSeconds", m.GetExpiryInSeconds()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("totp", m.GetTotp()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemGenerateTotpPostResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetExpiryInSeconds sets the expiryInSeconds property value. TOTP expiry time in seconds. +func (m *V1beta1DataServicesConnectorsItemGenerateTotpPostResponse) SetExpiryInSeconds(value *int32)() { + m.expiryInSeconds = value +} +// SetTotp sets the totp property value. Time-based one-time password (TOTP) used to login to DSC VM UI and execute on-prem APIs +func (m *V1beta1DataServicesConnectorsItemGenerateTotpPostResponse) SetTotp(value *string)() { + m.totp = value +} +type V1beta1DataServicesConnectorsItemGenerateTotpPostResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetExpiryInSeconds()(*int32) + GetTotp()(*string) + SetExpiryInSeconds(value *int32)() + SetTotp(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp_request_builder.go new file mode 100644 index 0000000..15978a5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp_request_builder.go @@ -0,0 +1,108 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder builds and executes requests for operations under \data-services\v1beta1\data-services-connectors\{id}\generate-totp +type V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1DataServicesConnectorsItemGenerateTotpRequestBuilderInternal instantiates a new V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateTotpRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder) { + m := &V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/data-services-connectors/{id}/generate-totp", pathParameters), + } + return m +} +// NewV1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder instantiates a new V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1DataServicesConnectorsItemGenerateTotpRequestBuilderInternal(urlParams, requestAdapter) +} +// Post generate a TOTP to access DSC on-prem UI +// Deprecated: This method is obsolete. Use PostAsGenerateTotpPostResponse instead. +// returns a V1beta1DataServicesConnectorsItemGenerateTotpResponseable when successful +// returns a V1beta1DataServicesConnectorsItemGenerateTotp400Error error when the service returns a 400 status code +// returns a V1beta1DataServicesConnectorsItemGenerateTotp401Error error when the service returns a 401 status code +// returns a V1beta1DataServicesConnectorsItemGenerateTotp403Error error when the service returns a 403 status code +// returns a V1beta1DataServicesConnectorsItemGenerateTotp404Error error when the service returns a 404 status code +// returns a V1beta1DataServicesConnectorsItemGenerateTotp500Error error when the service returns a 500 status code +// returns a V1beta1DataServicesConnectorsItemGenerateTotp503Error error when the service returns a 503 status code +func (m *V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder) Post(ctx context.Context, requestConfiguration *V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilderPostRequestConfiguration)(V1beta1DataServicesConnectorsItemGenerateTotpResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DataServicesConnectorsItemGenerateTotp400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DataServicesConnectorsItemGenerateTotp401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DataServicesConnectorsItemGenerateTotp403ErrorFromDiscriminatorValue, + "404": CreateV1beta1DataServicesConnectorsItemGenerateTotp404ErrorFromDiscriminatorValue, + "500": CreateV1beta1DataServicesConnectorsItemGenerateTotp500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DataServicesConnectorsItemGenerateTotp503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1DataServicesConnectorsItemGenerateTotpResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1DataServicesConnectorsItemGenerateTotpResponseable), nil +} +// PostAsGenerateTotpPostResponse generate a TOTP to access DSC on-prem UI +// returns a V1beta1DataServicesConnectorsItemGenerateTotpPostResponseable when successful +// returns a V1beta1DataServicesConnectorsItemGenerateTotp400Error error when the service returns a 400 status code +// returns a V1beta1DataServicesConnectorsItemGenerateTotp401Error error when the service returns a 401 status code +// returns a V1beta1DataServicesConnectorsItemGenerateTotp403Error error when the service returns a 403 status code +// returns a V1beta1DataServicesConnectorsItemGenerateTotp404Error error when the service returns a 404 status code +// returns a V1beta1DataServicesConnectorsItemGenerateTotp500Error error when the service returns a 500 status code +// returns a V1beta1DataServicesConnectorsItemGenerateTotp503Error error when the service returns a 503 status code +func (m *V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder) PostAsGenerateTotpPostResponse(ctx context.Context, requestConfiguration *V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilderPostRequestConfiguration)(V1beta1DataServicesConnectorsItemGenerateTotpPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DataServicesConnectorsItemGenerateTotp400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DataServicesConnectorsItemGenerateTotp401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DataServicesConnectorsItemGenerateTotp403ErrorFromDiscriminatorValue, + "404": CreateV1beta1DataServicesConnectorsItemGenerateTotp404ErrorFromDiscriminatorValue, + "500": CreateV1beta1DataServicesConnectorsItemGenerateTotp500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DataServicesConnectorsItemGenerateTotp503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1DataServicesConnectorsItemGenerateTotpPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1DataServicesConnectorsItemGenerateTotpPostResponseable), nil +} +// ToPostRequestInformation generate a TOTP to access DSC on-prem UI +// returns a *RequestInformation when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder when successful +func (m *V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder) WithUrl(rawUrl string)(*V1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder) { + return NewV1beta1DataServicesConnectorsItemGenerateTotpRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp_response.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp_response.go new file mode 100644 index 0000000..ff40d51 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_generate_totp_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1DataServicesConnectorsItemGenerateTotpPostResponseable instead. +type V1beta1DataServicesConnectorsItemGenerateTotpResponse struct { + V1beta1DataServicesConnectorsItemGenerateTotpPostResponse +} +// NewV1beta1DataServicesConnectorsItemGenerateTotpResponse instantiates a new V1beta1DataServicesConnectorsItemGenerateTotpResponse and sets the default values. +func NewV1beta1DataServicesConnectorsItemGenerateTotpResponse()(*V1beta1DataServicesConnectorsItemGenerateTotpResponse) { + m := &V1beta1DataServicesConnectorsItemGenerateTotpResponse{ + V1beta1DataServicesConnectorsItemGenerateTotpPostResponse: *NewV1beta1DataServicesConnectorsItemGenerateTotpPostResponse(), + } + return m +} +// CreateV1beta1DataServicesConnectorsItemGenerateTotpResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemGenerateTotpResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemGenerateTotpResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1DataServicesConnectorsItemGenerateTotpPostResponseable instead. +type V1beta1DataServicesConnectorsItemGenerateTotpResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1DataServicesConnectorsItemGenerateTotpPostResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support400_error.go new file mode 100644 index 0000000..e173b47 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemSetRemoteSupport400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemSetRemoteSupport400Error instantiates a new V1beta1DataServicesConnectorsItemSetRemoteSupport400Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemSetRemoteSupport400Error()(*V1beta1DataServicesConnectorsItemSetRemoteSupport400Error) { + m := &V1beta1DataServicesConnectorsItemSetRemoteSupport400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemSetRemoteSupport400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemSetRemoteSupport400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemSetRemoteSupport400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemSetRemoteSupport400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support401_error.go new file mode 100644 index 0000000..f5eb71f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemSetRemoteSupport401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemSetRemoteSupport401Error instantiates a new V1beta1DataServicesConnectorsItemSetRemoteSupport401Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemSetRemoteSupport401Error()(*V1beta1DataServicesConnectorsItemSetRemoteSupport401Error) { + m := &V1beta1DataServicesConnectorsItemSetRemoteSupport401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemSetRemoteSupport401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemSetRemoteSupport401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemSetRemoteSupport401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemSetRemoteSupport401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support403_error.go new file mode 100644 index 0000000..d6bc2e1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemSetRemoteSupport403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemSetRemoteSupport403Error instantiates a new V1beta1DataServicesConnectorsItemSetRemoteSupport403Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemSetRemoteSupport403Error()(*V1beta1DataServicesConnectorsItemSetRemoteSupport403Error) { + m := &V1beta1DataServicesConnectorsItemSetRemoteSupport403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemSetRemoteSupport403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemSetRemoteSupport403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemSetRemoteSupport403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemSetRemoteSupport403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support404_error.go new file mode 100644 index 0000000..5490867 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemSetRemoteSupport404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemSetRemoteSupport404Error instantiates a new V1beta1DataServicesConnectorsItemSetRemoteSupport404Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemSetRemoteSupport404Error()(*V1beta1DataServicesConnectorsItemSetRemoteSupport404Error) { + m := &V1beta1DataServicesConnectorsItemSetRemoteSupport404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemSetRemoteSupport404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemSetRemoteSupport404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemSetRemoteSupport404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemSetRemoteSupport404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support500_error.go new file mode 100644 index 0000000..7cbf6d4 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemSetRemoteSupport500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemSetRemoteSupport500Error instantiates a new V1beta1DataServicesConnectorsItemSetRemoteSupport500Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemSetRemoteSupport500Error()(*V1beta1DataServicesConnectorsItemSetRemoteSupport500Error) { + m := &V1beta1DataServicesConnectorsItemSetRemoteSupport500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemSetRemoteSupport500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemSetRemoteSupport500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemSetRemoteSupport500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemSetRemoteSupport500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support503_error.go new file mode 100644 index 0000000..90dd8de --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemSetRemoteSupport503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DataServicesConnectorsItemSetRemoteSupport503Error instantiates a new V1beta1DataServicesConnectorsItemSetRemoteSupport503Error and sets the default values. +func NewV1beta1DataServicesConnectorsItemSetRemoteSupport503Error()(*V1beta1DataServicesConnectorsItemSetRemoteSupport503Error) { + m := &V1beta1DataServicesConnectorsItemSetRemoteSupport503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemSetRemoteSupport503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemSetRemoteSupport503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemSetRemoteSupport503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupport503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DataServicesConnectorsItemSetRemoteSupport503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support_post_request_body.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support_post_request_body.go new file mode 100644 index 0000000..7dc8a39 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support_post_request_body.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBody struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Enable/Disable the InfoSight Remote Support for support engineers to login to Data Services Connector via InfoSight Interactive Device Acceess feature + remoteAccessEnabled *bool +} +// NewV1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBody instantiates a new V1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBody and sets the default values. +func NewV1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBody()(*V1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBody) { + m := &V1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["remoteAccessEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetRemoteAccessEnabled(val) + } + return nil + } + return res +} +// GetRemoteAccessEnabled gets the remoteAccessEnabled property value. Enable/Disable the InfoSight Remote Support for support engineers to login to Data Services Connector via InfoSight Interactive Device Acceess feature +// returns a *bool when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBody) GetRemoteAccessEnabled()(*bool) { + return m.remoteAccessEnabled +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("remoteAccessEnabled", m.GetRemoteAccessEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetRemoteAccessEnabled sets the remoteAccessEnabled property value. Enable/Disable the InfoSight Remote Support for support engineers to login to Data Services Connector via InfoSight Interactive Device Acceess feature +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBody) SetRemoteAccessEnabled(value *bool)() { + m.remoteAccessEnabled = value +} +type V1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetRemoteAccessEnabled()(*bool) + SetRemoteAccessEnabled(value *bool)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support_request_builder.go new file mode 100644 index 0000000..6763b37 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_item_set_remote_support_request_builder.go @@ -0,0 +1,82 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder builds and executes requests for operations under \data-services\v1beta1\data-services-connectors\{id}\set-remote-support +type V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilderInternal instantiates a new V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder and sets the default values. +func NewV1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder) { + m := &V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/data-services-connectors/{id}/set-remote-support", pathParameters), + } + return m +} +// NewV1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder instantiates a new V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder and sets the default values. +func NewV1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilderInternal(urlParams, requestAdapter) +} +// Post modify InfoSight Configuration for a Data Services Connector +// returns a UntypedNodeable when successful +// returns a V1beta1DataServicesConnectorsItemSetRemoteSupport400Error error when the service returns a 400 status code +// returns a V1beta1DataServicesConnectorsItemSetRemoteSupport401Error error when the service returns a 401 status code +// returns a V1beta1DataServicesConnectorsItemSetRemoteSupport403Error error when the service returns a 403 status code +// returns a V1beta1DataServicesConnectorsItemSetRemoteSupport404Error error when the service returns a 404 status code +// returns a V1beta1DataServicesConnectorsItemSetRemoteSupport500Error error when the service returns a 500 status code +// returns a V1beta1DataServicesConnectorsItemSetRemoteSupport503Error error when the service returns a 503 status code +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder) Post(ctx context.Context, body V1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBodyable, requestConfiguration *V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilderPostRequestConfiguration)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DataServicesConnectorsItemSetRemoteSupport400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DataServicesConnectorsItemSetRemoteSupport401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DataServicesConnectorsItemSetRemoteSupport403ErrorFromDiscriminatorValue, + "404": CreateV1beta1DataServicesConnectorsItemSetRemoteSupport404ErrorFromDiscriminatorValue, + "500": CreateV1beta1DataServicesConnectorsItemSetRemoteSupport500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DataServicesConnectorsItemSetRemoteSupport503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable), nil +} +// ToPostRequestInformation modify InfoSight Configuration for a Data Services Connector +// returns a *RequestInformation when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder) ToPostRequestInformation(ctx context.Context, body V1beta1DataServicesConnectorsItemSetRemoteSupportPostRequestBodyable, requestConfiguration *V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder when successful +func (m *V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder) WithUrl(rawUrl string)(*V1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder) { + return NewV1beta1DataServicesConnectorsItemSetRemoteSupportRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_post_request_body.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_post_request_body.go new file mode 100644 index 0000000..4ff772e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_post_request_body.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DataServicesConnectorsPostRequestBody struct { + // The activation code displayed on the Data Services Connector UI. + activationCode *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // User-defined name given to the Data Services Connector by the customer. + displayName *string +} +// NewV1beta1DataServicesConnectorsPostRequestBody instantiates a new V1beta1DataServicesConnectorsPostRequestBody and sets the default values. +func NewV1beta1DataServicesConnectorsPostRequestBody()(*V1beta1DataServicesConnectorsPostRequestBody) { + m := &V1beta1DataServicesConnectorsPostRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DataServicesConnectorsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsPostRequestBody(), nil +} +// GetActivationCode gets the activationCode property value. The activation code displayed on the Data Services Connector UI. +// returns a *UUID when successful +func (m *V1beta1DataServicesConnectorsPostRequestBody) GetActivationCode()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.activationCode +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DataServicesConnectorsPostRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDisplayName gets the displayName property value. User-defined name given to the Data Services Connector by the customer. +// returns a *string when successful +func (m *V1beta1DataServicesConnectorsPostRequestBody) GetDisplayName()(*string) { + return m.displayName +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DataServicesConnectorsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["activationCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetActivationCode(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1DataServicesConnectorsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("activationCode", m.GetActivationCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetActivationCode sets the activationCode property value. The activation code displayed on the Data Services Connector UI. +func (m *V1beta1DataServicesConnectorsPostRequestBody) SetActivationCode(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.activationCode = value +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DataServicesConnectorsPostRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDisplayName sets the displayName property value. User-defined name given to the Data Services Connector by the customer. +func (m *V1beta1DataServicesConnectorsPostRequestBody) SetDisplayName(value *string)() { + m.displayName = value +} +type V1beta1DataServicesConnectorsPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetActivationCode()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetDisplayName()(*string) + SetActivationCode(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetDisplayName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_request_builder.go new file mode 100644 index 0000000..caec5f3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_request_builder.go @@ -0,0 +1,197 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DataServicesConnectorsRequestBuilder builds and executes requests for operations under \data-services\v1beta1\data-services-connectors +type V1beta1DataServicesConnectorsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1DataServicesConnectorsRequestBuilderGetQueryParameters returns a list of Data Services Connectors according to the given queryparameters for paging, filtering, and sorting. +type V1beta1DataServicesConnectorsRequestBuilderGetQueryParameters struct { + // An expression by which to filter the results.The returned set of resources will match the criteria in the filter query parameter.Filtering is supported with following attributes: * id * name * hostname * serialNumber * status * state * connectionState * softwareVersion * persona * deploymentType * storageSystemSerialNumber + Filter *string `uriparametername:"filter"` + // The maximum number of items to include in the response.The offset and limit query parameters are used in conjunction for pagination,for example "offset=30&limit=10" indicates the fourth page of 10 items. + Limit *int32 `uriparametername:"limit"` + // The number of items to omit from the beginning of the result set.The offset and limit query parameters are used in conjunction for pagination,for example "offset=30&limit=10" indicates the fourth page of 10 items. + Offset *int32 `uriparametername:"offset"` + // A list of properties to include in the response. + Select *string `uriparametername:"select"` + // A resource property by which to sort, followed by an optional directionindicator ("asc" or "desc"). If no direction indicator is specified thedefault order is ascending.Sorting is supported on the following properties:* name* generation* connectionState* serialNumber* softwareVersion* status* state* stateReason* id* platform* vCpu* totalMemoryinGb* poweredOnAt* createdAt* interfaces.network.defaultGateway* dateTime.methodDateTimeSet* ntp.status* ntp.state* ntp.stateReason* persona* deploymentType* storageSystemSerialNumber + Sort *string `uriparametername:"sort"` +} +// V1beta1DataServicesConnectorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1DataServicesConnectorsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1DataServicesConnectorsRequestBuilderGetQueryParameters +} +// V1beta1DataServicesConnectorsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1DataServicesConnectorsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ById gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.dataServicesConnectors.item collection +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. +// returns a *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder when successful +func (m *V1beta1DataServicesConnectorsRequestBuilder) ById(id string)(*V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["id"] = id + } + return NewV1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ByIdGuid gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.dataServicesConnectors.item collection +// returns a *V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder when successful +func (m *V1beta1DataServicesConnectorsRequestBuilder) ByIdGuid(id i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*V1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["id"] = id.String() + return NewV1beta1DataServicesConnectorsDataServicesConnectorsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1DataServicesConnectorsRequestBuilderInternal instantiates a new V1beta1DataServicesConnectorsRequestBuilder and sets the default values. +func NewV1beta1DataServicesConnectorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1DataServicesConnectorsRequestBuilder) { + m := &V1beta1DataServicesConnectorsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/data-services-connectors{?filter*,limit*,offset*,select*,sort*}", pathParameters), + } + return m +} +// NewV1beta1DataServicesConnectorsRequestBuilder instantiates a new V1beta1DataServicesConnectorsRequestBuilder and sets the default values. +func NewV1beta1DataServicesConnectorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1DataServicesConnectorsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1DataServicesConnectorsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns a list of Data Services Connectors according to the given queryparameters for paging, filtering, and sorting. +// Deprecated: This method is obsolete. Use GetAsDataServicesConnectorsGetResponse instead. +// returns a V1beta1DataServicesConnectorsResponseable when successful +// returns a V1beta1DataServicesConnectors400Error error when the service returns a 400 status code +// returns a V1beta1DataServicesConnectors401Error error when the service returns a 401 status code +// returns a V1beta1DataServicesConnectors403Error error when the service returns a 403 status code +// returns a V1beta1DataServicesConnectors500Error error when the service returns a 500 status code +// returns a V1beta1DataServicesConnectors503Error error when the service returns a 503 status code +func (m *V1beta1DataServicesConnectorsRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1DataServicesConnectorsRequestBuilderGetRequestConfiguration)(V1beta1DataServicesConnectorsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DataServicesConnectors400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DataServicesConnectors401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DataServicesConnectors403ErrorFromDiscriminatorValue, + "500": CreateV1beta1DataServicesConnectors500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DataServicesConnectors503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1DataServicesConnectorsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1DataServicesConnectorsResponseable), nil +} +// GetAsDataServicesConnectorsGetResponse returns a list of Data Services Connectors according to the given queryparameters for paging, filtering, and sorting. +// returns a V1beta1DataServicesConnectorsGetResponseable when successful +// returns a V1beta1DataServicesConnectors400Error error when the service returns a 400 status code +// returns a V1beta1DataServicesConnectors401Error error when the service returns a 401 status code +// returns a V1beta1DataServicesConnectors403Error error when the service returns a 403 status code +// returns a V1beta1DataServicesConnectors500Error error when the service returns a 500 status code +// returns a V1beta1DataServicesConnectors503Error error when the service returns a 503 status code +func (m *V1beta1DataServicesConnectorsRequestBuilder) GetAsDataServicesConnectorsGetResponse(ctx context.Context, requestConfiguration *V1beta1DataServicesConnectorsRequestBuilderGetRequestConfiguration)(V1beta1DataServicesConnectorsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DataServicesConnectors400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DataServicesConnectors401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DataServicesConnectors403ErrorFromDiscriminatorValue, + "500": CreateV1beta1DataServicesConnectors500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DataServicesConnectors503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1DataServicesConnectorsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1DataServicesConnectorsGetResponseable), nil +} +// Post this API is used to register a new Data Services Connector with the DSCC customer account. A unique Activation Code must be provided to register the Data Services Connector. +// returns a UntypedNodeable when successful +// returns a V1beta1DataServicesConnectors400Error error when the service returns a 400 status code +// returns a V1beta1DataServicesConnectors401Error error when the service returns a 401 status code +// returns a V1beta1DataServicesConnectors403Error error when the service returns a 403 status code +// returns a V1beta1DataServicesConnectors500Error error when the service returns a 500 status code +// returns a V1beta1DataServicesConnectors503Error error when the service returns a 503 status code +func (m *V1beta1DataServicesConnectorsRequestBuilder) Post(ctx context.Context, body V1beta1DataServicesConnectorsPostRequestBodyable, requestConfiguration *V1beta1DataServicesConnectorsRequestBuilderPostRequestConfiguration)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DataServicesConnectors400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DataServicesConnectors401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DataServicesConnectors403ErrorFromDiscriminatorValue, + "500": CreateV1beta1DataServicesConnectors500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DataServicesConnectors503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable), nil +} +// ToGetRequestInformation returns a list of Data Services Connectors according to the given queryparameters for paging, filtering, and sorting. +// returns a *RequestInformation when successful +func (m *V1beta1DataServicesConnectorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1DataServicesConnectorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation this API is used to register a new Data Services Connector with the DSCC customer account. A unique Activation Code must be provided to register the Data Services Connector. +// returns a *RequestInformation when successful +func (m *V1beta1DataServicesConnectorsRequestBuilder) ToPostRequestInformation(ctx context.Context, body V1beta1DataServicesConnectorsPostRequestBodyable, requestConfiguration *V1beta1DataServicesConnectorsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1DataServicesConnectorsRequestBuilder when successful +func (m *V1beta1DataServicesConnectorsRequestBuilder) WithUrl(rawUrl string)(*V1beta1DataServicesConnectorsRequestBuilder) { + return NewV1beta1DataServicesConnectorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_response.go b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_response.go new file mode 100644 index 0000000..8322bf7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_data_services_connectors_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1DataServicesConnectorsGetResponseable instead. +type V1beta1DataServicesConnectorsResponse struct { + V1beta1DataServicesConnectorsGetResponse +} +// NewV1beta1DataServicesConnectorsResponse instantiates a new V1beta1DataServicesConnectorsResponse and sets the default values. +func NewV1beta1DataServicesConnectorsResponse()(*V1beta1DataServicesConnectorsResponse) { + m := &V1beta1DataServicesConnectorsResponse{ + V1beta1DataServicesConnectorsGetResponse: *NewV1beta1DataServicesConnectorsGetResponse(), + } + return m +} +// CreateV1beta1DataServicesConnectorsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DataServicesConnectorsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DataServicesConnectorsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1DataServicesConnectorsGetResponseable instead. +type V1beta1DataServicesConnectorsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1DataServicesConnectorsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations400_error.go new file mode 100644 index 0000000..801327c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperations400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DualAuthOperations400Error instantiates a new V1beta1DualAuthOperations400Error and sets the default values. +func NewV1beta1DualAuthOperations400Error()(*V1beta1DualAuthOperations400Error) { + m := &V1beta1DualAuthOperations400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperations400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperations400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperations400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DualAuthOperations400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperations400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DualAuthOperations400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DualAuthOperations400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperations400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DualAuthOperations400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DualAuthOperations400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperations400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperations400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DualAuthOperations400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DualAuthOperations400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DualAuthOperations400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DualAuthOperations400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DualAuthOperations400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations401_error.go new file mode 100644 index 0000000..5d303ab --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperations401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DualAuthOperations401Error instantiates a new V1beta1DualAuthOperations401Error and sets the default values. +func NewV1beta1DualAuthOperations401Error()(*V1beta1DualAuthOperations401Error) { + m := &V1beta1DualAuthOperations401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperations401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperations401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperations401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DualAuthOperations401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperations401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DualAuthOperations401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DualAuthOperations401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperations401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DualAuthOperations401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DualAuthOperations401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperations401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperations401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DualAuthOperations401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DualAuthOperations401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DualAuthOperations401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DualAuthOperations401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DualAuthOperations401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations403_error.go new file mode 100644 index 0000000..82f3799 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperations403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DualAuthOperations403Error instantiates a new V1beta1DualAuthOperations403Error and sets the default values. +func NewV1beta1DualAuthOperations403Error()(*V1beta1DualAuthOperations403Error) { + m := &V1beta1DualAuthOperations403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperations403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperations403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperations403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DualAuthOperations403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperations403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DualAuthOperations403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DualAuthOperations403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperations403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DualAuthOperations403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DualAuthOperations403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperations403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperations403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DualAuthOperations403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DualAuthOperations403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DualAuthOperations403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DualAuthOperations403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DualAuthOperations403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations404_error.go new file mode 100644 index 0000000..5b13700 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperations404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DualAuthOperations404Error instantiates a new V1beta1DualAuthOperations404Error and sets the default values. +func NewV1beta1DualAuthOperations404Error()(*V1beta1DualAuthOperations404Error) { + m := &V1beta1DualAuthOperations404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperations404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperations404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperations404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DualAuthOperations404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperations404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DualAuthOperations404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DualAuthOperations404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperations404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DualAuthOperations404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DualAuthOperations404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperations404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperations404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DualAuthOperations404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DualAuthOperations404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DualAuthOperations404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DualAuthOperations404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DualAuthOperations404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations422_error.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations422_error.go new file mode 100644 index 0000000..7a5a67a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations422_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperations422Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DualAuthOperations422Error instantiates a new V1beta1DualAuthOperations422Error and sets the default values. +func NewV1beta1DualAuthOperations422Error()(*V1beta1DualAuthOperations422Error) { + m := &V1beta1DualAuthOperations422Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperations422ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperations422ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperations422Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DualAuthOperations422Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperations422Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DualAuthOperations422Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DualAuthOperations422Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperations422Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DualAuthOperations422Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DualAuthOperations422Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperations422Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperations422Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DualAuthOperations422Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DualAuthOperations422Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DualAuthOperations422Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DualAuthOperations422Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DualAuthOperations422Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations500_error.go new file mode 100644 index 0000000..496141d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperations500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DualAuthOperations500Error instantiates a new V1beta1DualAuthOperations500Error and sets the default values. +func NewV1beta1DualAuthOperations500Error()(*V1beta1DualAuthOperations500Error) { + m := &V1beta1DualAuthOperations500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperations500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperations500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperations500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DualAuthOperations500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperations500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DualAuthOperations500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DualAuthOperations500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperations500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DualAuthOperations500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DualAuthOperations500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperations500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperations500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DualAuthOperations500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DualAuthOperations500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DualAuthOperations500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DualAuthOperations500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DualAuthOperations500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations503_error.go new file mode 100644 index 0000000..06b370a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperations503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DualAuthOperations503Error instantiates a new V1beta1DualAuthOperations503Error and sets the default values. +func NewV1beta1DualAuthOperations503Error()(*V1beta1DualAuthOperations503Error) { + m := &V1beta1DualAuthOperations503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperations503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperations503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperations503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DualAuthOperations503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperations503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DualAuthOperations503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DualAuthOperations503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperations503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DualAuthOperations503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DualAuthOperations503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperations503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperations503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DualAuthOperations503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DualAuthOperations503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DualAuthOperations503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DualAuthOperations503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DualAuthOperations503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_dual_auth_operations_item_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_dual_auth_operations_item_request_builder.go new file mode 100644 index 0000000..1659d9e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_dual_auth_operations_item_request_builder.go @@ -0,0 +1,203 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder builds and executes requests for operations under \data-services\v1beta1\dual-auth-operations\{id} +type V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilderInternal instantiates a new V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder and sets the default values. +func NewV1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder) { + m := &V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/dual-auth-operations/{id}", pathParameters), + } + return m +} +// NewV1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder instantiates a new V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder and sets the default values. +func NewV1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns the Dual Authorization operation for the given Id. The operation must belong to the current account and be a resource type the user has read permission for. The user must also have permission to read pending operations. +// Deprecated: This method is obsolete. Use GetAsDualAuthOperationsGetResponse instead. +// returns a V1beta1DualAuthOperationsItemDualAuthOperationsResponseable when successful +// returns a V1beta1DualAuthOperationsItemDualAuthOperations400Error error when the service returns a 400 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations401Error error when the service returns a 401 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations403Error error when the service returns a 403 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations404Error error when the service returns a 404 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations422Error error when the service returns a 422 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations500Error error when the service returns a 500 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations503Error error when the service returns a 503 status code +func (m *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilderGetRequestConfiguration)(V1beta1DualAuthOperationsItemDualAuthOperationsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DualAuthOperationsItemDualAuthOperations400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DualAuthOperationsItemDualAuthOperations401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DualAuthOperationsItemDualAuthOperations403ErrorFromDiscriminatorValue, + "404": CreateV1beta1DualAuthOperationsItemDualAuthOperations404ErrorFromDiscriminatorValue, + "422": CreateV1beta1DualAuthOperationsItemDualAuthOperations422ErrorFromDiscriminatorValue, + "500": CreateV1beta1DualAuthOperationsItemDualAuthOperations500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DualAuthOperationsItemDualAuthOperations503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1DualAuthOperationsItemDualAuthOperationsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1DualAuthOperationsItemDualAuthOperationsResponseable), nil +} +// GetAsDualAuthOperationsGetResponse returns the Dual Authorization operation for the given Id. The operation must belong to the current account and be a resource type the user has read permission for. The user must also have permission to read pending operations. +// returns a V1beta1DualAuthOperationsItemDualAuthOperationsGetResponseable when successful +// returns a V1beta1DualAuthOperationsItemDualAuthOperations400Error error when the service returns a 400 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations401Error error when the service returns a 401 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations403Error error when the service returns a 403 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations404Error error when the service returns a 404 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations422Error error when the service returns a 422 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations500Error error when the service returns a 500 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations503Error error when the service returns a 503 status code +func (m *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder) GetAsDualAuthOperationsGetResponse(ctx context.Context, requestConfiguration *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilderGetRequestConfiguration)(V1beta1DualAuthOperationsItemDualAuthOperationsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DualAuthOperationsItemDualAuthOperations400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DualAuthOperationsItemDualAuthOperations401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DualAuthOperationsItemDualAuthOperations403ErrorFromDiscriminatorValue, + "404": CreateV1beta1DualAuthOperationsItemDualAuthOperations404ErrorFromDiscriminatorValue, + "422": CreateV1beta1DualAuthOperationsItemDualAuthOperations422ErrorFromDiscriminatorValue, + "500": CreateV1beta1DualAuthOperationsItemDualAuthOperations500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DualAuthOperationsItemDualAuthOperations503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1DualAuthOperationsItemDualAuthOperationsGetResponseable), nil +} +// Patch approve/Deny the pending operation by changing its state in DB. +// Deprecated: This method is obsolete. Use PatchAsDualAuthOperationsPatchResponse instead. +// returns a V1beta1DualAuthOperationsItemDualAuthOperationsResponseable when successful +// returns a V1beta1DualAuthOperationsItemDualAuthOperations400Error error when the service returns a 400 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations401Error error when the service returns a 401 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations403Error error when the service returns a 403 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations404Error error when the service returns a 404 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations412Error error when the service returns a 412 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations422Error error when the service returns a 422 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations500Error error when the service returns a 500 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations503Error error when the service returns a 503 status code +func (m *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder) Patch(ctx context.Context, body V1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBodyable, requestConfiguration *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilderPatchRequestConfiguration)(V1beta1DualAuthOperationsItemDualAuthOperationsResponseable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DualAuthOperationsItemDualAuthOperations400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DualAuthOperationsItemDualAuthOperations401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DualAuthOperationsItemDualAuthOperations403ErrorFromDiscriminatorValue, + "404": CreateV1beta1DualAuthOperationsItemDualAuthOperations404ErrorFromDiscriminatorValue, + "412": CreateV1beta1DualAuthOperationsItemDualAuthOperations412ErrorFromDiscriminatorValue, + "422": CreateV1beta1DualAuthOperationsItemDualAuthOperations422ErrorFromDiscriminatorValue, + "500": CreateV1beta1DualAuthOperationsItemDualAuthOperations500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DualAuthOperationsItemDualAuthOperations503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1DualAuthOperationsItemDualAuthOperationsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1DualAuthOperationsItemDualAuthOperationsResponseable), nil +} +// PatchAsDualAuthOperationsPatchResponse approve/Deny the pending operation by changing its state in DB. +// returns a V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponseable when successful +// returns a V1beta1DualAuthOperationsItemDualAuthOperations400Error error when the service returns a 400 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations401Error error when the service returns a 401 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations403Error error when the service returns a 403 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations404Error error when the service returns a 404 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations412Error error when the service returns a 412 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations422Error error when the service returns a 422 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations500Error error when the service returns a 500 status code +// returns a V1beta1DualAuthOperationsItemDualAuthOperations503Error error when the service returns a 503 status code +func (m *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder) PatchAsDualAuthOperationsPatchResponse(ctx context.Context, body V1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBodyable, requestConfiguration *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilderPatchRequestConfiguration)(V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponseable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DualAuthOperationsItemDualAuthOperations400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DualAuthOperationsItemDualAuthOperations401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DualAuthOperationsItemDualAuthOperations403ErrorFromDiscriminatorValue, + "404": CreateV1beta1DualAuthOperationsItemDualAuthOperations404ErrorFromDiscriminatorValue, + "412": CreateV1beta1DualAuthOperationsItemDualAuthOperations412ErrorFromDiscriminatorValue, + "422": CreateV1beta1DualAuthOperationsItemDualAuthOperations422ErrorFromDiscriminatorValue, + "500": CreateV1beta1DualAuthOperationsItemDualAuthOperations500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DualAuthOperationsItemDualAuthOperations503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponseable), nil +} +// ToGetRequestInformation returns the Dual Authorization operation for the given Id. The operation must belong to the current account and be a resource type the user has read permission for. The user must also have permission to read pending operations. +// returns a *RequestInformation when successful +func (m *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation approve/Deny the pending operation by changing its state in DB. +// returns a *RequestInformation when successful +func (m *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body V1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBodyable, requestConfiguration *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/merge-patch+json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder when successful +func (m *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder) WithUrl(rawUrl string)(*V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder) { + return NewV1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response.go new file mode 100644 index 0000000..1a6631c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response.go @@ -0,0 +1,179 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Number of items in this response. + count *int32 + // The items property + items []V1beta1DualAuthOperationsGetResponse_itemsable + // The offset query parameter from the request. + offset *int32 + // Total number of items matching the filter parameter in the request. + total *int32 +} +// NewV1beta1DualAuthOperationsGetResponse instantiates a new V1beta1DualAuthOperationsGetResponse and sets the default values. +func NewV1beta1DualAuthOperationsGetResponse()(*V1beta1DualAuthOperationsGetResponse) { + m := &V1beta1DualAuthOperationsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Number of items in this response. +// returns a *int32 when successful +func (m *V1beta1DualAuthOperationsGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DualAuthOperationsGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DualAuthOperationsGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DualAuthOperationsGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetItems gets the items property value. The items property +// returns a []V1beta1DualAuthOperationsGetResponse_itemsable when successful +func (m *V1beta1DualAuthOperationsGetResponse) GetItems()([]V1beta1DualAuthOperationsGetResponse_itemsable) { + return m.items +} +// GetOffset gets the offset property value. The offset query parameter from the request. +// returns a *int32 when successful +func (m *V1beta1DualAuthOperationsGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetTotal gets the total property value. Total number of items matching the filter parameter in the request. +// returns a *int32 when successful +func (m *V1beta1DualAuthOperationsGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Number of items in this response. +func (m *V1beta1DualAuthOperationsGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. The items property +func (m *V1beta1DualAuthOperationsGetResponse) SetItems(value []V1beta1DualAuthOperationsGetResponse_itemsable)() { + m.items = value +} +// SetOffset sets the offset property value. The offset query parameter from the request. +func (m *V1beta1DualAuthOperationsGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetTotal sets the total property value. Total number of items matching the filter parameter in the request. +func (m *V1beta1DualAuthOperationsGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1DualAuthOperationsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1DualAuthOperationsGetResponse_itemsable) + GetOffset()(*int32) + GetTotal()(*int32) + SetCount(value *int32)() + SetItems(value []V1beta1DualAuthOperationsGetResponse_itemsable)() + SetOffset(value *int32)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items.go new file mode 100644 index 0000000..b725e07 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items.go @@ -0,0 +1,694 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Resources associated with this operation + associatedResources []V1beta1DualAuthOperationsGetResponse_items_associatedResourcesable + // Time when this operation was checked. RFC 3339 Timestamp + checkedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Email of the user who checked (second authorization) this operation + checkedByEmail *string + // URI of the user who checked (second authorization) this operation + checkedByUri *string + // The URI for console screen that displays this resource. Deprecated - use associatedResources instead + // Deprecated: + consoleUri *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // Detailed description of the operation + description *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // Groups this operation is associated with. Deprecated - use associatedResources instead + // Deprecated: + groups []V1beta1DualAuthOperationsGetResponse_items_groupsable + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // A system specified name for the resource. + name *string + // Operation resource on which the operation is taking place. Deprecated - use associatedResources instead + // Deprecated: + operationResource V1beta1DualAuthOperationsGetResponse_items_operationResourceable + // Time when this operation was requested. RFC 3339 Timestamp + requestedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Email of the user who performed this operation + requestedByEmail *string + // URI of the user who performed this operation + requestedByUri *string + // One word description of the operation + requestedOperation *string + // The self reference for this resource. + resourceUri *string + // External Service Name from where this request was sent + sourceServiceExternalName *string + // state of this operation + state *string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1DualAuthOperationsGetResponse_items instantiates a new V1beta1DualAuthOperationsGetResponse_items and sets the default values. +func NewV1beta1DualAuthOperationsGetResponse_items()(*V1beta1DualAuthOperationsGetResponse_items) { + m := &V1beta1DualAuthOperationsGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAssociatedResources gets the associatedResources property value. Resources associated with this operation +// returns a []V1beta1DualAuthOperationsGetResponse_items_associatedResourcesable when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetAssociatedResources()([]V1beta1DualAuthOperationsGetResponse_items_associatedResourcesable) { + return m.associatedResources +} +// GetCheckedAt gets the checkedAt property value. Time when this operation was checked. RFC 3339 Timestamp +// returns a *Time when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetCheckedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.checkedAt +} +// GetCheckedByEmail gets the checkedByEmail property value. Email of the user who checked (second authorization) this operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetCheckedByEmail()(*string) { + return m.checkedByEmail +} +// GetCheckedByUri gets the checkedByUri property value. URI of the user who checked (second authorization) this operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetCheckedByUri()(*string) { + return m.checkedByUri +} +// GetConsoleUri gets the consoleUri property value. The URI for console screen that displays this resource. Deprecated - use associatedResources instead +// Deprecated: +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetDescription gets the description property value. Detailed description of the operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["associatedResources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DualAuthOperationsGetResponse_items_associatedResourcesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DualAuthOperationsGetResponse_items_associatedResourcesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DualAuthOperationsGetResponse_items_associatedResourcesable) + } + } + m.SetAssociatedResources(res) + } + return nil + } + res["checkedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCheckedAt(val) + } + return nil + } + res["checkedByEmail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCheckedByEmail(val) + } + return nil + } + res["checkedByUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCheckedByUri(val) + } + return nil + } + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DualAuthOperationsGetResponse_items_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DualAuthOperationsGetResponse_items_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DualAuthOperationsGetResponse_items_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["operationResource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DualAuthOperationsGetResponse_items_operationResourceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOperationResource(val.(V1beta1DualAuthOperationsGetResponse_items_operationResourceable)) + } + return nil + } + res["requestedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetRequestedAt(val) + } + return nil + } + res["requestedByEmail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRequestedByEmail(val) + } + return nil + } + res["requestedByUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRequestedByUri(val) + } + return nil + } + res["requestedOperation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRequestedOperation(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["sourceServiceExternalName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSourceServiceExternalName(val) + } + return nil + } + res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetState(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetGeneration()(*int64) { + return m.generation +} +// GetGroups gets the groups property value. Groups this operation is associated with. Deprecated - use associatedResources instead +// Deprecated: +// returns a []V1beta1DualAuthOperationsGetResponse_items_groupsable when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetGroups()([]V1beta1DualAuthOperationsGetResponse_items_groupsable) { + return m.groups +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetName()(*string) { + return m.name +} +// GetOperationResource gets the operationResource property value. Operation resource on which the operation is taking place. Deprecated - use associatedResources instead +// Deprecated: +// returns a V1beta1DualAuthOperationsGetResponse_items_operationResourceable when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetOperationResource()(V1beta1DualAuthOperationsGetResponse_items_operationResourceable) { + return m.operationResource +} +// GetRequestedAt gets the requestedAt property value. Time when this operation was requested. RFC 3339 Timestamp +// returns a *Time when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetRequestedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.requestedAt +} +// GetRequestedByEmail gets the requestedByEmail property value. Email of the user who performed this operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetRequestedByEmail()(*string) { + return m.requestedByEmail +} +// GetRequestedByUri gets the requestedByUri property value. URI of the user who performed this operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetRequestedByUri()(*string) { + return m.requestedByUri +} +// GetRequestedOperation gets the requestedOperation property value. One word description of the operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetRequestedOperation()(*string) { + return m.requestedOperation +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSourceServiceExternalName gets the sourceServiceExternalName property value. External Service Name from where this request was sent +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetSourceServiceExternalName()(*string) { + return m.sourceServiceExternalName +} +// GetState gets the state property value. state of this operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetState()(*string) { + return m.state +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1DualAuthOperationsGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAssociatedResources() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAssociatedResources())) + for i, v := range m.GetAssociatedResources() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("associatedResources", cast) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("checkedAt", m.GetCheckedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("checkedByEmail", m.GetCheckedByEmail()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("checkedByUri", m.GetCheckedByUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("operationResource", m.GetOperationResource()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("requestedAt", m.GetRequestedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("requestedByEmail", m.GetRequestedByEmail()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("requestedByUri", m.GetRequestedByUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("requestedOperation", m.GetRequestedOperation()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sourceServiceExternalName", m.GetSourceServiceExternalName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("state", m.GetState()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAssociatedResources sets the associatedResources property value. Resources associated with this operation +func (m *V1beta1DualAuthOperationsGetResponse_items) SetAssociatedResources(value []V1beta1DualAuthOperationsGetResponse_items_associatedResourcesable)() { + m.associatedResources = value +} +// SetCheckedAt sets the checkedAt property value. Time when this operation was checked. RFC 3339 Timestamp +func (m *V1beta1DualAuthOperationsGetResponse_items) SetCheckedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.checkedAt = value +} +// SetCheckedByEmail sets the checkedByEmail property value. Email of the user who checked (second authorization) this operation +func (m *V1beta1DualAuthOperationsGetResponse_items) SetCheckedByEmail(value *string)() { + m.checkedByEmail = value +} +// SetCheckedByUri sets the checkedByUri property value. URI of the user who checked (second authorization) this operation +func (m *V1beta1DualAuthOperationsGetResponse_items) SetCheckedByUri(value *string)() { + m.checkedByUri = value +} +// SetConsoleUri sets the consoleUri property value. The URI for console screen that displays this resource. Deprecated - use associatedResources instead +// Deprecated: +func (m *V1beta1DualAuthOperationsGetResponse_items) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1DualAuthOperationsGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1DualAuthOperationsGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDescription sets the description property value. Detailed description of the operation +func (m *V1beta1DualAuthOperationsGetResponse_items) SetDescription(value *string)() { + m.description = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1DualAuthOperationsGetResponse_items) SetGeneration(value *int64)() { + m.generation = value +} +// SetGroups sets the groups property value. Groups this operation is associated with. Deprecated - use associatedResources instead +// Deprecated: +func (m *V1beta1DualAuthOperationsGetResponse_items) SetGroups(value []V1beta1DualAuthOperationsGetResponse_items_groupsable)() { + m.groups = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1DualAuthOperationsGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1DualAuthOperationsGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetOperationResource sets the operationResource property value. Operation resource on which the operation is taking place. Deprecated - use associatedResources instead +// Deprecated: +func (m *V1beta1DualAuthOperationsGetResponse_items) SetOperationResource(value V1beta1DualAuthOperationsGetResponse_items_operationResourceable)() { + m.operationResource = value +} +// SetRequestedAt sets the requestedAt property value. Time when this operation was requested. RFC 3339 Timestamp +func (m *V1beta1DualAuthOperationsGetResponse_items) SetRequestedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.requestedAt = value +} +// SetRequestedByEmail sets the requestedByEmail property value. Email of the user who performed this operation +func (m *V1beta1DualAuthOperationsGetResponse_items) SetRequestedByEmail(value *string)() { + m.requestedByEmail = value +} +// SetRequestedByUri sets the requestedByUri property value. URI of the user who performed this operation +func (m *V1beta1DualAuthOperationsGetResponse_items) SetRequestedByUri(value *string)() { + m.requestedByUri = value +} +// SetRequestedOperation sets the requestedOperation property value. One word description of the operation +func (m *V1beta1DualAuthOperationsGetResponse_items) SetRequestedOperation(value *string)() { + m.requestedOperation = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1DualAuthOperationsGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSourceServiceExternalName sets the sourceServiceExternalName property value. External Service Name from where this request was sent +func (m *V1beta1DualAuthOperationsGetResponse_items) SetSourceServiceExternalName(value *string)() { + m.sourceServiceExternalName = value +} +// SetState sets the state property value. state of this operation +func (m *V1beta1DualAuthOperationsGetResponse_items) SetState(value *string)() { + m.state = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1DualAuthOperationsGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1DualAuthOperationsGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1DualAuthOperationsGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAssociatedResources()([]V1beta1DualAuthOperationsGetResponse_items_associatedResourcesable) + GetCheckedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCheckedByEmail()(*string) + GetCheckedByUri()(*string) + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDescription()(*string) + GetGeneration()(*int64) + GetGroups()([]V1beta1DualAuthOperationsGetResponse_items_groupsable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetOperationResource()(V1beta1DualAuthOperationsGetResponse_items_operationResourceable) + GetRequestedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetRequestedByEmail()(*string) + GetRequestedByUri()(*string) + GetRequestedOperation()(*string) + GetResourceUri()(*string) + GetSourceServiceExternalName()(*string) + GetState()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetAssociatedResources(value []V1beta1DualAuthOperationsGetResponse_items_associatedResourcesable)() + SetCheckedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCheckedByEmail(value *string)() + SetCheckedByUri(value *string)() + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDescription(value *string)() + SetGeneration(value *int64)() + SetGroups(value []V1beta1DualAuthOperationsGetResponse_items_groupsable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetOperationResource(value V1beta1DualAuthOperationsGetResponse_items_operationResourceable)() + SetRequestedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetRequestedByEmail(value *string)() + SetRequestedByUri(value *string)() + SetRequestedOperation(value *string)() + SetResourceUri(value *string)() + SetSourceServiceExternalName(value *string)() + SetState(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_associated_resources.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_associated_resources.go new file mode 100644 index 0000000..70cacb8 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_associated_resources.go @@ -0,0 +1,121 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsGetResponse_items_associatedResources struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Groups this resource is associated with + groups []V1beta1DualAuthOperationsGetResponse_items_associatedResources_groupsable + // Resource associated with this operation + resource V1beta1DualAuthOperationsGetResponse_items_associatedResources_resourceable +} +// NewV1beta1DualAuthOperationsGetResponse_items_associatedResources instantiates a new V1beta1DualAuthOperationsGetResponse_items_associatedResources and sets the default values. +func NewV1beta1DualAuthOperationsGetResponse_items_associatedResources()(*V1beta1DualAuthOperationsGetResponse_items_associatedResources) { + m := &V1beta1DualAuthOperationsGetResponse_items_associatedResources{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsGetResponse_items_associatedResourcesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsGetResponse_items_associatedResourcesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsGetResponse_items_associatedResources(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DualAuthOperationsGetResponse_items_associatedResources_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DualAuthOperationsGetResponse_items_associatedResources_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DualAuthOperationsGetResponse_items_associatedResources_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["resource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DualAuthOperationsGetResponse_items_associatedResources_resourceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetResource(val.(V1beta1DualAuthOperationsGetResponse_items_associatedResources_resourceable)) + } + return nil + } + return res +} +// GetGroups gets the groups property value. Groups this resource is associated with +// returns a []V1beta1DualAuthOperationsGetResponse_items_associatedResources_groupsable when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources) GetGroups()([]V1beta1DualAuthOperationsGetResponse_items_associatedResources_groupsable) { + return m.groups +} +// GetResource gets the resource property value. Resource associated with this operation +// returns a V1beta1DualAuthOperationsGetResponse_items_associatedResources_resourceable when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources) GetResource()(V1beta1DualAuthOperationsGetResponse_items_associatedResources_resourceable) { + return m.resource +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("resource", m.GetResource()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetGroups sets the groups property value. Groups this resource is associated with +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources) SetGroups(value []V1beta1DualAuthOperationsGetResponse_items_associatedResources_groupsable)() { + m.groups = value +} +// SetResource sets the resource property value. Resource associated with this operation +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources) SetResource(value V1beta1DualAuthOperationsGetResponse_items_associatedResources_resourceable)() { + m.resource = value +} +type V1beta1DualAuthOperationsGetResponse_items_associatedResourcesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetGroups()([]V1beta1DualAuthOperationsGetResponse_items_associatedResources_groupsable) + GetResource()(V1beta1DualAuthOperationsGetResponse_items_associatedResources_resourceable) + SetGroups(value []V1beta1DualAuthOperationsGetResponse_items_associatedResources_groupsable)() + SetResource(value V1beta1DualAuthOperationsGetResponse_items_associatedResources_resourceable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_associated_resources_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_associated_resources_escaped_groups.go new file mode 100644 index 0000000..9d0e6af --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_associated_resources_escaped_groups.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsGetResponse_items_associatedResources_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // ID of the associated group + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the associated group + name *string +} +// NewV1beta1DualAuthOperationsGetResponse_items_associatedResources_groups instantiates a new V1beta1DualAuthOperationsGetResponse_items_associatedResources_groups and sets the default values. +func NewV1beta1DualAuthOperationsGetResponse_items_associatedResources_groups()(*V1beta1DualAuthOperationsGetResponse_items_associatedResources_groups) { + m := &V1beta1DualAuthOperationsGetResponse_items_associatedResources_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsGetResponse_items_associatedResources_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsGetResponse_items_associatedResources_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsGetResponse_items_associatedResources_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. ID of the associated group +// returns a *UUID when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_groups) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. ID of the associated group +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_groups) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1DualAuthOperationsGetResponse_items_associatedResources_groups) SetName(value *string)() { + m.name = value +} +type V1beta1DualAuthOperationsGetResponse_items_associatedResources_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_groups.go new file mode 100644 index 0000000..2a2d486 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_groups.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsGetResponse_items_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // ID of the associated group + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the associated group + name *string +} +// NewV1beta1DualAuthOperationsGetResponse_items_groups instantiates a new V1beta1DualAuthOperationsGetResponse_items_groups and sets the default values. +func NewV1beta1DualAuthOperationsGetResponse_items_groups()(*V1beta1DualAuthOperationsGetResponse_items_groups) { + m := &V1beta1DualAuthOperationsGetResponse_items_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsGetResponse_items_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsGetResponse_items_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsGetResponse_items_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. ID of the associated group +// returns a *UUID when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_groups) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsGetResponse_items_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsGetResponse_items_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. ID of the associated group +func (m *V1beta1DualAuthOperationsGetResponse_items_groups) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1DualAuthOperationsGetResponse_items_groups) SetName(value *string)() { + m.name = value +} +type V1beta1DualAuthOperationsGetResponse_items_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_operation_resource.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_operation_resource.go new file mode 100644 index 0000000..0441ceb --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_get_response_escaped_items_escaped_operation_resource.go @@ -0,0 +1,121 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DualAuthOperationsGetResponse_items_operationResource references to other resources include the name, type and URI of the other resource. +type V1beta1DualAuthOperationsGetResponse_items_operationResource struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The name property + name *string + // The resourceUri property + resourceUri *string + // The type property + typeEscaped *string +} +// NewV1beta1DualAuthOperationsGetResponse_items_operationResource instantiates a new V1beta1DualAuthOperationsGetResponse_items_operationResource and sets the default values. +func NewV1beta1DualAuthOperationsGetResponse_items_operationResource()(*V1beta1DualAuthOperationsGetResponse_items_operationResource) { + m := &V1beta1DualAuthOperationsGetResponse_items_operationResource{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsGetResponse_items_operationResourceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsGetResponse_items_operationResourceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsGetResponse_items_operationResource(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_operationResource) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_operationResource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_operationResource) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The resourceUri property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_operationResource) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsGetResponse_items_operationResource) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsGetResponse_items_operationResource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsGetResponse_items_operationResource) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. The name property +func (m *V1beta1DualAuthOperationsGetResponse_items_operationResource) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The resourceUri property +func (m *V1beta1DualAuthOperationsGetResponse_items_operationResource) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type property +func (m *V1beta1DualAuthOperationsGetResponse_items_operationResource) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1DualAuthOperationsGetResponse_items_operationResourceable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations400_error.go new file mode 100644 index 0000000..0ec1a8a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperations400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperations400Error instantiates a new V1beta1DualAuthOperationsItemDualAuthOperations400Error and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperations400Error()(*V1beta1DualAuthOperationsItemDualAuthOperations400Error) { + m := &V1beta1DualAuthOperationsItemDualAuthOperations400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperations400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperations400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperations400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperations400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperations400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DualAuthOperationsItemDualAuthOperations400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DualAuthOperationsItemDualAuthOperations400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DualAuthOperationsItemDualAuthOperations400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations401_error.go new file mode 100644 index 0000000..4bd67aa --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperations401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperations401Error instantiates a new V1beta1DualAuthOperationsItemDualAuthOperations401Error and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperations401Error()(*V1beta1DualAuthOperationsItemDualAuthOperations401Error) { + m := &V1beta1DualAuthOperationsItemDualAuthOperations401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperations401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperations401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperations401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperations401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperations401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DualAuthOperationsItemDualAuthOperations401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DualAuthOperationsItemDualAuthOperations401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DualAuthOperationsItemDualAuthOperations401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations403_error.go new file mode 100644 index 0000000..a6c8555 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperations403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperations403Error instantiates a new V1beta1DualAuthOperationsItemDualAuthOperations403Error and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperations403Error()(*V1beta1DualAuthOperationsItemDualAuthOperations403Error) { + m := &V1beta1DualAuthOperationsItemDualAuthOperations403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperations403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperations403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperations403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperations403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperations403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DualAuthOperationsItemDualAuthOperations403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DualAuthOperationsItemDualAuthOperations403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DualAuthOperationsItemDualAuthOperations403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations404_error.go new file mode 100644 index 0000000..24afef3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperations404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperations404Error instantiates a new V1beta1DualAuthOperationsItemDualAuthOperations404Error and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperations404Error()(*V1beta1DualAuthOperationsItemDualAuthOperations404Error) { + m := &V1beta1DualAuthOperationsItemDualAuthOperations404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperations404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperations404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperations404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperations404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperations404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DualAuthOperationsItemDualAuthOperations404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DualAuthOperationsItemDualAuthOperations404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DualAuthOperationsItemDualAuthOperations404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations412_error.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations412_error.go new file mode 100644 index 0000000..1017a38 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations412_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperations412Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperations412Error instantiates a new V1beta1DualAuthOperationsItemDualAuthOperations412Error and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperations412Error()(*V1beta1DualAuthOperationsItemDualAuthOperations412Error) { + m := &V1beta1DualAuthOperationsItemDualAuthOperations412Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperations412ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperations412ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperations412Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations412Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations412Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations412Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations412Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations412Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations412Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations412Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperations412Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperations412Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DualAuthOperationsItemDualAuthOperations412Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations412Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations412Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DualAuthOperationsItemDualAuthOperations412Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DualAuthOperationsItemDualAuthOperations412Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations422_error.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations422_error.go new file mode 100644 index 0000000..8d3ff77 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations422_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperations422Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperations422Error instantiates a new V1beta1DualAuthOperationsItemDualAuthOperations422Error and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperations422Error()(*V1beta1DualAuthOperationsItemDualAuthOperations422Error) { + m := &V1beta1DualAuthOperationsItemDualAuthOperations422Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperations422ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperations422ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperations422Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations422Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations422Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations422Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations422Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations422Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations422Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations422Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperations422Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperations422Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DualAuthOperationsItemDualAuthOperations422Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations422Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations422Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DualAuthOperationsItemDualAuthOperations422Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DualAuthOperationsItemDualAuthOperations422Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations500_error.go new file mode 100644 index 0000000..93ba670 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperations500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperations500Error instantiates a new V1beta1DualAuthOperationsItemDualAuthOperations500Error and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperations500Error()(*V1beta1DualAuthOperationsItemDualAuthOperations500Error) { + m := &V1beta1DualAuthOperationsItemDualAuthOperations500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperations500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperations500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperations500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperations500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperations500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DualAuthOperationsItemDualAuthOperations500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DualAuthOperationsItemDualAuthOperations500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DualAuthOperationsItemDualAuthOperations500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations503_error.go new file mode 100644 index 0000000..4255d6e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperations503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperations503Error instantiates a new V1beta1DualAuthOperationsItemDualAuthOperations503Error and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperations503Error()(*V1beta1DualAuthOperationsItemDualAuthOperations503Error) { + m := &V1beta1DualAuthOperationsItemDualAuthOperations503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperations503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperations503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperations503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperations503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperations503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperations503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1DualAuthOperationsItemDualAuthOperations503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1DualAuthOperationsItemDualAuthOperations503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1DualAuthOperationsItemDualAuthOperations503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1DualAuthOperationsItemDualAuthOperations503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response.go new file mode 100644 index 0000000..927d78f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response.go @@ -0,0 +1,694 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Resources associated with this operation + associatedResources []V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResourcesable + // Time when this operation was checked. RFC 3339 Timestamp + checkedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Email of the user who checked (second authorization) this operation + checkedByEmail *string + // URI of the user who checked (second authorization) this operation + checkedByUri *string + // The URI for console screen that displays this resource. Deprecated - use associatedResources instead + // Deprecated: + consoleUri *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // Detailed description of the operation + description *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // Groups this operation is associated with. Deprecated - use associatedResources instead + // Deprecated: + groups []V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groupsable + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // A system specified name for the resource. + name *string + // Operation resource on which the operation is taking place. Deprecated - use associatedResources instead + // Deprecated: + operationResource V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResourceable + // Time when this operation was requested. RFC 3339 Timestamp + requestedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Email of the user who performed this operation + requestedByEmail *string + // URI of the user who performed this operation + requestedByUri *string + // One word description of the operation + requestedOperation *string + // The self reference for this resource. + resourceUri *string + // External Service Name from where this request was sent + sourceServiceExternalName *string + // state of this operation + state *string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse instantiates a new V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse()(*V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) { + m := &V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAssociatedResources gets the associatedResources property value. Resources associated with this operation +// returns a []V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResourcesable when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetAssociatedResources()([]V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResourcesable) { + return m.associatedResources +} +// GetCheckedAt gets the checkedAt property value. Time when this operation was checked. RFC 3339 Timestamp +// returns a *Time when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetCheckedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.checkedAt +} +// GetCheckedByEmail gets the checkedByEmail property value. Email of the user who checked (second authorization) this operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetCheckedByEmail()(*string) { + return m.checkedByEmail +} +// GetCheckedByUri gets the checkedByUri property value. URI of the user who checked (second authorization) this operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetCheckedByUri()(*string) { + return m.checkedByUri +} +// GetConsoleUri gets the consoleUri property value. The URI for console screen that displays this resource. Deprecated - use associatedResources instead +// Deprecated: +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDescription gets the description property value. Detailed description of the operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["associatedResources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResourcesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResourcesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResourcesable) + } + } + m.SetAssociatedResources(res) + } + return nil + } + res["checkedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCheckedAt(val) + } + return nil + } + res["checkedByEmail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCheckedByEmail(val) + } + return nil + } + res["checkedByUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCheckedByUri(val) + } + return nil + } + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["operationResource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResourceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOperationResource(val.(V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResourceable)) + } + return nil + } + res["requestedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetRequestedAt(val) + } + return nil + } + res["requestedByEmail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRequestedByEmail(val) + } + return nil + } + res["requestedByUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRequestedByUri(val) + } + return nil + } + res["requestedOperation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRequestedOperation(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["sourceServiceExternalName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSourceServiceExternalName(val) + } + return nil + } + res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetState(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetGeneration()(*int64) { + return m.generation +} +// GetGroups gets the groups property value. Groups this operation is associated with. Deprecated - use associatedResources instead +// Deprecated: +// returns a []V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groupsable when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetGroups()([]V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groupsable) { + return m.groups +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetName()(*string) { + return m.name +} +// GetOperationResource gets the operationResource property value. Operation resource on which the operation is taking place. Deprecated - use associatedResources instead +// Deprecated: +// returns a V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResourceable when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetOperationResource()(V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResourceable) { + return m.operationResource +} +// GetRequestedAt gets the requestedAt property value. Time when this operation was requested. RFC 3339 Timestamp +// returns a *Time when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetRequestedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.requestedAt +} +// GetRequestedByEmail gets the requestedByEmail property value. Email of the user who performed this operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetRequestedByEmail()(*string) { + return m.requestedByEmail +} +// GetRequestedByUri gets the requestedByUri property value. URI of the user who performed this operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetRequestedByUri()(*string) { + return m.requestedByUri +} +// GetRequestedOperation gets the requestedOperation property value. One word description of the operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetRequestedOperation()(*string) { + return m.requestedOperation +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSourceServiceExternalName gets the sourceServiceExternalName property value. External Service Name from where this request was sent +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetSourceServiceExternalName()(*string) { + return m.sourceServiceExternalName +} +// GetState gets the state property value. state of this operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetState()(*string) { + return m.state +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAssociatedResources() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAssociatedResources())) + for i, v := range m.GetAssociatedResources() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("associatedResources", cast) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("checkedAt", m.GetCheckedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("checkedByEmail", m.GetCheckedByEmail()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("checkedByUri", m.GetCheckedByUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("operationResource", m.GetOperationResource()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("requestedAt", m.GetRequestedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("requestedByEmail", m.GetRequestedByEmail()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("requestedByUri", m.GetRequestedByUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("requestedOperation", m.GetRequestedOperation()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sourceServiceExternalName", m.GetSourceServiceExternalName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("state", m.GetState()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAssociatedResources sets the associatedResources property value. Resources associated with this operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetAssociatedResources(value []V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResourcesable)() { + m.associatedResources = value +} +// SetCheckedAt sets the checkedAt property value. Time when this operation was checked. RFC 3339 Timestamp +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetCheckedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.checkedAt = value +} +// SetCheckedByEmail sets the checkedByEmail property value. Email of the user who checked (second authorization) this operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetCheckedByEmail(value *string)() { + m.checkedByEmail = value +} +// SetCheckedByUri sets the checkedByUri property value. URI of the user who checked (second authorization) this operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetCheckedByUri(value *string)() { + m.checkedByUri = value +} +// SetConsoleUri sets the consoleUri property value. The URI for console screen that displays this resource. Deprecated - use associatedResources instead +// Deprecated: +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDescription sets the description property value. Detailed description of the operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetDescription(value *string)() { + m.description = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetGeneration(value *int64)() { + m.generation = value +} +// SetGroups sets the groups property value. Groups this operation is associated with. Deprecated - use associatedResources instead +// Deprecated: +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetGroups(value []V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groupsable)() { + m.groups = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetName(value *string)() { + m.name = value +} +// SetOperationResource sets the operationResource property value. Operation resource on which the operation is taking place. Deprecated - use associatedResources instead +// Deprecated: +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetOperationResource(value V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResourceable)() { + m.operationResource = value +} +// SetRequestedAt sets the requestedAt property value. Time when this operation was requested. RFC 3339 Timestamp +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetRequestedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.requestedAt = value +} +// SetRequestedByEmail sets the requestedByEmail property value. Email of the user who performed this operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetRequestedByEmail(value *string)() { + m.requestedByEmail = value +} +// SetRequestedByUri sets the requestedByUri property value. URI of the user who performed this operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetRequestedByUri(value *string)() { + m.requestedByUri = value +} +// SetRequestedOperation sets the requestedOperation property value. One word description of the operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetRequestedOperation(value *string)() { + m.requestedOperation = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSourceServiceExternalName sets the sourceServiceExternalName property value. External Service Name from where this request was sent +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetSourceServiceExternalName(value *string)() { + m.sourceServiceExternalName = value +} +// SetState sets the state property value. state of this operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetState(value *string)() { + m.state = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1DualAuthOperationsItemDualAuthOperationsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAssociatedResources()([]V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResourcesable) + GetCheckedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCheckedByEmail()(*string) + GetCheckedByUri()(*string) + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDescription()(*string) + GetGeneration()(*int64) + GetGroups()([]V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groupsable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetOperationResource()(V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResourceable) + GetRequestedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetRequestedByEmail()(*string) + GetRequestedByUri()(*string) + GetRequestedOperation()(*string) + GetResourceUri()(*string) + GetSourceServiceExternalName()(*string) + GetState()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetAssociatedResources(value []V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResourcesable)() + SetCheckedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCheckedByEmail(value *string)() + SetCheckedByUri(value *string)() + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDescription(value *string)() + SetGeneration(value *int64)() + SetGroups(value []V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groupsable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetOperationResource(value V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResourceable)() + SetRequestedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetRequestedByEmail(value *string)() + SetRequestedByUri(value *string)() + SetRequestedOperation(value *string)() + SetResourceUri(value *string)() + SetSourceServiceExternalName(value *string)() + SetState(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response_escaped_associated_resources.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response_escaped_associated_resources.go new file mode 100644 index 0000000..eeebf2b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response_escaped_associated_resources.go @@ -0,0 +1,121 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Groups this resource is associated with + groups []V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groupsable + // Resource associated with this operation + resource V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resourceable +} +// NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources instantiates a new V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources()(*V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources) { + m := &V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResourcesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResourcesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["resource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resourceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetResource(val.(V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resourceable)) + } + return nil + } + return res +} +// GetGroups gets the groups property value. Groups this resource is associated with +// returns a []V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groupsable when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources) GetGroups()([]V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groupsable) { + return m.groups +} +// GetResource gets the resource property value. Resource associated with this operation +// returns a V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resourceable when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources) GetResource()(V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resourceable) { + return m.resource +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("resource", m.GetResource()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetGroups sets the groups property value. Groups this resource is associated with +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources) SetGroups(value []V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groupsable)() { + m.groups = value +} +// SetResource sets the resource property value. Resource associated with this operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources) SetResource(value V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resourceable)() { + m.resource = value +} +type V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResourcesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetGroups()([]V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groupsable) + GetResource()(V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resourceable) + SetGroups(value []V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_groupsable)() + SetResource(value V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_associatedResources_resourceable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response_escaped_groups.go new file mode 100644 index 0000000..8c260e7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response_escaped_groups.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // ID of the associated group + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the associated group + name *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groups instantiates a new V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groups and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groups()(*V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groups) { + m := &V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. ID of the associated group +// returns a *UUID when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groups) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. ID of the associated group +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groups) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groups) SetName(value *string)() { + m.name = value +} +type V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response_escaped_operation_resource.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response_escaped_operation_resource.go new file mode 100644 index 0000000..8c9e5ec --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_get_response_escaped_operation_resource.go @@ -0,0 +1,121 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource references to other resources include the name, type and URI of the other resource. +type V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The name property + name *string + // The resourceUri property + resourceUri *string + // The type property + typeEscaped *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource instantiates a new V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource()(*V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource) { + m := &V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResourceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResourceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The resourceUri property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. The name property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The resourceUri property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResource) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse_operationResourceable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_request_body.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_request_body.go new file mode 100644 index 0000000..6b6368a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_request_body.go @@ -0,0 +1,51 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBody struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBody instantiates a new V1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBody and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBody()(*V1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBody) { + m := &V1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1DualAuthOperationsItemDualAuthOperationsPatchRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response.go new file mode 100644 index 0000000..9a41c53 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response.go @@ -0,0 +1,694 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Resources associated with this operation + associatedResources []V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResourcesable + // Time when this operation was checked. RFC 3339 Timestamp + checkedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Email of the user who checked (second authorization) this operation + checkedByEmail *string + // URI of the user who checked (second authorization) this operation + checkedByUri *string + // The URI for console screen that displays this resource. Deprecated - use associatedResources instead + // Deprecated: + consoleUri *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // Detailed description of the operation + description *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // Groups this operation is associated with. Deprecated - use associatedResources instead + // Deprecated: + groups []V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groupsable + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // A system specified name for the resource. + name *string + // Operation resource on which the operation is taking place. Deprecated - use associatedResources instead + // Deprecated: + operationResource V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResourceable + // Time when this operation was requested. RFC 3339 Timestamp + requestedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Email of the user who performed this operation + requestedByEmail *string + // URI of the user who performed this operation + requestedByUri *string + // One word description of the operation + requestedOperation *string + // The self reference for this resource. + resourceUri *string + // External Service Name from where this request was sent + sourceServiceExternalName *string + // state of this operation + state *string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse instantiates a new V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse()(*V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) { + m := &V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAssociatedResources gets the associatedResources property value. Resources associated with this operation +// returns a []V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResourcesable when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetAssociatedResources()([]V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResourcesable) { + return m.associatedResources +} +// GetCheckedAt gets the checkedAt property value. Time when this operation was checked. RFC 3339 Timestamp +// returns a *Time when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetCheckedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.checkedAt +} +// GetCheckedByEmail gets the checkedByEmail property value. Email of the user who checked (second authorization) this operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetCheckedByEmail()(*string) { + return m.checkedByEmail +} +// GetCheckedByUri gets the checkedByUri property value. URI of the user who checked (second authorization) this operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetCheckedByUri()(*string) { + return m.checkedByUri +} +// GetConsoleUri gets the consoleUri property value. The URI for console screen that displays this resource. Deprecated - use associatedResources instead +// Deprecated: +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDescription gets the description property value. Detailed description of the operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["associatedResources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResourcesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResourcesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResourcesable) + } + } + m.SetAssociatedResources(res) + } + return nil + } + res["checkedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCheckedAt(val) + } + return nil + } + res["checkedByEmail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCheckedByEmail(val) + } + return nil + } + res["checkedByUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCheckedByUri(val) + } + return nil + } + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["operationResource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResourceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOperationResource(val.(V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResourceable)) + } + return nil + } + res["requestedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetRequestedAt(val) + } + return nil + } + res["requestedByEmail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRequestedByEmail(val) + } + return nil + } + res["requestedByUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRequestedByUri(val) + } + return nil + } + res["requestedOperation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRequestedOperation(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["sourceServiceExternalName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSourceServiceExternalName(val) + } + return nil + } + res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetState(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetGeneration()(*int64) { + return m.generation +} +// GetGroups gets the groups property value. Groups this operation is associated with. Deprecated - use associatedResources instead +// Deprecated: +// returns a []V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groupsable when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetGroups()([]V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groupsable) { + return m.groups +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetName()(*string) { + return m.name +} +// GetOperationResource gets the operationResource property value. Operation resource on which the operation is taking place. Deprecated - use associatedResources instead +// Deprecated: +// returns a V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResourceable when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetOperationResource()(V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResourceable) { + return m.operationResource +} +// GetRequestedAt gets the requestedAt property value. Time when this operation was requested. RFC 3339 Timestamp +// returns a *Time when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetRequestedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.requestedAt +} +// GetRequestedByEmail gets the requestedByEmail property value. Email of the user who performed this operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetRequestedByEmail()(*string) { + return m.requestedByEmail +} +// GetRequestedByUri gets the requestedByUri property value. URI of the user who performed this operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetRequestedByUri()(*string) { + return m.requestedByUri +} +// GetRequestedOperation gets the requestedOperation property value. One word description of the operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetRequestedOperation()(*string) { + return m.requestedOperation +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSourceServiceExternalName gets the sourceServiceExternalName property value. External Service Name from where this request was sent +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetSourceServiceExternalName()(*string) { + return m.sourceServiceExternalName +} +// GetState gets the state property value. state of this operation +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetState()(*string) { + return m.state +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAssociatedResources() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAssociatedResources())) + for i, v := range m.GetAssociatedResources() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("associatedResources", cast) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("checkedAt", m.GetCheckedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("checkedByEmail", m.GetCheckedByEmail()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("checkedByUri", m.GetCheckedByUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("operationResource", m.GetOperationResource()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("requestedAt", m.GetRequestedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("requestedByEmail", m.GetRequestedByEmail()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("requestedByUri", m.GetRequestedByUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("requestedOperation", m.GetRequestedOperation()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sourceServiceExternalName", m.GetSourceServiceExternalName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("state", m.GetState()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAssociatedResources sets the associatedResources property value. Resources associated with this operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetAssociatedResources(value []V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResourcesable)() { + m.associatedResources = value +} +// SetCheckedAt sets the checkedAt property value. Time when this operation was checked. RFC 3339 Timestamp +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetCheckedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.checkedAt = value +} +// SetCheckedByEmail sets the checkedByEmail property value. Email of the user who checked (second authorization) this operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetCheckedByEmail(value *string)() { + m.checkedByEmail = value +} +// SetCheckedByUri sets the checkedByUri property value. URI of the user who checked (second authorization) this operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetCheckedByUri(value *string)() { + m.checkedByUri = value +} +// SetConsoleUri sets the consoleUri property value. The URI for console screen that displays this resource. Deprecated - use associatedResources instead +// Deprecated: +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDescription sets the description property value. Detailed description of the operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetDescription(value *string)() { + m.description = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetGeneration(value *int64)() { + m.generation = value +} +// SetGroups sets the groups property value. Groups this operation is associated with. Deprecated - use associatedResources instead +// Deprecated: +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetGroups(value []V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groupsable)() { + m.groups = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetName(value *string)() { + m.name = value +} +// SetOperationResource sets the operationResource property value. Operation resource on which the operation is taking place. Deprecated - use associatedResources instead +// Deprecated: +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetOperationResource(value V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResourceable)() { + m.operationResource = value +} +// SetRequestedAt sets the requestedAt property value. Time when this operation was requested. RFC 3339 Timestamp +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetRequestedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.requestedAt = value +} +// SetRequestedByEmail sets the requestedByEmail property value. Email of the user who performed this operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetRequestedByEmail(value *string)() { + m.requestedByEmail = value +} +// SetRequestedByUri sets the requestedByUri property value. URI of the user who performed this operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetRequestedByUri(value *string)() { + m.requestedByUri = value +} +// SetRequestedOperation sets the requestedOperation property value. One word description of the operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetRequestedOperation(value *string)() { + m.requestedOperation = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSourceServiceExternalName sets the sourceServiceExternalName property value. External Service Name from where this request was sent +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetSourceServiceExternalName(value *string)() { + m.sourceServiceExternalName = value +} +// SetState sets the state property value. state of this operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetState(value *string)() { + m.state = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAssociatedResources()([]V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResourcesable) + GetCheckedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCheckedByEmail()(*string) + GetCheckedByUri()(*string) + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDescription()(*string) + GetGeneration()(*int64) + GetGroups()([]V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groupsable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetOperationResource()(V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResourceable) + GetRequestedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetRequestedByEmail()(*string) + GetRequestedByUri()(*string) + GetRequestedOperation()(*string) + GetResourceUri()(*string) + GetSourceServiceExternalName()(*string) + GetState()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetAssociatedResources(value []V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResourcesable)() + SetCheckedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCheckedByEmail(value *string)() + SetCheckedByUri(value *string)() + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDescription(value *string)() + SetGeneration(value *int64)() + SetGroups(value []V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groupsable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetOperationResource(value V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResourceable)() + SetRequestedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetRequestedByEmail(value *string)() + SetRequestedByUri(value *string)() + SetRequestedOperation(value *string)() + SetResourceUri(value *string)() + SetSourceServiceExternalName(value *string)() + SetState(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response_escaped_associated_resources.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response_escaped_associated_resources.go new file mode 100644 index 0000000..0dfbbda --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response_escaped_associated_resources.go @@ -0,0 +1,121 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Groups this resource is associated with + groups []V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groupsable + // Resource associated with this operation + resource V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resourceable +} +// NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources instantiates a new V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources()(*V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources) { + m := &V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResourcesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResourcesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["resource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resourceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetResource(val.(V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resourceable)) + } + return nil + } + return res +} +// GetGroups gets the groups property value. Groups this resource is associated with +// returns a []V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groupsable when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources) GetGroups()([]V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groupsable) { + return m.groups +} +// GetResource gets the resource property value. Resource associated with this operation +// returns a V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resourceable when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources) GetResource()(V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resourceable) { + return m.resource +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("resource", m.GetResource()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetGroups sets the groups property value. Groups this resource is associated with +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources) SetGroups(value []V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groupsable)() { + m.groups = value +} +// SetResource sets the resource property value. Resource associated with this operation +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources) SetResource(value V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resourceable)() { + m.resource = value +} +type V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResourcesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetGroups()([]V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groupsable) + GetResource()(V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resourceable) + SetGroups(value []V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_groupsable)() + SetResource(value V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_associatedResources_resourceable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response_escaped_groups.go new file mode 100644 index 0000000..e63d43d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response_escaped_groups.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // ID of the associated group + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the associated group + name *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groups instantiates a new V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groups and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groups()(*V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groups) { + m := &V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. ID of the associated group +// returns a *UUID when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groups) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. ID of the associated group +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groups) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groups) SetName(value *string)() { + m.name = value +} +type V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response_escaped_operation_resource.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response_escaped_operation_resource.go new file mode 100644 index 0000000..234d554 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_patch_response_escaped_operation_resource.go @@ -0,0 +1,121 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource references to other resources include the name, type and URI of the other resource. +type V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The name property + name *string + // The resourceUri property + resourceUri *string + // The type property + typeEscaped *string +} +// NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource instantiates a new V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource()(*V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource) { + m := &V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResourceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResourceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The resourceUri property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. The name property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The resourceUri property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type property +func (m *V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResource) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1DualAuthOperationsItemDualAuthOperationsPatchResponse_operationResourceable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_response.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_response.go new file mode 100644 index 0000000..e142ce2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_item_dual_auth_operations_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1DualAuthOperationsItemDualAuthOperationsGetResponseable instead. +type V1beta1DualAuthOperationsItemDualAuthOperationsResponse struct { + V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse +} +// NewV1beta1DualAuthOperationsItemDualAuthOperationsResponse instantiates a new V1beta1DualAuthOperationsItemDualAuthOperationsResponse and sets the default values. +func NewV1beta1DualAuthOperationsItemDualAuthOperationsResponse()(*V1beta1DualAuthOperationsItemDualAuthOperationsResponse) { + m := &V1beta1DualAuthOperationsItemDualAuthOperationsResponse{ + V1beta1DualAuthOperationsItemDualAuthOperationsGetResponse: *NewV1beta1DualAuthOperationsItemDualAuthOperationsGetResponse(), + } + return m +} +// CreateV1beta1DualAuthOperationsItemDualAuthOperationsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsItemDualAuthOperationsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsItemDualAuthOperationsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1DualAuthOperationsItemDualAuthOperationsGetResponseable instead. +type V1beta1DualAuthOperationsItemDualAuthOperationsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1DualAuthOperationsItemDualAuthOperationsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_request_builder.go new file mode 100644 index 0000000..1bf477d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_request_builder.go @@ -0,0 +1,154 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" +) + +// V1beta1DualAuthOperationsRequestBuilder builds and executes requests for operations under \data-services\v1beta1\dual-auth-operations +type V1beta1DualAuthOperationsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1DualAuthOperationsRequestBuilderGetQueryParameters returns the list of Dual Authorization operations for the current account. The list will include only the resource types (Application Resource) the user has read permission for. The user must have permission to read pending operations. +type V1beta1DualAuthOperationsRequestBuilderGetQueryParameters struct { + // The expression to use for filtering responses. The following comparisons are supported:“eq” : Valid for number, boolean and string properties.“gt” : Valid for number or string timestamp properties.“lt” : Valid for number or string timestamp properties“in” : Valid for an array of stringsSyntax:“eq” : filter= eq {host:port}/data-services/v1beta1/dual-auth-operations?filter= eq “gt” : filter= gt {host:port}/data-services/v1beta1/dual-auth-operations?filter= gt “lt” : filter= lt {host:port}/data-services/v1beta1/dual-auth-operations?filter= lt “in” : filter= in {host:port}/data-services/v1beta1/dual-auth-operations?filter= in * Use "and" to combine filter inputs {host:port}/data-services/v1beta1/dual-auth-operations?filter= eq and lt * To filter multiple values on one property e.g. filter=resourceType in ('foo','bar') {host:port}/data-services/v1beta1/dual-auth-operations?filter=foo%bar%20in%20resourceTypeExamples:GET /data-services/v1beta1/dual-auth-operations?filter=resourceType eq 'ISSUE'GET /data-services/v1beta1/dual-auth-operations?filter=resourceType eq 'ISSUE' and state eq 'CREATED'GET /data-services/v1beta1/dual-auth-operations?filter=relatedObjectType in ('NIMBLE-VOLUME')Filters are supported on following attributes:resourceUri,resourceName,resourceType,requestedOperation,operationDescription,requestedByUri,requestedByEmail,requestedAt,customerId,checkedByUri,checkedByEmail,checkedAt,sourceServiceExternalName,state + Filter *string `uriparametername:"filter"` + // Use limit in conjunction with offset for paging. The limit is the maximum number of items to include in the response. + Limit *int32 `uriparametername:"limit"` + // Use offset in conjunction with limit for paging. The offset is the number of items from the beginning of the result set to the first item included in the response. + Offset *int32 `uriparametername:"offset"` + // Limits the properties returned with a resource or collection-level GET. Specify a comma-separated list of properties. If this is omitted, all properties are returned. + Select *string `uriparametername:"select"` + // The property to sort by followed by a direction indicator ("asc" or "desc"). If no direction indicator is specified the default order is ascending. + Sort *string `uriparametername:"sort"` +} +// V1beta1DualAuthOperationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1DualAuthOperationsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1DualAuthOperationsRequestBuilderGetQueryParameters +} +// ById gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.dualAuthOperations.item collection +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. +// returns a *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder when successful +func (m *V1beta1DualAuthOperationsRequestBuilder) ById(id string)(*V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["id"] = id + } + return NewV1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ByIdGuid gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.dualAuthOperations.item collection +// returns a *V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder when successful +func (m *V1beta1DualAuthOperationsRequestBuilder) ByIdGuid(id i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*V1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["id"] = id.String() + return NewV1beta1DualAuthOperationsDualAuthOperationsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1DualAuthOperationsRequestBuilderInternal instantiates a new V1beta1DualAuthOperationsRequestBuilder and sets the default values. +func NewV1beta1DualAuthOperationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1DualAuthOperationsRequestBuilder) { + m := &V1beta1DualAuthOperationsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/dual-auth-operations{?filter*,limit*,offset*,select*,sort*}", pathParameters), + } + return m +} +// NewV1beta1DualAuthOperationsRequestBuilder instantiates a new V1beta1DualAuthOperationsRequestBuilder and sets the default values. +func NewV1beta1DualAuthOperationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1DualAuthOperationsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1DualAuthOperationsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns the list of Dual Authorization operations for the current account. The list will include only the resource types (Application Resource) the user has read permission for. The user must have permission to read pending operations. +// Deprecated: This method is obsolete. Use GetAsDualAuthOperationsGetResponse instead. +// returns a V1beta1DualAuthOperationsResponseable when successful +// returns a V1beta1DualAuthOperations400Error error when the service returns a 400 status code +// returns a V1beta1DualAuthOperations401Error error when the service returns a 401 status code +// returns a V1beta1DualAuthOperations403Error error when the service returns a 403 status code +// returns a V1beta1DualAuthOperations404Error error when the service returns a 404 status code +// returns a V1beta1DualAuthOperations422Error error when the service returns a 422 status code +// returns a V1beta1DualAuthOperations500Error error when the service returns a 500 status code +// returns a V1beta1DualAuthOperations503Error error when the service returns a 503 status code +func (m *V1beta1DualAuthOperationsRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1DualAuthOperationsRequestBuilderGetRequestConfiguration)(V1beta1DualAuthOperationsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DualAuthOperations400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DualAuthOperations401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DualAuthOperations403ErrorFromDiscriminatorValue, + "404": CreateV1beta1DualAuthOperations404ErrorFromDiscriminatorValue, + "422": CreateV1beta1DualAuthOperations422ErrorFromDiscriminatorValue, + "500": CreateV1beta1DualAuthOperations500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DualAuthOperations503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1DualAuthOperationsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1DualAuthOperationsResponseable), nil +} +// GetAsDualAuthOperationsGetResponse returns the list of Dual Authorization operations for the current account. The list will include only the resource types (Application Resource) the user has read permission for. The user must have permission to read pending operations. +// returns a V1beta1DualAuthOperationsGetResponseable when successful +// returns a V1beta1DualAuthOperations400Error error when the service returns a 400 status code +// returns a V1beta1DualAuthOperations401Error error when the service returns a 401 status code +// returns a V1beta1DualAuthOperations403Error error when the service returns a 403 status code +// returns a V1beta1DualAuthOperations404Error error when the service returns a 404 status code +// returns a V1beta1DualAuthOperations422Error error when the service returns a 422 status code +// returns a V1beta1DualAuthOperations500Error error when the service returns a 500 status code +// returns a V1beta1DualAuthOperations503Error error when the service returns a 503 status code +func (m *V1beta1DualAuthOperationsRequestBuilder) GetAsDualAuthOperationsGetResponse(ctx context.Context, requestConfiguration *V1beta1DualAuthOperationsRequestBuilderGetRequestConfiguration)(V1beta1DualAuthOperationsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1DualAuthOperations400ErrorFromDiscriminatorValue, + "401": CreateV1beta1DualAuthOperations401ErrorFromDiscriminatorValue, + "403": CreateV1beta1DualAuthOperations403ErrorFromDiscriminatorValue, + "404": CreateV1beta1DualAuthOperations404ErrorFromDiscriminatorValue, + "422": CreateV1beta1DualAuthOperations422ErrorFromDiscriminatorValue, + "500": CreateV1beta1DualAuthOperations500ErrorFromDiscriminatorValue, + "503": CreateV1beta1DualAuthOperations503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1DualAuthOperationsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1DualAuthOperationsGetResponseable), nil +} +// ToGetRequestInformation returns the list of Dual Authorization operations for the current account. The list will include only the resource types (Application Resource) the user has read permission for. The user must have permission to read pending operations. +// returns a *RequestInformation when successful +func (m *V1beta1DualAuthOperationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1DualAuthOperationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1DualAuthOperationsRequestBuilder when successful +func (m *V1beta1DualAuthOperationsRequestBuilder) WithUrl(rawUrl string)(*V1beta1DualAuthOperationsRequestBuilder) { + return NewV1beta1DualAuthOperationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_response.go b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_response.go new file mode 100644 index 0000000..4c33cd9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_dual_auth_operations_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1DualAuthOperationsGetResponseable instead. +type V1beta1DualAuthOperationsResponse struct { + V1beta1DualAuthOperationsGetResponse +} +// NewV1beta1DualAuthOperationsResponse instantiates a new V1beta1DualAuthOperationsResponse and sets the default values. +func NewV1beta1DualAuthOperationsResponse()(*V1beta1DualAuthOperationsResponse) { + m := &V1beta1DualAuthOperationsResponse{ + V1beta1DualAuthOperationsGetResponse: *NewV1beta1DualAuthOperationsGetResponse(), + } + return m +} +// CreateV1beta1DualAuthOperationsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1DualAuthOperationsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1DualAuthOperationsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1DualAuthOperationsGetResponseable instead. +type V1beta1DualAuthOperationsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1DualAuthOperationsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions400_error.go new file mode 100644 index 0000000..0e4b760 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions400_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1EmailSubscriptions400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_BAD_REQUEST` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1EmailSubscriptions400Error instantiates a new V1beta1EmailSubscriptions400Error and sets the default values. +func NewV1beta1EmailSubscriptions400Error()(*V1beta1EmailSubscriptions400Error) { + m := &V1beta1EmailSubscriptions400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1EmailSubscriptions400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1EmailSubscriptions400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1EmailSubscriptions400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1EmailSubscriptions400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1EmailSubscriptions400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_BAD_REQUEST` +// returns a UntypedNodeable when successful +func (m *V1beta1EmailSubscriptions400Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1EmailSubscriptions400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1EmailSubscriptions400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1EmailSubscriptions400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_BAD_REQUEST` +func (m *V1beta1EmailSubscriptions400Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1EmailSubscriptions400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions401_error.go new file mode 100644 index 0000000..6218e35 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions401_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1EmailSubscriptions401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_UNAUTHORIZED` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1EmailSubscriptions401Error instantiates a new V1beta1EmailSubscriptions401Error and sets the default values. +func NewV1beta1EmailSubscriptions401Error()(*V1beta1EmailSubscriptions401Error) { + m := &V1beta1EmailSubscriptions401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1EmailSubscriptions401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1EmailSubscriptions401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1EmailSubscriptions401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1EmailSubscriptions401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1EmailSubscriptions401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_UNAUTHORIZED` +// returns a UntypedNodeable when successful +func (m *V1beta1EmailSubscriptions401Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1EmailSubscriptions401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1EmailSubscriptions401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1EmailSubscriptions401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_UNAUTHORIZED` +func (m *V1beta1EmailSubscriptions401Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1EmailSubscriptions401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions503_error.go new file mode 100644 index 0000000..a9e76d7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions503_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1EmailSubscriptions503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1EmailSubscriptions503Error instantiates a new V1beta1EmailSubscriptions503Error and sets the default values. +func NewV1beta1EmailSubscriptions503Error()(*V1beta1EmailSubscriptions503Error) { + m := &V1beta1EmailSubscriptions503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1EmailSubscriptions503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1EmailSubscriptions503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1EmailSubscriptions503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1EmailSubscriptions503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1EmailSubscriptions503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` +// returns a UntypedNodeable when successful +func (m *V1beta1EmailSubscriptions503Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1EmailSubscriptions503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1EmailSubscriptions503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1EmailSubscriptions503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` +func (m *V1beta1EmailSubscriptions503Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1EmailSubscriptions503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_email_subscriptions_item_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_email_subscriptions_item_request_builder.go new file mode 100644 index 0000000..d4c5dc1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_email_subscriptions_item_request_builder.go @@ -0,0 +1,134 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder builds and executes requests for operations under \data-services\v1beta1\email-subscriptions\{id} +type V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilderInternal instantiates a new V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder and sets the default values. +func NewV1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder) { + m := &V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/email-subscriptions/{id}", pathParameters), + } + return m +} +// NewV1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder instantiates a new V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder and sets the default values. +func NewV1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete deactivate the email subscription for the user. The user is identified by the contents of the bearer token that is included in the request. +// returns a V1beta1EmailSubscriptionsItemEmailSubscriptions401Error error when the service returns a 401 status code +// returns a V1beta1EmailSubscriptionsItemEmailSubscriptions404Error error when the service returns a 404 status code +// returns a V1beta1EmailSubscriptionsItemEmailSubscriptions503Error error when the service returns a 503 status code +func (m *V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "401": CreateV1beta1EmailSubscriptionsItemEmailSubscriptions401ErrorFromDiscriminatorValue, + "404": CreateV1beta1EmailSubscriptionsItemEmailSubscriptions404ErrorFromDiscriminatorValue, + "503": CreateV1beta1EmailSubscriptionsItemEmailSubscriptions503ErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Post activate the email subscription for the user. The user is identified by the contents of the bearer token that is included in the request. +// Deprecated: This method is obsolete. Use PostAsEmailSubscriptionsPostResponse instead. +// returns a V1beta1EmailSubscriptionsItemEmailSubscriptionsResponseable when successful +// returns a V1beta1EmailSubscriptionsItemEmailSubscriptions401Error error when the service returns a 401 status code +// returns a V1beta1EmailSubscriptionsItemEmailSubscriptions404Error error when the service returns a 404 status code +// returns a V1beta1EmailSubscriptionsItemEmailSubscriptions503Error error when the service returns a 503 status code +func (m *V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder) Post(ctx context.Context, requestConfiguration *V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilderPostRequestConfiguration)(V1beta1EmailSubscriptionsItemEmailSubscriptionsResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "401": CreateV1beta1EmailSubscriptionsItemEmailSubscriptions401ErrorFromDiscriminatorValue, + "404": CreateV1beta1EmailSubscriptionsItemEmailSubscriptions404ErrorFromDiscriminatorValue, + "503": CreateV1beta1EmailSubscriptionsItemEmailSubscriptions503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1EmailSubscriptionsItemEmailSubscriptionsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1EmailSubscriptionsItemEmailSubscriptionsResponseable), nil +} +// PostAsEmailSubscriptionsPostResponse activate the email subscription for the user. The user is identified by the contents of the bearer token that is included in the request. +// returns a V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponseable when successful +// returns a V1beta1EmailSubscriptionsItemEmailSubscriptions401Error error when the service returns a 401 status code +// returns a V1beta1EmailSubscriptionsItemEmailSubscriptions404Error error when the service returns a 404 status code +// returns a V1beta1EmailSubscriptionsItemEmailSubscriptions503Error error when the service returns a 503 status code +func (m *V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder) PostAsEmailSubscriptionsPostResponse(ctx context.Context, requestConfiguration *V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilderPostRequestConfiguration)(V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "401": CreateV1beta1EmailSubscriptionsItemEmailSubscriptions401ErrorFromDiscriminatorValue, + "404": CreateV1beta1EmailSubscriptionsItemEmailSubscriptions404ErrorFromDiscriminatorValue, + "503": CreateV1beta1EmailSubscriptionsItemEmailSubscriptions503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponseable), nil +} +// ToDeleteRequestInformation deactivate the email subscription for the user. The user is identified by the contents of the bearer token that is included in the request. +// returns a *RequestInformation when successful +func (m *V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation activate the email subscription for the user. The user is identified by the contents of the bearer token that is included in the request. +// returns a *RequestInformation when successful +func (m *V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder when successful +func (m *V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder) WithUrl(rawUrl string)(*V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder) { + return NewV1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_get_response.go new file mode 100644 index 0000000..9e31b10 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_get_response.go @@ -0,0 +1,92 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1EmailSubscriptionsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // If query yields results, they will be reported here + items []V1beta1EmailSubscriptionsGetResponse_itemsable +} +// NewV1beta1EmailSubscriptionsGetResponse instantiates a new V1beta1EmailSubscriptionsGetResponse and sets the default values. +func NewV1beta1EmailSubscriptionsGetResponse()(*V1beta1EmailSubscriptionsGetResponse) { + m := &V1beta1EmailSubscriptionsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1EmailSubscriptionsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1EmailSubscriptionsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1EmailSubscriptionsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1EmailSubscriptionsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1EmailSubscriptionsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1EmailSubscriptionsGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1EmailSubscriptionsGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1EmailSubscriptionsGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + return res +} +// GetItems gets the items property value. If query yields results, they will be reported here +// returns a []V1beta1EmailSubscriptionsGetResponse_itemsable when successful +func (m *V1beta1EmailSubscriptionsGetResponse) GetItems()([]V1beta1EmailSubscriptionsGetResponse_itemsable) { + return m.items +} +// Serialize serializes information the current object +func (m *V1beta1EmailSubscriptionsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1EmailSubscriptionsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetItems sets the items property value. If query yields results, they will be reported here +func (m *V1beta1EmailSubscriptionsGetResponse) SetItems(value []V1beta1EmailSubscriptionsGetResponse_itemsable)() { + m.items = value +} +type V1beta1EmailSubscriptionsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetItems()([]V1beta1EmailSubscriptionsGetResponse_itemsable) + SetItems(value []V1beta1EmailSubscriptionsGetResponse_itemsable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_get_response_escaped_items.go new file mode 100644 index 0000000..32dd73b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_get_response_escaped_items.go @@ -0,0 +1,244 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1EmailSubscriptionsGetResponse_items common properties included in all resource models. +type V1beta1EmailSubscriptionsGetResponse_items struct { + // If true, user activated this email subscription. Otherwise, false. + activated *bool + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Categories of email notification. This field, along with serviceName, will uniquely identify an email subscription. The match of Categories requires the same number of elements and each element in the array must match exactly. Case sensitivity is observed. + categories []string + // The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/email-subscriptions/c4f8f464-ce09-4847-bfaa-e668de838c66") + consoleUri *string + // Longer name or description of the subscription that can be provided as a tool tip or when hovering over a subscription in the microapp or plugin. + description *string + // Groups the email subscription is associated with. + groups []V1beta1EmailSubscriptionsGetResponse_items_groupsable + // The name of the service defining the subscription. This field along with Categories will uniquely identify an email subscription. + serviceName *string +} +// NewV1beta1EmailSubscriptionsGetResponse_items instantiates a new V1beta1EmailSubscriptionsGetResponse_items and sets the default values. +func NewV1beta1EmailSubscriptionsGetResponse_items()(*V1beta1EmailSubscriptionsGetResponse_items) { + m := &V1beta1EmailSubscriptionsGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1EmailSubscriptionsGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1EmailSubscriptionsGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1EmailSubscriptionsGetResponse_items(), nil +} +// GetActivated gets the activated property value. If true, user activated this email subscription. Otherwise, false. +// returns a *bool when successful +func (m *V1beta1EmailSubscriptionsGetResponse_items) GetActivated()(*bool) { + return m.activated +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1EmailSubscriptionsGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCategories gets the categories property value. Categories of email notification. This field, along with serviceName, will uniquely identify an email subscription. The match of Categories requires the same number of elements and each element in the array must match exactly. Case sensitivity is observed. +// returns a []string when successful +func (m *V1beta1EmailSubscriptionsGetResponse_items) GetCategories()([]string) { + return m.categories +} +// GetConsoleUri gets the consoleUri property value. The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/email-subscriptions/c4f8f464-ce09-4847-bfaa-e668de838c66") +// returns a *string when successful +func (m *V1beta1EmailSubscriptionsGetResponse_items) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetDescription gets the description property value. Longer name or description of the subscription that can be provided as a tool tip or when hovering over a subscription in the microapp or plugin. +// returns a *string when successful +func (m *V1beta1EmailSubscriptionsGetResponse_items) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1EmailSubscriptionsGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["activated"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetActivated(val) + } + return nil + } + res["categories"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetCategories(res) + } + return nil + } + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1EmailSubscriptionsGetResponse_items_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1EmailSubscriptionsGetResponse_items_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1EmailSubscriptionsGetResponse_items_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["serviceName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetServiceName(val) + } + return nil + } + return res +} +// GetGroups gets the groups property value. Groups the email subscription is associated with. +// returns a []V1beta1EmailSubscriptionsGetResponse_items_groupsable when successful +func (m *V1beta1EmailSubscriptionsGetResponse_items) GetGroups()([]V1beta1EmailSubscriptionsGetResponse_items_groupsable) { + return m.groups +} +// GetServiceName gets the serviceName property value. The name of the service defining the subscription. This field along with Categories will uniquely identify an email subscription. +// returns a *string when successful +func (m *V1beta1EmailSubscriptionsGetResponse_items) GetServiceName()(*string) { + return m.serviceName +} +// Serialize serializes information the current object +func (m *V1beta1EmailSubscriptionsGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("activated", m.GetActivated()) + if err != nil { + return err + } + } + if m.GetCategories() != nil { + err := writer.WriteCollectionOfStringValues("categories", m.GetCategories()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("serviceName", m.GetServiceName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetActivated sets the activated property value. If true, user activated this email subscription. Otherwise, false. +func (m *V1beta1EmailSubscriptionsGetResponse_items) SetActivated(value *bool)() { + m.activated = value +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1EmailSubscriptionsGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCategories sets the categories property value. Categories of email notification. This field, along with serviceName, will uniquely identify an email subscription. The match of Categories requires the same number of elements and each element in the array must match exactly. Case sensitivity is observed. +func (m *V1beta1EmailSubscriptionsGetResponse_items) SetCategories(value []string)() { + m.categories = value +} +// SetConsoleUri sets the consoleUri property value. The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/email-subscriptions/c4f8f464-ce09-4847-bfaa-e668de838c66") +func (m *V1beta1EmailSubscriptionsGetResponse_items) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetDescription sets the description property value. Longer name or description of the subscription that can be provided as a tool tip or when hovering over a subscription in the microapp or plugin. +func (m *V1beta1EmailSubscriptionsGetResponse_items) SetDescription(value *string)() { + m.description = value +} +// SetGroups sets the groups property value. Groups the email subscription is associated with. +func (m *V1beta1EmailSubscriptionsGetResponse_items) SetGroups(value []V1beta1EmailSubscriptionsGetResponse_items_groupsable)() { + m.groups = value +} +// SetServiceName sets the serviceName property value. The name of the service defining the subscription. This field along with Categories will uniquely identify an email subscription. +func (m *V1beta1EmailSubscriptionsGetResponse_items) SetServiceName(value *string)() { + m.serviceName = value +} +type V1beta1EmailSubscriptionsGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetActivated()(*bool) + GetCategories()([]string) + GetConsoleUri()(*string) + GetDescription()(*string) + GetGroups()([]V1beta1EmailSubscriptionsGetResponse_items_groupsable) + GetServiceName()(*string) + SetActivated(value *bool)() + SetCategories(value []string)() + SetConsoleUri(value *string)() + SetDescription(value *string)() + SetGroups(value []V1beta1EmailSubscriptionsGetResponse_items_groupsable)() + SetServiceName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_get_response_escaped_items_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_get_response_escaped_items_escaped_groups.go new file mode 100644 index 0000000..fc087a7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_get_response_escaped_items_escaped_groups.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1EmailSubscriptionsGetResponse_items_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // ID of the associated group + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the associated group + name *string +} +// NewV1beta1EmailSubscriptionsGetResponse_items_groups instantiates a new V1beta1EmailSubscriptionsGetResponse_items_groups and sets the default values. +func NewV1beta1EmailSubscriptionsGetResponse_items_groups()(*V1beta1EmailSubscriptionsGetResponse_items_groups) { + m := &V1beta1EmailSubscriptionsGetResponse_items_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1EmailSubscriptionsGetResponse_items_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1EmailSubscriptionsGetResponse_items_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1EmailSubscriptionsGetResponse_items_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1EmailSubscriptionsGetResponse_items_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1EmailSubscriptionsGetResponse_items_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. ID of the associated group +// returns a *UUID when successful +func (m *V1beta1EmailSubscriptionsGetResponse_items_groups) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1EmailSubscriptionsGetResponse_items_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1EmailSubscriptionsGetResponse_items_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1EmailSubscriptionsGetResponse_items_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. ID of the associated group +func (m *V1beta1EmailSubscriptionsGetResponse_items_groups) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1EmailSubscriptionsGetResponse_items_groups) SetName(value *string)() { + m.name = value +} +type V1beta1EmailSubscriptionsGetResponse_items_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions401_error.go new file mode 100644 index 0000000..b6fb026 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions401_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1EmailSubscriptionsItemEmailSubscriptions401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_UNAUTHORIZED` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1EmailSubscriptionsItemEmailSubscriptions401Error instantiates a new V1beta1EmailSubscriptionsItemEmailSubscriptions401Error and sets the default values. +func NewV1beta1EmailSubscriptionsItemEmailSubscriptions401Error()(*V1beta1EmailSubscriptionsItemEmailSubscriptions401Error) { + m := &V1beta1EmailSubscriptionsItemEmailSubscriptions401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1EmailSubscriptionsItemEmailSubscriptions401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1EmailSubscriptionsItemEmailSubscriptions401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1EmailSubscriptionsItemEmailSubscriptions401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_UNAUTHORIZED` +// returns a UntypedNodeable when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions401Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_UNAUTHORIZED` +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions401Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1EmailSubscriptionsItemEmailSubscriptions401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions404_error.go new file mode 100644 index 0000000..c69e2b7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions404_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1EmailSubscriptionsItemEmailSubscriptions404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_NOT_FOUND` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1EmailSubscriptionsItemEmailSubscriptions404Error instantiates a new V1beta1EmailSubscriptionsItemEmailSubscriptions404Error and sets the default values. +func NewV1beta1EmailSubscriptionsItemEmailSubscriptions404Error()(*V1beta1EmailSubscriptionsItemEmailSubscriptions404Error) { + m := &V1beta1EmailSubscriptionsItemEmailSubscriptions404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1EmailSubscriptionsItemEmailSubscriptions404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1EmailSubscriptionsItemEmailSubscriptions404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1EmailSubscriptionsItemEmailSubscriptions404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_NOT_FOUND` +// returns a UntypedNodeable when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions404Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_NOT_FOUND` +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions404Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1EmailSubscriptionsItemEmailSubscriptions404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions503_error.go new file mode 100644 index 0000000..e7453c9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions503_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1EmailSubscriptionsItemEmailSubscriptions503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1EmailSubscriptionsItemEmailSubscriptions503Error instantiates a new V1beta1EmailSubscriptionsItemEmailSubscriptions503Error and sets the default values. +func NewV1beta1EmailSubscriptionsItemEmailSubscriptions503Error()(*V1beta1EmailSubscriptionsItemEmailSubscriptions503Error) { + m := &V1beta1EmailSubscriptionsItemEmailSubscriptions503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1EmailSubscriptionsItemEmailSubscriptions503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1EmailSubscriptionsItemEmailSubscriptions503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1EmailSubscriptionsItemEmailSubscriptions503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` +// returns a UntypedNodeable when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions503Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptions503Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1EmailSubscriptionsItemEmailSubscriptions503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions_post_response.go b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions_post_response.go new file mode 100644 index 0000000..555bc39 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions_post_response.go @@ -0,0 +1,244 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse common properties included in all resource models. +type V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse struct { + // If true, user activated this email subscription. Otherwise, false. + activated *bool + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Categories of email notification. This field, along with serviceName, will uniquely identify an email subscription. The match of Categories requires the same number of elements and each element in the array must match exactly. Case sensitivity is observed. + categories []string + // The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/email-subscriptions/c4f8f464-ce09-4847-bfaa-e668de838c66") + consoleUri *string + // Longer name or description of the subscription that can be provided as a tool tip or when hovering over a subscription in the microapp or plugin. + description *string + // Groups the email subscription is associated with. + groups []V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groupsable + // The name of the service defining the subscription. This field along with Categories will uniquely identify an email subscription. + serviceName *string +} +// NewV1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse instantiates a new V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse and sets the default values. +func NewV1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse()(*V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) { + m := &V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse(), nil +} +// GetActivated gets the activated property value. If true, user activated this email subscription. Otherwise, false. +// returns a *bool when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) GetActivated()(*bool) { + return m.activated +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCategories gets the categories property value. Categories of email notification. This field, along with serviceName, will uniquely identify an email subscription. The match of Categories requires the same number of elements and each element in the array must match exactly. Case sensitivity is observed. +// returns a []string when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) GetCategories()([]string) { + return m.categories +} +// GetConsoleUri gets the consoleUri property value. The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/email-subscriptions/c4f8f464-ce09-4847-bfaa-e668de838c66") +// returns a *string when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetDescription gets the description property value. Longer name or description of the subscription that can be provided as a tool tip or when hovering over a subscription in the microapp or plugin. +// returns a *string when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["activated"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetActivated(val) + } + return nil + } + res["categories"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetCategories(res) + } + return nil + } + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["serviceName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetServiceName(val) + } + return nil + } + return res +} +// GetGroups gets the groups property value. Groups the email subscription is associated with. +// returns a []V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groupsable when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) GetGroups()([]V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groupsable) { + return m.groups +} +// GetServiceName gets the serviceName property value. The name of the service defining the subscription. This field along with Categories will uniquely identify an email subscription. +// returns a *string when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) GetServiceName()(*string) { + return m.serviceName +} +// Serialize serializes information the current object +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("activated", m.GetActivated()) + if err != nil { + return err + } + } + if m.GetCategories() != nil { + err := writer.WriteCollectionOfStringValues("categories", m.GetCategories()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("serviceName", m.GetServiceName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetActivated sets the activated property value. If true, user activated this email subscription. Otherwise, false. +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) SetActivated(value *bool)() { + m.activated = value +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCategories sets the categories property value. Categories of email notification. This field, along with serviceName, will uniquely identify an email subscription. The match of Categories requires the same number of elements and each element in the array must match exactly. Case sensitivity is observed. +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) SetCategories(value []string)() { + m.categories = value +} +// SetConsoleUri sets the consoleUri property value. The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/email-subscriptions/c4f8f464-ce09-4847-bfaa-e668de838c66") +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetDescription sets the description property value. Longer name or description of the subscription that can be provided as a tool tip or when hovering over a subscription in the microapp or plugin. +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) SetDescription(value *string)() { + m.description = value +} +// SetGroups sets the groups property value. Groups the email subscription is associated with. +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) SetGroups(value []V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groupsable)() { + m.groups = value +} +// SetServiceName sets the serviceName property value. The name of the service defining the subscription. This field along with Categories will uniquely identify an email subscription. +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse) SetServiceName(value *string)() { + m.serviceName = value +} +type V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetActivated()(*bool) + GetCategories()([]string) + GetConsoleUri()(*string) + GetDescription()(*string) + GetGroups()([]V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groupsable) + GetServiceName()(*string) + SetActivated(value *bool)() + SetCategories(value []string)() + SetConsoleUri(value *string)() + SetDescription(value *string)() + SetGroups(value []V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groupsable)() + SetServiceName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions_post_response_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions_post_response_escaped_groups.go new file mode 100644 index 0000000..830923f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions_post_response_escaped_groups.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // ID of the associated group + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the associated group + name *string +} +// NewV1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groups instantiates a new V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groups and sets the default values. +func NewV1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groups()(*V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groups) { + m := &V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. ID of the associated group +// returns a *UUID when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groups) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. ID of the associated group +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groups) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groups) SetName(value *string)() { + m.name = value +} +type V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions_response.go b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions_response.go new file mode 100644 index 0000000..451098d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_item_email_subscriptions_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1EmailSubscriptionsItemEmailSubscriptionsResponse common properties included in all resource models. +// Deprecated: This class is obsolete. Use V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponseable instead. +type V1beta1EmailSubscriptionsItemEmailSubscriptionsResponse struct { + V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse +} +// NewV1beta1EmailSubscriptionsItemEmailSubscriptionsResponse instantiates a new V1beta1EmailSubscriptionsItemEmailSubscriptionsResponse and sets the default values. +func NewV1beta1EmailSubscriptionsItemEmailSubscriptionsResponse()(*V1beta1EmailSubscriptionsItemEmailSubscriptionsResponse) { + m := &V1beta1EmailSubscriptionsItemEmailSubscriptionsResponse{ + V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse: *NewV1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponse(), + } + return m +} +// CreateV1beta1EmailSubscriptionsItemEmailSubscriptionsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1EmailSubscriptionsItemEmailSubscriptionsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1EmailSubscriptionsItemEmailSubscriptionsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponseable instead. +type V1beta1EmailSubscriptionsItemEmailSubscriptionsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1EmailSubscriptionsItemEmailSubscriptionsPostResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_request_builder.go new file mode 100644 index 0000000..6be01ca --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_request_builder.go @@ -0,0 +1,138 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" +) + +// V1beta1EmailSubscriptionsRequestBuilder builds and executes requests for operations under \data-services\v1beta1\email-subscriptions +type V1beta1EmailSubscriptionsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1EmailSubscriptionsRequestBuilderGetQueryParameters returns the email subscriptions currently defined in the application. The "activated" field for eachsubscription instance will be set to 'true' if the user has activated the subscription. The user is identified by the contents of the bearer token that is included in the request. +type V1beta1EmailSubscriptionsRequestBuilderGetQueryParameters struct { + // The filter query parameter is used to filter the set of email subscriptions returned in the response.The returned set of email subscriptions must match the criteria in the filter query parameter.A comparison compares a property name to a literal. The comparisons supported are the following: - “eq” : Is a property equal to value. Valid for number, boolean and string properties. - "contains" : Does a property have the text specified as a value Syntax: - “eq” : filter=\ eq \ - "contains" : filter=contains(name, 'Houston')User can include "and" to filter on multiple fields "filter=\ eq \ and contains(\,\)"Filters are supported on the following attributes: - name - serviceName - activated + Filter *string `uriparametername:"filter"` + // The number of results to return. Default limit is 12. + Limit *int32 `uriparametername:"limit"` + // The number of results to skip. This is used for paging results. Default offset is 0. + Offset *int32 `uriparametername:"offset"` + // A list of properties to include in the response. The service currently only supports specification of all fields. + Select *string `uriparametername:"select"` + // A comma separated list of properties to sort by, followed by a direction indicator ("asc" or "desc"). If no direction indicator is specified the default order is ascending. - e.g. "sort=name" is equivalent to "sort=name asc". Service currently only supports sorting by 1 property per request. Supported fields include:- name- serviceName- activatedEven though secondary sort is not supported, queries of the database will include a secondary sort by "name asc" to guarantee consistent paging behavior. Default sort is "name asc" if not specified by the user. + Sort *string `uriparametername:"sort"` +} +// V1beta1EmailSubscriptionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1EmailSubscriptionsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1EmailSubscriptionsRequestBuilderGetQueryParameters +} +// ById gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.emailSubscriptions.item collection +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. +// returns a *V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder when successful +func (m *V1beta1EmailSubscriptionsRequestBuilder) ById(id string)(*V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["id"] = id + } + return NewV1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ByIdGuid gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.emailSubscriptions.item collection +// returns a *V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder when successful +func (m *V1beta1EmailSubscriptionsRequestBuilder) ByIdGuid(id i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*V1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["id"] = id.String() + return NewV1beta1EmailSubscriptionsEmailSubscriptionsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1EmailSubscriptionsRequestBuilderInternal instantiates a new V1beta1EmailSubscriptionsRequestBuilder and sets the default values. +func NewV1beta1EmailSubscriptionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1EmailSubscriptionsRequestBuilder) { + m := &V1beta1EmailSubscriptionsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/email-subscriptions{?filter*,limit*,offset*,select*,sort*}", pathParameters), + } + return m +} +// NewV1beta1EmailSubscriptionsRequestBuilder instantiates a new V1beta1EmailSubscriptionsRequestBuilder and sets the default values. +func NewV1beta1EmailSubscriptionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1EmailSubscriptionsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1EmailSubscriptionsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns the email subscriptions currently defined in the application. The "activated" field for eachsubscription instance will be set to 'true' if the user has activated the subscription. The user is identified by the contents of the bearer token that is included in the request. +// Deprecated: This method is obsolete. Use GetAsEmailSubscriptionsGetResponse instead. +// returns a V1beta1EmailSubscriptionsResponseable when successful +// returns a V1beta1EmailSubscriptions400Error error when the service returns a 400 status code +// returns a V1beta1EmailSubscriptions401Error error when the service returns a 401 status code +// returns a V1beta1EmailSubscriptions503Error error when the service returns a 503 status code +func (m *V1beta1EmailSubscriptionsRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1EmailSubscriptionsRequestBuilderGetRequestConfiguration)(V1beta1EmailSubscriptionsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1EmailSubscriptions400ErrorFromDiscriminatorValue, + "401": CreateV1beta1EmailSubscriptions401ErrorFromDiscriminatorValue, + "503": CreateV1beta1EmailSubscriptions503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1EmailSubscriptionsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1EmailSubscriptionsResponseable), nil +} +// GetAsEmailSubscriptionsGetResponse returns the email subscriptions currently defined in the application. The "activated" field for eachsubscription instance will be set to 'true' if the user has activated the subscription. The user is identified by the contents of the bearer token that is included in the request. +// returns a V1beta1EmailSubscriptionsGetResponseable when successful +// returns a V1beta1EmailSubscriptions400Error error when the service returns a 400 status code +// returns a V1beta1EmailSubscriptions401Error error when the service returns a 401 status code +// returns a V1beta1EmailSubscriptions503Error error when the service returns a 503 status code +func (m *V1beta1EmailSubscriptionsRequestBuilder) GetAsEmailSubscriptionsGetResponse(ctx context.Context, requestConfiguration *V1beta1EmailSubscriptionsRequestBuilderGetRequestConfiguration)(V1beta1EmailSubscriptionsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1EmailSubscriptions400ErrorFromDiscriminatorValue, + "401": CreateV1beta1EmailSubscriptions401ErrorFromDiscriminatorValue, + "503": CreateV1beta1EmailSubscriptions503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1EmailSubscriptionsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1EmailSubscriptionsGetResponseable), nil +} +// ToGetRequestInformation returns the email subscriptions currently defined in the application. The "activated" field for eachsubscription instance will be set to 'true' if the user has activated the subscription. The user is identified by the contents of the bearer token that is included in the request. +// returns a *RequestInformation when successful +func (m *V1beta1EmailSubscriptionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1EmailSubscriptionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1EmailSubscriptionsRequestBuilder when successful +func (m *V1beta1EmailSubscriptionsRequestBuilder) WithUrl(rawUrl string)(*V1beta1EmailSubscriptionsRequestBuilder) { + return NewV1beta1EmailSubscriptionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_response.go b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_response.go new file mode 100644 index 0000000..df97937 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_email_subscriptions_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1EmailSubscriptionsGetResponseable instead. +type V1beta1EmailSubscriptionsResponse struct { + V1beta1EmailSubscriptionsGetResponse +} +// NewV1beta1EmailSubscriptionsResponse instantiates a new V1beta1EmailSubscriptionsResponse and sets the default values. +func NewV1beta1EmailSubscriptionsResponse()(*V1beta1EmailSubscriptionsResponse) { + m := &V1beta1EmailSubscriptionsResponse{ + V1beta1EmailSubscriptionsGetResponse: *NewV1beta1EmailSubscriptionsGetResponse(), + } + return m +} +// CreateV1beta1EmailSubscriptionsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1EmailSubscriptionsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1EmailSubscriptionsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1EmailSubscriptionsGetResponseable instead. +type V1beta1EmailSubscriptionsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1EmailSubscriptionsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_groups400_error.go new file mode 100644 index 0000000..bb26321 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups400_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Groups400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_BAD_REQUEST` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Groups400Error instantiates a new V1beta1Groups400Error and sets the default values. +func NewV1beta1Groups400Error()(*V1beta1Groups400Error) { + m := &V1beta1Groups400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Groups400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Groups400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Groups400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Groups400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Groups400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_BAD_REQUEST` +// returns a UntypedNodeable when successful +func (m *V1beta1Groups400Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Groups400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Groups400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Groups400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_BAD_REQUEST` +func (m *V1beta1Groups400Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Groups400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_groups403_error.go new file mode 100644 index 0000000..75e7831 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups403_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Groups403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_FORBIDDEN` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Groups403Error instantiates a new V1beta1Groups403Error and sets the default values. +func NewV1beta1Groups403Error()(*V1beta1Groups403Error) { + m := &V1beta1Groups403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Groups403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Groups403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Groups403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Groups403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Groups403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_FORBIDDEN` +// returns a UntypedNodeable when successful +func (m *V1beta1Groups403Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Groups403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Groups403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Groups403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_FORBIDDEN` +func (m *V1beta1Groups403Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Groups403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups409_error.go b/internal/sdk/dataservices/dataservices/v1beta1_groups409_error.go new file mode 100644 index 0000000..c354b2b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups409_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Groups409Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_CONFLICT` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Groups409Error instantiates a new V1beta1Groups409Error and sets the default values. +func NewV1beta1Groups409Error()(*V1beta1Groups409Error) { + m := &V1beta1Groups409Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Groups409ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Groups409ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Groups409Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Groups409Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Groups409Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_CONFLICT` +// returns a UntypedNodeable when successful +func (m *V1beta1Groups409Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Groups409Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Groups409Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Groups409Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_CONFLICT` +func (m *V1beta1Groups409Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Groups409Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_groups503_error.go new file mode 100644 index 0000000..dfc0d2b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups503_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Groups503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Groups503Error instantiates a new V1beta1Groups503Error and sets the default values. +func NewV1beta1Groups503Error()(*V1beta1Groups503Error) { + m := &V1beta1Groups503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Groups503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Groups503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Groups503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Groups503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Groups503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` +// returns a UntypedNodeable when successful +func (m *V1beta1Groups503Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Groups503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Groups503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Groups503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` +func (m *V1beta1Groups503Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Groups503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_get_response.go new file mode 100644 index 0000000..019121c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_get_response.go @@ -0,0 +1,92 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // If query yields results, they will be reported here + items []V1beta1GroupsGetResponse_itemsable +} +// NewV1beta1GroupsGetResponse instantiates a new V1beta1GroupsGetResponse and sets the default values. +func NewV1beta1GroupsGetResponse()(*V1beta1GroupsGetResponse) { + m := &V1beta1GroupsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1GroupsGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1GroupsGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1GroupsGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + return res +} +// GetItems gets the items property value. If query yields results, they will be reported here +// returns a []V1beta1GroupsGetResponse_itemsable when successful +func (m *V1beta1GroupsGetResponse) GetItems()([]V1beta1GroupsGetResponse_itemsable) { + return m.items +} +// Serialize serializes information the current object +func (m *V1beta1GroupsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetItems sets the items property value. If query yields results, they will be reported here +func (m *V1beta1GroupsGetResponse) SetItems(value []V1beta1GroupsGetResponse_itemsable)() { + m.items = value +} +type V1beta1GroupsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetItems()([]V1beta1GroupsGetResponse_itemsable) + SetItems(value []V1beta1GroupsGetResponse_itemsable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_get_response_escaped_items.go new file mode 100644 index 0000000..f414e46 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_get_response_escaped_items.go @@ -0,0 +1,470 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Array of resource type and count used to represent number of resources for a given typeassociated with a group. + associatedResourceTypes []V1beta1GroupsGetResponse_items_associatedResourceTypesable + // Count of total resources associated to this group + associationCount *int32 + // The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/groups/c4f8f464-ce09-4847-bfaa-e668de838c66") + consoleUri *string + // The time the group was created, conforming to the RFC-3339 format.All times are represented in UTC. + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Primary identifier for the customer (GUID) associated with the group. + customerId *string + // Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode + description *string + // A monotonically increasing value incremented every time the resource is updated + generation *int32 + // Type of group + groupType *int32 + // Unique identifer for the Group, required for all other Group operations.The generation of the 'id' will be the responsibility of this service. + id *string + // User will always provide a name for the group resource. It supports unicode. It must be unique within each customer ID. + name *string + // The "resourceUri" property identifies the resource's URI. The resourceUri value is a URI encoded string starting with the version of the API (e.g. "/data-services/v1beta1/groups/c4f8f464-ce09-4847-bfaa-e668de838c66"). + resourceUri *string + // The type of the resource. Used for grouping of like resources. + typeEscaped *string + // The last modification time, conforming to the RFC-3339 format.All times are represented in UTC. + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The user that performed the most recent modifying operation on the Group. + updatedBy *string +} +// NewV1beta1GroupsGetResponse_items instantiates a new V1beta1GroupsGetResponse_items and sets the default values. +func NewV1beta1GroupsGetResponse_items()(*V1beta1GroupsGetResponse_items) { + m := &V1beta1GroupsGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAssociatedResourceTypes gets the associatedResourceTypes property value. Array of resource type and count used to represent number of resources for a given typeassociated with a group. +// returns a []V1beta1GroupsGetResponse_items_associatedResourceTypesable when successful +func (m *V1beta1GroupsGetResponse_items) GetAssociatedResourceTypes()([]V1beta1GroupsGetResponse_items_associatedResourceTypesable) { + return m.associatedResourceTypes +} +// GetAssociationCount gets the associationCount property value. Count of total resources associated to this group +// returns a *int32 when successful +func (m *V1beta1GroupsGetResponse_items) GetAssociationCount()(*int32) { + return m.associationCount +} +// GetConsoleUri gets the consoleUri property value. The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/groups/c4f8f464-ce09-4847-bfaa-e668de838c66") +// returns a *string when successful +func (m *V1beta1GroupsGetResponse_items) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The time the group was created, conforming to the RFC-3339 format.All times are represented in UTC. +// returns a *Time when successful +func (m *V1beta1GroupsGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. Primary identifier for the customer (GUID) associated with the group. +// returns a *string when successful +func (m *V1beta1GroupsGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetDescription gets the description property value. Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode +// returns a *string when successful +func (m *V1beta1GroupsGetResponse_items) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["associatedResourceTypes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1GroupsGetResponse_items_associatedResourceTypesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1GroupsGetResponse_items_associatedResourceTypesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1GroupsGetResponse_items_associatedResourceTypesable) + } + } + m.SetAssociatedResourceTypes(res) + } + return nil + } + res["associationCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetAssociationCount(val) + } + return nil + } + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groupType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetGroupType(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + res["updatedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedBy(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value incremented every time the resource is updated +// returns a *int32 when successful +func (m *V1beta1GroupsGetResponse_items) GetGeneration()(*int32) { + return m.generation +} +// GetGroupType gets the groupType property value. Type of group +// returns a *int32 when successful +func (m *V1beta1GroupsGetResponse_items) GetGroupType()(*int32) { + return m.groupType +} +// GetId gets the id property value. Unique identifer for the Group, required for all other Group operations.The generation of the 'id' will be the responsibility of this service. +// returns a *string when successful +func (m *V1beta1GroupsGetResponse_items) GetId()(*string) { + return m.id +} +// GetName gets the name property value. User will always provide a name for the group resource. It supports unicode. It must be unique within each customer ID. +// returns a *string when successful +func (m *V1beta1GroupsGetResponse_items) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The "resourceUri" property identifies the resource's URI. The resourceUri value is a URI encoded string starting with the version of the API (e.g. "/data-services/v1beta1/groups/c4f8f464-ce09-4847-bfaa-e668de838c66"). +// returns a *string when successful +func (m *V1beta1GroupsGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of the resource. Used for grouping of like resources. +// returns a *string when successful +func (m *V1beta1GroupsGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The last modification time, conforming to the RFC-3339 format.All times are represented in UTC. +// returns a *Time when successful +func (m *V1beta1GroupsGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// GetUpdatedBy gets the updatedBy property value. The user that performed the most recent modifying operation on the Group. +// returns a *string when successful +func (m *V1beta1GroupsGetResponse_items) GetUpdatedBy()(*string) { + return m.updatedBy +} +// Serialize serializes information the current object +func (m *V1beta1GroupsGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAssociatedResourceTypes() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAssociatedResourceTypes())) + for i, v := range m.GetAssociatedResourceTypes() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("associatedResourceTypes", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("associationCount", m.GetAssociationCount()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("customerId", m.GetCustomerId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("generation", m.GetGeneration()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("groupType", m.GetGroupType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("updatedBy", m.GetUpdatedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAssociatedResourceTypes sets the associatedResourceTypes property value. Array of resource type and count used to represent number of resources for a given typeassociated with a group. +func (m *V1beta1GroupsGetResponse_items) SetAssociatedResourceTypes(value []V1beta1GroupsGetResponse_items_associatedResourceTypesable)() { + m.associatedResourceTypes = value +} +// SetAssociationCount sets the associationCount property value. Count of total resources associated to this group +func (m *V1beta1GroupsGetResponse_items) SetAssociationCount(value *int32)() { + m.associationCount = value +} +// SetConsoleUri sets the consoleUri property value. The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/groups/c4f8f464-ce09-4847-bfaa-e668de838c66") +func (m *V1beta1GroupsGetResponse_items) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The time the group was created, conforming to the RFC-3339 format.All times are represented in UTC. +func (m *V1beta1GroupsGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. Primary identifier for the customer (GUID) associated with the group. +func (m *V1beta1GroupsGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDescription sets the description property value. Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode +func (m *V1beta1GroupsGetResponse_items) SetDescription(value *string)() { + m.description = value +} +// SetGeneration sets the generation property value. A monotonically increasing value incremented every time the resource is updated +func (m *V1beta1GroupsGetResponse_items) SetGeneration(value *int32)() { + m.generation = value +} +// SetGroupType sets the groupType property value. Type of group +func (m *V1beta1GroupsGetResponse_items) SetGroupType(value *int32)() { + m.groupType = value +} +// SetId sets the id property value. Unique identifer for the Group, required for all other Group operations.The generation of the 'id' will be the responsibility of this service. +func (m *V1beta1GroupsGetResponse_items) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. User will always provide a name for the group resource. It supports unicode. It must be unique within each customer ID. +func (m *V1beta1GroupsGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The "resourceUri" property identifies the resource's URI. The resourceUri value is a URI encoded string starting with the version of the API (e.g. "/data-services/v1beta1/groups/c4f8f464-ce09-4847-bfaa-e668de838c66"). +func (m *V1beta1GroupsGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of the resource. Used for grouping of like resources. +func (m *V1beta1GroupsGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The last modification time, conforming to the RFC-3339 format.All times are represented in UTC. +func (m *V1beta1GroupsGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +// SetUpdatedBy sets the updatedBy property value. The user that performed the most recent modifying operation on the Group. +func (m *V1beta1GroupsGetResponse_items) SetUpdatedBy(value *string)() { + m.updatedBy = value +} +type V1beta1GroupsGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAssociatedResourceTypes()([]V1beta1GroupsGetResponse_items_associatedResourceTypesable) + GetAssociationCount()(*int32) + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDescription()(*string) + GetGeneration()(*int32) + GetGroupType()(*int32) + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetUpdatedBy()(*string) + SetAssociatedResourceTypes(value []V1beta1GroupsGetResponse_items_associatedResourceTypesable)() + SetAssociationCount(value *int32)() + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDescription(value *string)() + SetGeneration(value *int32)() + SetGroupType(value *int32)() + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetUpdatedBy(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_get_response_escaped_items_escaped_associated_resource_types.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_get_response_escaped_items_escaped_associated_resource_types.go new file mode 100644 index 0000000..258d388 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_get_response_escaped_items_escaped_associated_resource_types.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsGetResponse_items_associatedResourceTypes struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The number of resources of the specified type + count *int32 + // The type of the associated resource. Used for grouping of like resources + typeEscaped *string +} +// NewV1beta1GroupsGetResponse_items_associatedResourceTypes instantiates a new V1beta1GroupsGetResponse_items_associatedResourceTypes and sets the default values. +func NewV1beta1GroupsGetResponse_items_associatedResourceTypes()(*V1beta1GroupsGetResponse_items_associatedResourceTypes) { + m := &V1beta1GroupsGetResponse_items_associatedResourceTypes{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsGetResponse_items_associatedResourceTypesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsGetResponse_items_associatedResourceTypesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsGetResponse_items_associatedResourceTypes(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsGetResponse_items_associatedResourceTypes) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. The number of resources of the specified type +// returns a *int32 when successful +func (m *V1beta1GroupsGetResponse_items_associatedResourceTypes) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsGetResponse_items_associatedResourceTypes) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetTypeEscaped gets the type property value. The type of the associated resource. Used for grouping of like resources +// returns a *string when successful +func (m *V1beta1GroupsGetResponse_items_associatedResourceTypes) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1GroupsGetResponse_items_associatedResourceTypes) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsGetResponse_items_associatedResourceTypes) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. The number of resources of the specified type +func (m *V1beta1GroupsGetResponse_items_associatedResourceTypes) SetCount(value *int32)() { + m.count = value +} +// SetTypeEscaped sets the type property value. The type of the associated resource. Used for grouping of like resources +func (m *V1beta1GroupsGetResponse_items_associatedResourceTypes) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1GroupsGetResponse_items_associatedResourceTypesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetTypeEscaped()(*string) + SetCount(value *int32)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_groups_item_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_groups_item_request_builder.go new file mode 100644 index 0000000..6b1b359 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_groups_item_request_builder.go @@ -0,0 +1,230 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1GroupsGroupsItemRequestBuilder builds and executes requests for operations under \data-services\v1beta1\groups\{id} +type V1beta1GroupsGroupsItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1GroupsGroupsItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1GroupsGroupsItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// V1beta1GroupsGroupsItemRequestBuilderGetQueryParameters returns group for a customer +type V1beta1GroupsGroupsItemRequestBuilderGetQueryParameters struct { + // A list of properties to include in the response. Service currently only supports specification of all fields. + Select *string `uriparametername:"select"` +} +// V1beta1GroupsGroupsItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1GroupsGroupsItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1GroupsGroupsItemRequestBuilderGetQueryParameters +} +// V1beta1GroupsGroupsItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1GroupsGroupsItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// AssociatedResources the associatedResources property +// returns a *V1beta1GroupsItemAssociatedResourcesRequestBuilder when successful +func (m *V1beta1GroupsGroupsItemRequestBuilder) AssociatedResources()(*V1beta1GroupsItemAssociatedResourcesRequestBuilder) { + return NewV1beta1GroupsItemAssociatedResourcesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1GroupsGroupsItemRequestBuilderInternal instantiates a new V1beta1GroupsGroupsItemRequestBuilder and sets the default values. +func NewV1beta1GroupsGroupsItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1GroupsGroupsItemRequestBuilder) { + m := &V1beta1GroupsGroupsItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/groups/{id}{?select*}", pathParameters), + } + return m +} +// NewV1beta1GroupsGroupsItemRequestBuilder instantiates a new V1beta1GroupsGroupsItemRequestBuilder and sets the default values. +func NewV1beta1GroupsGroupsItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1GroupsGroupsItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1GroupsGroupsItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete a Specific Group. +// returns a V1beta1GroupsItemGroups403Error error when the service returns a 403 status code +// returns a V1beta1GroupsItemGroups404Error error when the service returns a 404 status code +// returns a V1beta1GroupsItemGroups409Error error when the service returns a 409 status code +// returns a V1beta1GroupsItemGroups503Error error when the service returns a 503 status code +func (m *V1beta1GroupsGroupsItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *V1beta1GroupsGroupsItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "403": CreateV1beta1GroupsItemGroups403ErrorFromDiscriminatorValue, + "404": CreateV1beta1GroupsItemGroups404ErrorFromDiscriminatorValue, + "409": CreateV1beta1GroupsItemGroups409ErrorFromDiscriminatorValue, + "503": CreateV1beta1GroupsItemGroups503ErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns group for a customer +// Deprecated: This method is obsolete. Use GetAsGroupsGetResponse instead. +// returns a V1beta1GroupsItemGroupsResponseable when successful +// returns a V1beta1GroupsItemGroups403Error error when the service returns a 403 status code +// returns a V1beta1GroupsItemGroups404Error error when the service returns a 404 status code +// returns a V1beta1GroupsItemGroups503Error error when the service returns a 503 status code +func (m *V1beta1GroupsGroupsItemRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1GroupsGroupsItemRequestBuilderGetRequestConfiguration)(V1beta1GroupsItemGroupsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "403": CreateV1beta1GroupsItemGroups403ErrorFromDiscriminatorValue, + "404": CreateV1beta1GroupsItemGroups404ErrorFromDiscriminatorValue, + "503": CreateV1beta1GroupsItemGroups503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1GroupsItemGroupsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1GroupsItemGroupsResponseable), nil +} +// GetAsGroupsGetResponse returns group for a customer +// returns a V1beta1GroupsItemGroupsGetResponseable when successful +// returns a V1beta1GroupsItemGroups403Error error when the service returns a 403 status code +// returns a V1beta1GroupsItemGroups404Error error when the service returns a 404 status code +// returns a V1beta1GroupsItemGroups503Error error when the service returns a 503 status code +func (m *V1beta1GroupsGroupsItemRequestBuilder) GetAsGroupsGetResponse(ctx context.Context, requestConfiguration *V1beta1GroupsGroupsItemRequestBuilderGetRequestConfiguration)(V1beta1GroupsItemGroupsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "403": CreateV1beta1GroupsItemGroups403ErrorFromDiscriminatorValue, + "404": CreateV1beta1GroupsItemGroups404ErrorFromDiscriminatorValue, + "503": CreateV1beta1GroupsItemGroups503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1GroupsItemGroupsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1GroupsItemGroupsGetResponseable), nil +} +// Patch update a Group. +// Deprecated: This method is obsolete. Use PatchAsGroupsPatchResponse instead. +// returns a V1beta1GroupsItemGroupsResponseable when successful +// returns a V1beta1GroupsItemGroups400Error error when the service returns a 400 status code +// returns a V1beta1GroupsItemGroups403Error error when the service returns a 403 status code +// returns a V1beta1GroupsItemGroups404Error error when the service returns a 404 status code +// returns a V1beta1GroupsItemGroups409Error error when the service returns a 409 status code +// returns a V1beta1GroupsItemGroups503Error error when the service returns a 503 status code +func (m *V1beta1GroupsGroupsItemRequestBuilder) Patch(ctx context.Context, body V1beta1GroupsItemGroupsPatchRequestBodyable, requestConfiguration *V1beta1GroupsGroupsItemRequestBuilderPatchRequestConfiguration)(V1beta1GroupsItemGroupsResponseable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1GroupsItemGroups400ErrorFromDiscriminatorValue, + "403": CreateV1beta1GroupsItemGroups403ErrorFromDiscriminatorValue, + "404": CreateV1beta1GroupsItemGroups404ErrorFromDiscriminatorValue, + "409": CreateV1beta1GroupsItemGroups409ErrorFromDiscriminatorValue, + "503": CreateV1beta1GroupsItemGroups503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1GroupsItemGroupsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1GroupsItemGroupsResponseable), nil +} +// PatchAsGroupsPatchResponse update a Group. +// returns a V1beta1GroupsItemGroupsPatchResponseable when successful +// returns a V1beta1GroupsItemGroups400Error error when the service returns a 400 status code +// returns a V1beta1GroupsItemGroups403Error error when the service returns a 403 status code +// returns a V1beta1GroupsItemGroups404Error error when the service returns a 404 status code +// returns a V1beta1GroupsItemGroups409Error error when the service returns a 409 status code +// returns a V1beta1GroupsItemGroups503Error error when the service returns a 503 status code +func (m *V1beta1GroupsGroupsItemRequestBuilder) PatchAsGroupsPatchResponse(ctx context.Context, body V1beta1GroupsItemGroupsPatchRequestBodyable, requestConfiguration *V1beta1GroupsGroupsItemRequestBuilderPatchRequestConfiguration)(V1beta1GroupsItemGroupsPatchResponseable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1GroupsItemGroups400ErrorFromDiscriminatorValue, + "403": CreateV1beta1GroupsItemGroups403ErrorFromDiscriminatorValue, + "404": CreateV1beta1GroupsItemGroups404ErrorFromDiscriminatorValue, + "409": CreateV1beta1GroupsItemGroups409ErrorFromDiscriminatorValue, + "503": CreateV1beta1GroupsItemGroups503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1GroupsItemGroupsPatchResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1GroupsItemGroupsPatchResponseable), nil +} +// ToDeleteRequestInformation delete a Specific Group. +// returns a *RequestInformation when successful +func (m *V1beta1GroupsGroupsItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *V1beta1GroupsGroupsItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation returns group for a customer +// returns a *RequestInformation when successful +func (m *V1beta1GroupsGroupsItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1GroupsGroupsItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update a Group. +// returns a *RequestInformation when successful +func (m *V1beta1GroupsGroupsItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body V1beta1GroupsItemGroupsPatchRequestBodyable, requestConfiguration *V1beta1GroupsGroupsItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/merge-patch+json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1GroupsGroupsItemRequestBuilder when successful +func (m *V1beta1GroupsGroupsItemRequestBuilder) WithUrl(rawUrl string)(*V1beta1GroupsGroupsItemRequestBuilder) { + return NewV1beta1GroupsGroupsItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources400_error.go new file mode 100644 index 0000000..da50c51 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources400_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemAssociatedResources400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_BAD_REQUEST` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1GroupsItemAssociatedResources400Error instantiates a new V1beta1GroupsItemAssociatedResources400Error and sets the default values. +func NewV1beta1GroupsItemAssociatedResources400Error()(*V1beta1GroupsItemAssociatedResources400Error) { + m := &V1beta1GroupsItemAssociatedResources400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemAssociatedResources400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemAssociatedResources400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemAssociatedResources400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1GroupsItemAssociatedResources400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemAssociatedResources400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_BAD_REQUEST` +// returns a UntypedNodeable when successful +func (m *V1beta1GroupsItemAssociatedResources400Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemAssociatedResources400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemAssociatedResources400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemAssociatedResources400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_BAD_REQUEST` +func (m *V1beta1GroupsItemAssociatedResources400Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1GroupsItemAssociatedResources400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources403_error.go new file mode 100644 index 0000000..8cf373a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources403_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemAssociatedResources403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_FORBIDDEN` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1GroupsItemAssociatedResources403Error instantiates a new V1beta1GroupsItemAssociatedResources403Error and sets the default values. +func NewV1beta1GroupsItemAssociatedResources403Error()(*V1beta1GroupsItemAssociatedResources403Error) { + m := &V1beta1GroupsItemAssociatedResources403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemAssociatedResources403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemAssociatedResources403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemAssociatedResources403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1GroupsItemAssociatedResources403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemAssociatedResources403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_FORBIDDEN` +// returns a UntypedNodeable when successful +func (m *V1beta1GroupsItemAssociatedResources403Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemAssociatedResources403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemAssociatedResources403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemAssociatedResources403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_FORBIDDEN` +func (m *V1beta1GroupsItemAssociatedResources403Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1GroupsItemAssociatedResources403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources404_error.go new file mode 100644 index 0000000..63e28af --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources404_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemAssociatedResources404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_NOT_FOUND` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1GroupsItemAssociatedResources404Error instantiates a new V1beta1GroupsItemAssociatedResources404Error and sets the default values. +func NewV1beta1GroupsItemAssociatedResources404Error()(*V1beta1GroupsItemAssociatedResources404Error) { + m := &V1beta1GroupsItemAssociatedResources404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemAssociatedResources404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemAssociatedResources404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemAssociatedResources404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1GroupsItemAssociatedResources404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemAssociatedResources404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_NOT_FOUND` +// returns a UntypedNodeable when successful +func (m *V1beta1GroupsItemAssociatedResources404Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemAssociatedResources404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemAssociatedResources404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemAssociatedResources404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_NOT_FOUND` +func (m *V1beta1GroupsItemAssociatedResources404Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1GroupsItemAssociatedResources404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources503_error.go new file mode 100644 index 0000000..5914861 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources503_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemAssociatedResources503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1GroupsItemAssociatedResources503Error instantiates a new V1beta1GroupsItemAssociatedResources503Error and sets the default values. +func NewV1beta1GroupsItemAssociatedResources503Error()(*V1beta1GroupsItemAssociatedResources503Error) { + m := &V1beta1GroupsItemAssociatedResources503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemAssociatedResources503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemAssociatedResources503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemAssociatedResources503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1GroupsItemAssociatedResources503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemAssociatedResources503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` +// returns a UntypedNodeable when successful +func (m *V1beta1GroupsItemAssociatedResources503Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemAssociatedResources503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemAssociatedResources503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemAssociatedResources503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` +func (m *V1beta1GroupsItemAssociatedResources503Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1GroupsItemAssociatedResources503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_get_response.go new file mode 100644 index 0000000..a57b264 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_get_response.go @@ -0,0 +1,92 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemAssociatedResourcesGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // If query yields results, they will be reported here + items []V1beta1GroupsItemAssociatedResourcesGetResponse_itemsable +} +// NewV1beta1GroupsItemAssociatedResourcesGetResponse instantiates a new V1beta1GroupsItemAssociatedResourcesGetResponse and sets the default values. +func NewV1beta1GroupsItemAssociatedResourcesGetResponse()(*V1beta1GroupsItemAssociatedResourcesGetResponse) { + m := &V1beta1GroupsItemAssociatedResourcesGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemAssociatedResourcesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemAssociatedResourcesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemAssociatedResourcesGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1GroupsItemAssociatedResourcesGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1GroupsItemAssociatedResourcesGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1GroupsItemAssociatedResourcesGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + return res +} +// GetItems gets the items property value. If query yields results, they will be reported here +// returns a []V1beta1GroupsItemAssociatedResourcesGetResponse_itemsable when successful +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse) GetItems()([]V1beta1GroupsItemAssociatedResourcesGetResponse_itemsable) { + return m.items +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetItems sets the items property value. If query yields results, they will be reported here +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse) SetItems(value []V1beta1GroupsItemAssociatedResourcesGetResponse_itemsable)() { + m.items = value +} +type V1beta1GroupsItemAssociatedResourcesGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetItems()([]V1beta1GroupsItemAssociatedResourcesGetResponse_itemsable) + SetItems(value []V1beta1GroupsItemAssociatedResourcesGetResponse_itemsable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_get_response_escaped_items.go new file mode 100644 index 0000000..a907ec8 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_get_response_escaped_items.go @@ -0,0 +1,225 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemAssociatedResourcesGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The URI for console screen that displays this resource + consoleUri *string + // Primary identifier for the customer (GUID) associated with the group. + customerId *string + // Unique identifer for the associated resource, usually a UUID + id *string + // name could be name/displayName of the resource. It is upto the resource-service to send nameor displayName for this field. + name *string + // The 'self' reference for this resource. This is must be unique within the scope DSCC + resourceUri *string + // The type of the associated resource. Used for grouping of like resources + typeEscaped *string +} +// NewV1beta1GroupsItemAssociatedResourcesGetResponse_items instantiates a new V1beta1GroupsItemAssociatedResourcesGetResponse_items and sets the default values. +func NewV1beta1GroupsItemAssociatedResourcesGetResponse_items()(*V1beta1GroupsItemAssociatedResourcesGetResponse_items) { + m := &V1beta1GroupsItemAssociatedResourcesGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemAssociatedResourcesGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemAssociatedResourcesGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemAssociatedResourcesGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetConsoleUri gets the consoleUri property value. The URI for console screen that displays this resource +// returns a *string when successful +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCustomerId gets the customerId property value. Primary identifier for the customer (GUID) associated with the group. +// returns a *string when successful +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. Unique identifer for the associated resource, usually a UUID +// returns a *string when successful +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) GetId()(*string) { + return m.id +} +// GetName gets the name property value. name could be name/displayName of the resource. It is upto the resource-service to send nameor displayName for this field. +// returns a *string when successful +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The 'self' reference for this resource. This is must be unique within the scope DSCC +// returns a *string when successful +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of the associated resource. Used for grouping of like resources +// returns a *string when successful +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("customerId", m.GetCustomerId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetConsoleUri sets the consoleUri property value. The URI for console screen that displays this resource +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCustomerId sets the customerId property value. Primary identifier for the customer (GUID) associated with the group. +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetId sets the id property value. Unique identifer for the associated resource, usually a UUID +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. name could be name/displayName of the resource. It is upto the resource-service to send nameor displayName for this field. +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The 'self' reference for this resource. This is must be unique within the scope DSCC +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of the associated resource. Used for grouping of like resources +func (m *V1beta1GroupsItemAssociatedResourcesGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1GroupsItemAssociatedResourcesGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConsoleUri()(*string) + GetCustomerId()(*string) + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetConsoleUri(value *string)() + SetCustomerId(value *string)() + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_request_builder.go new file mode 100644 index 0000000..6bf06c5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_request_builder.go @@ -0,0 +1,118 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1GroupsItemAssociatedResourcesRequestBuilder builds and executes requests for operations under \data-services\v1beta1\groups\{id}\associated-resources +type V1beta1GroupsItemAssociatedResourcesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1GroupsItemAssociatedResourcesRequestBuilderGetQueryParameters returns list of resources associated with a specific group. +type V1beta1GroupsItemAssociatedResourcesRequestBuilderGetQueryParameters struct { + // The filter query parameter is used to filter the set of resources returned in the response.The returned set of resources must match the criteria in the filter query parameterA comparison compares a property name to a literal. The comparisons supported are the following: - “eq” : Is a property equal to value. Valid for number, boolean and string properties. - "contains" : Does a property have the text specified as a valueSyntax: - “eq” : filter=\ eq \ - "contains" : filter=contains(type, 'vol') User can include 'and' to filter on multiple fields "filter=type eq volume and contains(name, 'MyVolume')Filters are supported on following attributes: - type - name + Filter *string `uriparametername:"filter"` + // The number of results to return. Default limit is 12, if not specified by the user. + Limit *int32 `uriparametername:"limit"` + // The number of results to skip. This is used for paging results. Default offset is 0, if notspecified by the user. + Offset *int32 `uriparametername:"offset"` + // A list of properties to include in the response. Currently only support specification of all fields: + Select *string `uriparametername:"select"` + // A comma separated list of properties to sort by, followed by a direction indicator ("asc" or "desc"). If no direction indicator is specified the default order is ascending. - e.g. "sort=type desc". Currently only supportsorting by 1 property per request. Supported fields include:- type- nameEven though secondary sort is not supported, queries of the database will include a secondary sort by "name asc" to guarantee consistent paging behavior. Of course, there will no secondary sort if user specified "name" as the sorting field.Default sort is "name asc" if not specified by the user. + Sort *string `uriparametername:"sort"` +} +// V1beta1GroupsItemAssociatedResourcesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1GroupsItemAssociatedResourcesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1GroupsItemAssociatedResourcesRequestBuilderGetQueryParameters +} +// NewV1beta1GroupsItemAssociatedResourcesRequestBuilderInternal instantiates a new V1beta1GroupsItemAssociatedResourcesRequestBuilder and sets the default values. +func NewV1beta1GroupsItemAssociatedResourcesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1GroupsItemAssociatedResourcesRequestBuilder) { + m := &V1beta1GroupsItemAssociatedResourcesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/groups/{id}/associated-resources{?filter*,limit*,offset*,select*,sort*}", pathParameters), + } + return m +} +// NewV1beta1GroupsItemAssociatedResourcesRequestBuilder instantiates a new V1beta1GroupsItemAssociatedResourcesRequestBuilder and sets the default values. +func NewV1beta1GroupsItemAssociatedResourcesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1GroupsItemAssociatedResourcesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1GroupsItemAssociatedResourcesRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns list of resources associated with a specific group. +// Deprecated: This method is obsolete. Use GetAsAssociatedResourcesGetResponse instead. +// returns a V1beta1GroupsItemAssociatedResourcesResponseable when successful +// returns a V1beta1GroupsItemAssociatedResources400Error error when the service returns a 400 status code +// returns a V1beta1GroupsItemAssociatedResources403Error error when the service returns a 403 status code +// returns a V1beta1GroupsItemAssociatedResources404Error error when the service returns a 404 status code +// returns a V1beta1GroupsItemAssociatedResources503Error error when the service returns a 503 status code +func (m *V1beta1GroupsItemAssociatedResourcesRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1GroupsItemAssociatedResourcesRequestBuilderGetRequestConfiguration)(V1beta1GroupsItemAssociatedResourcesResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1GroupsItemAssociatedResources400ErrorFromDiscriminatorValue, + "403": CreateV1beta1GroupsItemAssociatedResources403ErrorFromDiscriminatorValue, + "404": CreateV1beta1GroupsItemAssociatedResources404ErrorFromDiscriminatorValue, + "503": CreateV1beta1GroupsItemAssociatedResources503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1GroupsItemAssociatedResourcesResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1GroupsItemAssociatedResourcesResponseable), nil +} +// GetAsAssociatedResourcesGetResponse returns list of resources associated with a specific group. +// returns a V1beta1GroupsItemAssociatedResourcesGetResponseable when successful +// returns a V1beta1GroupsItemAssociatedResources400Error error when the service returns a 400 status code +// returns a V1beta1GroupsItemAssociatedResources403Error error when the service returns a 403 status code +// returns a V1beta1GroupsItemAssociatedResources404Error error when the service returns a 404 status code +// returns a V1beta1GroupsItemAssociatedResources503Error error when the service returns a 503 status code +func (m *V1beta1GroupsItemAssociatedResourcesRequestBuilder) GetAsAssociatedResourcesGetResponse(ctx context.Context, requestConfiguration *V1beta1GroupsItemAssociatedResourcesRequestBuilderGetRequestConfiguration)(V1beta1GroupsItemAssociatedResourcesGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1GroupsItemAssociatedResources400ErrorFromDiscriminatorValue, + "403": CreateV1beta1GroupsItemAssociatedResources403ErrorFromDiscriminatorValue, + "404": CreateV1beta1GroupsItemAssociatedResources404ErrorFromDiscriminatorValue, + "503": CreateV1beta1GroupsItemAssociatedResources503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1GroupsItemAssociatedResourcesGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1GroupsItemAssociatedResourcesGetResponseable), nil +} +// ToGetRequestInformation returns list of resources associated with a specific group. +// returns a *RequestInformation when successful +func (m *V1beta1GroupsItemAssociatedResourcesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1GroupsItemAssociatedResourcesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1GroupsItemAssociatedResourcesRequestBuilder when successful +func (m *V1beta1GroupsItemAssociatedResourcesRequestBuilder) WithUrl(rawUrl string)(*V1beta1GroupsItemAssociatedResourcesRequestBuilder) { + return NewV1beta1GroupsItemAssociatedResourcesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_response.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_response.go new file mode 100644 index 0000000..5bd8615 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_associated_resources_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1GroupsItemAssociatedResourcesGetResponseable instead. +type V1beta1GroupsItemAssociatedResourcesResponse struct { + V1beta1GroupsItemAssociatedResourcesGetResponse +} +// NewV1beta1GroupsItemAssociatedResourcesResponse instantiates a new V1beta1GroupsItemAssociatedResourcesResponse and sets the default values. +func NewV1beta1GroupsItemAssociatedResourcesResponse()(*V1beta1GroupsItemAssociatedResourcesResponse) { + m := &V1beta1GroupsItemAssociatedResourcesResponse{ + V1beta1GroupsItemAssociatedResourcesGetResponse: *NewV1beta1GroupsItemAssociatedResourcesGetResponse(), + } + return m +} +// CreateV1beta1GroupsItemAssociatedResourcesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemAssociatedResourcesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemAssociatedResourcesResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1GroupsItemAssociatedResourcesGetResponseable instead. +type V1beta1GroupsItemAssociatedResourcesResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1GroupsItemAssociatedResourcesGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups400_error.go new file mode 100644 index 0000000..d34ba26 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups400_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemGroups400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_BAD_REQUEST` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1GroupsItemGroups400Error instantiates a new V1beta1GroupsItemGroups400Error and sets the default values. +func NewV1beta1GroupsItemGroups400Error()(*V1beta1GroupsItemGroups400Error) { + m := &V1beta1GroupsItemGroups400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemGroups400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemGroups400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemGroups400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1GroupsItemGroups400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemGroups400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_BAD_REQUEST` +// returns a UntypedNodeable when successful +func (m *V1beta1GroupsItemGroups400Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemGroups400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemGroups400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemGroups400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_BAD_REQUEST` +func (m *V1beta1GroupsItemGroups400Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1GroupsItemGroups400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups403_error.go new file mode 100644 index 0000000..0486a98 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups403_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemGroups403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_FORBIDDEN` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1GroupsItemGroups403Error instantiates a new V1beta1GroupsItemGroups403Error and sets the default values. +func NewV1beta1GroupsItemGroups403Error()(*V1beta1GroupsItemGroups403Error) { + m := &V1beta1GroupsItemGroups403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemGroups403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemGroups403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemGroups403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1GroupsItemGroups403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemGroups403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_FORBIDDEN` +// returns a UntypedNodeable when successful +func (m *V1beta1GroupsItemGroups403Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemGroups403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemGroups403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemGroups403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_FORBIDDEN` +func (m *V1beta1GroupsItemGroups403Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1GroupsItemGroups403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups404_error.go new file mode 100644 index 0000000..183b6f8 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups404_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemGroups404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_NOT_FOUND` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1GroupsItemGroups404Error instantiates a new V1beta1GroupsItemGroups404Error and sets the default values. +func NewV1beta1GroupsItemGroups404Error()(*V1beta1GroupsItemGroups404Error) { + m := &V1beta1GroupsItemGroups404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemGroups404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemGroups404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemGroups404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1GroupsItemGroups404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemGroups404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_NOT_FOUND` +// returns a UntypedNodeable when successful +func (m *V1beta1GroupsItemGroups404Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemGroups404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemGroups404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemGroups404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_NOT_FOUND` +func (m *V1beta1GroupsItemGroups404Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1GroupsItemGroups404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups409_error.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups409_error.go new file mode 100644 index 0000000..57c8577 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups409_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemGroups409Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_CONFLICT` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1GroupsItemGroups409Error instantiates a new V1beta1GroupsItemGroups409Error and sets the default values. +func NewV1beta1GroupsItemGroups409Error()(*V1beta1GroupsItemGroups409Error) { + m := &V1beta1GroupsItemGroups409Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemGroups409ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemGroups409ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemGroups409Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1GroupsItemGroups409Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemGroups409Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_CONFLICT` +// returns a UntypedNodeable when successful +func (m *V1beta1GroupsItemGroups409Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemGroups409Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemGroups409Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemGroups409Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_CONFLICT` +func (m *V1beta1GroupsItemGroups409Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1GroupsItemGroups409Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups503_error.go new file mode 100644 index 0000000..4b1b2e5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups503_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemGroups503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1GroupsItemGroups503Error instantiates a new V1beta1GroupsItemGroups503Error and sets the default values. +func NewV1beta1GroupsItemGroups503Error()(*V1beta1GroupsItemGroups503Error) { + m := &V1beta1GroupsItemGroups503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemGroups503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemGroups503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemGroups503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1GroupsItemGroups503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemGroups503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` +// returns a UntypedNodeable when successful +func (m *V1beta1GroupsItemGroups503Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemGroups503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemGroups503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemGroups503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` +func (m *V1beta1GroupsItemGroups503Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1GroupsItemGroups503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_get_response.go new file mode 100644 index 0000000..ca554d2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_get_response.go @@ -0,0 +1,470 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemGroupsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Array of resource type and count used to represent number of resources for a given typeassociated with a group. + associatedResourceTypes []V1beta1GroupsItemGroupsGetResponse_associatedResourceTypesable + // Count of total resources associated to this group + associationCount *int32 + // The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/groups/c4f8f464-ce09-4847-bfaa-e668de838c66") + consoleUri *string + // The time the group was created, conforming to the RFC-3339 format.All times are represented in UTC. + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Primary identifier for the customer (GUID) associated with the group. + customerId *string + // Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode + description *string + // A monotonically increasing value incremented every time the resource is updated + generation *int32 + // Type of group + groupType *int32 + // Unique identifer for the Group, required for all other Group operations.The generation of the 'id' will be the responsibility of this service. + id *string + // User will always provide a name for the group resource. It supports unicode. It must be unique within each customer ID. + name *string + // The "resourceUri" property identifies the resource's URI. The resourceUri value is a URI encoded string starting with the version of the API (e.g. "/data-services/v1beta1/groups/c4f8f464-ce09-4847-bfaa-e668de838c66"). + resourceUri *string + // The type of the resource. Used for grouping of like resources. + typeEscaped *string + // The last modification time, conforming to the RFC-3339 format.All times are represented in UTC. + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The user that performed the most recent modifying operation on the Group. + updatedBy *string +} +// NewV1beta1GroupsItemGroupsGetResponse instantiates a new V1beta1GroupsItemGroupsGetResponse and sets the default values. +func NewV1beta1GroupsItemGroupsGetResponse()(*V1beta1GroupsItemGroupsGetResponse) { + m := &V1beta1GroupsItemGroupsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemGroupsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemGroupsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemGroupsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAssociatedResourceTypes gets the associatedResourceTypes property value. Array of resource type and count used to represent number of resources for a given typeassociated with a group. +// returns a []V1beta1GroupsItemGroupsGetResponse_associatedResourceTypesable when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetAssociatedResourceTypes()([]V1beta1GroupsItemGroupsGetResponse_associatedResourceTypesable) { + return m.associatedResourceTypes +} +// GetAssociationCount gets the associationCount property value. Count of total resources associated to this group +// returns a *int32 when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetAssociationCount()(*int32) { + return m.associationCount +} +// GetConsoleUri gets the consoleUri property value. The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/groups/c4f8f464-ce09-4847-bfaa-e668de838c66") +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The time the group was created, conforming to the RFC-3339 format.All times are represented in UTC. +// returns a *Time when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. Primary identifier for the customer (GUID) associated with the group. +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDescription gets the description property value. Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["associatedResourceTypes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1GroupsItemGroupsGetResponse_associatedResourceTypesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1GroupsItemGroupsGetResponse_associatedResourceTypesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1GroupsItemGroupsGetResponse_associatedResourceTypesable) + } + } + m.SetAssociatedResourceTypes(res) + } + return nil + } + res["associationCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetAssociationCount(val) + } + return nil + } + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groupType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetGroupType(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + res["updatedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedBy(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value incremented every time the resource is updated +// returns a *int32 when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetGeneration()(*int32) { + return m.generation +} +// GetGroupType gets the groupType property value. Type of group +// returns a *int32 when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetGroupType()(*int32) { + return m.groupType +} +// GetId gets the id property value. Unique identifer for the Group, required for all other Group operations.The generation of the 'id' will be the responsibility of this service. +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetId()(*string) { + return m.id +} +// GetName gets the name property value. User will always provide a name for the group resource. It supports unicode. It must be unique within each customer ID. +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The "resourceUri" property identifies the resource's URI. The resourceUri value is a URI encoded string starting with the version of the API (e.g. "/data-services/v1beta1/groups/c4f8f464-ce09-4847-bfaa-e668de838c66"). +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of the resource. Used for grouping of like resources. +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The last modification time, conforming to the RFC-3339 format.All times are represented in UTC. +// returns a *Time when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// GetUpdatedBy gets the updatedBy property value. The user that performed the most recent modifying operation on the Group. +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsGetResponse) GetUpdatedBy()(*string) { + return m.updatedBy +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemGroupsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAssociatedResourceTypes() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAssociatedResourceTypes())) + for i, v := range m.GetAssociatedResourceTypes() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("associatedResourceTypes", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("associationCount", m.GetAssociationCount()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("customerId", m.GetCustomerId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("generation", m.GetGeneration()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("groupType", m.GetGroupType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("updatedBy", m.GetUpdatedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemGroupsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAssociatedResourceTypes sets the associatedResourceTypes property value. Array of resource type and count used to represent number of resources for a given typeassociated with a group. +func (m *V1beta1GroupsItemGroupsGetResponse) SetAssociatedResourceTypes(value []V1beta1GroupsItemGroupsGetResponse_associatedResourceTypesable)() { + m.associatedResourceTypes = value +} +// SetAssociationCount sets the associationCount property value. Count of total resources associated to this group +func (m *V1beta1GroupsItemGroupsGetResponse) SetAssociationCount(value *int32)() { + m.associationCount = value +} +// SetConsoleUri sets the consoleUri property value. The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/groups/c4f8f464-ce09-4847-bfaa-e668de838c66") +func (m *V1beta1GroupsItemGroupsGetResponse) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The time the group was created, conforming to the RFC-3339 format.All times are represented in UTC. +func (m *V1beta1GroupsItemGroupsGetResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. Primary identifier for the customer (GUID) associated with the group. +func (m *V1beta1GroupsItemGroupsGetResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDescription sets the description property value. Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode +func (m *V1beta1GroupsItemGroupsGetResponse) SetDescription(value *string)() { + m.description = value +} +// SetGeneration sets the generation property value. A monotonically increasing value incremented every time the resource is updated +func (m *V1beta1GroupsItemGroupsGetResponse) SetGeneration(value *int32)() { + m.generation = value +} +// SetGroupType sets the groupType property value. Type of group +func (m *V1beta1GroupsItemGroupsGetResponse) SetGroupType(value *int32)() { + m.groupType = value +} +// SetId sets the id property value. Unique identifer for the Group, required for all other Group operations.The generation of the 'id' will be the responsibility of this service. +func (m *V1beta1GroupsItemGroupsGetResponse) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. User will always provide a name for the group resource. It supports unicode. It must be unique within each customer ID. +func (m *V1beta1GroupsItemGroupsGetResponse) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The "resourceUri" property identifies the resource's URI. The resourceUri value is a URI encoded string starting with the version of the API (e.g. "/data-services/v1beta1/groups/c4f8f464-ce09-4847-bfaa-e668de838c66"). +func (m *V1beta1GroupsItemGroupsGetResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of the resource. Used for grouping of like resources. +func (m *V1beta1GroupsItemGroupsGetResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The last modification time, conforming to the RFC-3339 format.All times are represented in UTC. +func (m *V1beta1GroupsItemGroupsGetResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +// SetUpdatedBy sets the updatedBy property value. The user that performed the most recent modifying operation on the Group. +func (m *V1beta1GroupsItemGroupsGetResponse) SetUpdatedBy(value *string)() { + m.updatedBy = value +} +type V1beta1GroupsItemGroupsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAssociatedResourceTypes()([]V1beta1GroupsItemGroupsGetResponse_associatedResourceTypesable) + GetAssociationCount()(*int32) + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDescription()(*string) + GetGeneration()(*int32) + GetGroupType()(*int32) + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetUpdatedBy()(*string) + SetAssociatedResourceTypes(value []V1beta1GroupsItemGroupsGetResponse_associatedResourceTypesable)() + SetAssociationCount(value *int32)() + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDescription(value *string)() + SetGeneration(value *int32)() + SetGroupType(value *int32)() + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetUpdatedBy(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_get_response_escaped_associated_resource_types.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_get_response_escaped_associated_resource_types.go new file mode 100644 index 0000000..f9a3490 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_get_response_escaped_associated_resource_types.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemGroupsGetResponse_associatedResourceTypes struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The number of resources of the specified type + count *int32 + // The type of the associated resource. Used for grouping of like resources + typeEscaped *string +} +// NewV1beta1GroupsItemGroupsGetResponse_associatedResourceTypes instantiates a new V1beta1GroupsItemGroupsGetResponse_associatedResourceTypes and sets the default values. +func NewV1beta1GroupsItemGroupsGetResponse_associatedResourceTypes()(*V1beta1GroupsItemGroupsGetResponse_associatedResourceTypes) { + m := &V1beta1GroupsItemGroupsGetResponse_associatedResourceTypes{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemGroupsGetResponse_associatedResourceTypesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemGroupsGetResponse_associatedResourceTypesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemGroupsGetResponse_associatedResourceTypes(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemGroupsGetResponse_associatedResourceTypes) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. The number of resources of the specified type +// returns a *int32 when successful +func (m *V1beta1GroupsItemGroupsGetResponse_associatedResourceTypes) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemGroupsGetResponse_associatedResourceTypes) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetTypeEscaped gets the type property value. The type of the associated resource. Used for grouping of like resources +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsGetResponse_associatedResourceTypes) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemGroupsGetResponse_associatedResourceTypes) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemGroupsGetResponse_associatedResourceTypes) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. The number of resources of the specified type +func (m *V1beta1GroupsItemGroupsGetResponse_associatedResourceTypes) SetCount(value *int32)() { + m.count = value +} +// SetTypeEscaped sets the type property value. The type of the associated resource. Used for grouping of like resources +func (m *V1beta1GroupsItemGroupsGetResponse_associatedResourceTypes) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1GroupsItemGroupsGetResponse_associatedResourceTypesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetTypeEscaped()(*string) + SetCount(value *int32)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_patch_request_body.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_patch_request_body.go new file mode 100644 index 0000000..0bd9321 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_patch_request_body.go @@ -0,0 +1,138 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemGroupsPatchRequestBody struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode + description *string + // User can provide a new name, description, or both. A new name must be unique within the customer space. + name *string + // The path property + path *string +} +// NewV1beta1GroupsItemGroupsPatchRequestBody instantiates a new V1beta1GroupsItemGroupsPatchRequestBody and sets the default values. +func NewV1beta1GroupsItemGroupsPatchRequestBody()(*V1beta1GroupsItemGroupsPatchRequestBody) { + m := &V1beta1GroupsItemGroupsPatchRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemGroupsPatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemGroupsPatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemGroupsPatchRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemGroupsPatchRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDescription gets the description property value. Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsPatchRequestBody) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemGroupsPatchRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["path"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPath(val) + } + return nil + } + return res +} +// GetName gets the name property value. User can provide a new name, description, or both. A new name must be unique within the customer space. +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsPatchRequestBody) GetName()(*string) { + return m.name +} +// GetPath gets the path property value. The path property +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsPatchRequestBody) GetPath()(*string) { + return m.path +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemGroupsPatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("path", m.GetPath()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemGroupsPatchRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDescription sets the description property value. Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode +func (m *V1beta1GroupsItemGroupsPatchRequestBody) SetDescription(value *string)() { + m.description = value +} +// SetName sets the name property value. User can provide a new name, description, or both. A new name must be unique within the customer space. +func (m *V1beta1GroupsItemGroupsPatchRequestBody) SetName(value *string)() { + m.name = value +} +// SetPath sets the path property value. The path property +func (m *V1beta1GroupsItemGroupsPatchRequestBody) SetPath(value *string)() { + m.path = value +} +type V1beta1GroupsItemGroupsPatchRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDescription()(*string) + GetName()(*string) + GetPath()(*string) + SetDescription(value *string)() + SetName(value *string)() + SetPath(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_patch_response.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_patch_response.go new file mode 100644 index 0000000..0dddc95 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_patch_response.go @@ -0,0 +1,470 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemGroupsPatchResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Array of resource type and count used to represent number of resources for a given typeassociated with a group. + associatedResourceTypes []V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypesable + // Count of total resources associated to this group + associationCount *int32 + // The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/groups/c4f8f464-ce09-4847-bfaa-e668de838c66") + consoleUri *string + // The time the group was created, conforming to the RFC-3339 format.All times are represented in UTC. + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Primary identifier for the customer (GUID) associated with the group. + customerId *string + // Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode + description *string + // A monotonically increasing value incremented every time the resource is updated + generation *int32 + // Type of group + groupType *int32 + // Unique identifer for the Group, required for all other Group operations.The generation of the 'id' will be the responsibility of this service. + id *string + // User will always provide a name for the group resource. It supports unicode. It must be unique within each customer ID. + name *string + // The "resourceUri" property identifies the resource's URI. The resourceUri value is a URI encoded string starting with the version of the API (e.g. "/data-services/v1beta1/groups/c4f8f464-ce09-4847-bfaa-e668de838c66"). + resourceUri *string + // The type of the resource. Used for grouping of like resources. + typeEscaped *string + // The last modification time, conforming to the RFC-3339 format.All times are represented in UTC. + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The user that performed the most recent modifying operation on the Group. + updatedBy *string +} +// NewV1beta1GroupsItemGroupsPatchResponse instantiates a new V1beta1GroupsItemGroupsPatchResponse and sets the default values. +func NewV1beta1GroupsItemGroupsPatchResponse()(*V1beta1GroupsItemGroupsPatchResponse) { + m := &V1beta1GroupsItemGroupsPatchResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemGroupsPatchResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemGroupsPatchResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemGroupsPatchResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAssociatedResourceTypes gets the associatedResourceTypes property value. Array of resource type and count used to represent number of resources for a given typeassociated with a group. +// returns a []V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypesable when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetAssociatedResourceTypes()([]V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypesable) { + return m.associatedResourceTypes +} +// GetAssociationCount gets the associationCount property value. Count of total resources associated to this group +// returns a *int32 when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetAssociationCount()(*int32) { + return m.associationCount +} +// GetConsoleUri gets the consoleUri property value. The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/groups/c4f8f464-ce09-4847-bfaa-e668de838c66") +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The time the group was created, conforming to the RFC-3339 format.All times are represented in UTC. +// returns a *Time when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. Primary identifier for the customer (GUID) associated with the group. +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDescription gets the description property value. Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["associatedResourceTypes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1GroupsItemGroupsPatchResponse_associatedResourceTypesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypesable) + } + } + m.SetAssociatedResourceTypes(res) + } + return nil + } + res["associationCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetAssociationCount(val) + } + return nil + } + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groupType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetGroupType(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + res["updatedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedBy(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value incremented every time the resource is updated +// returns a *int32 when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetGeneration()(*int32) { + return m.generation +} +// GetGroupType gets the groupType property value. Type of group +// returns a *int32 when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetGroupType()(*int32) { + return m.groupType +} +// GetId gets the id property value. Unique identifer for the Group, required for all other Group operations.The generation of the 'id' will be the responsibility of this service. +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetId()(*string) { + return m.id +} +// GetName gets the name property value. User will always provide a name for the group resource. It supports unicode. It must be unique within each customer ID. +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The "resourceUri" property identifies the resource's URI. The resourceUri value is a URI encoded string starting with the version of the API (e.g. "/data-services/v1beta1/groups/c4f8f464-ce09-4847-bfaa-e668de838c66"). +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of the resource. Used for grouping of like resources. +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The last modification time, conforming to the RFC-3339 format.All times are represented in UTC. +// returns a *Time when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// GetUpdatedBy gets the updatedBy property value. The user that performed the most recent modifying operation on the Group. +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsPatchResponse) GetUpdatedBy()(*string) { + return m.updatedBy +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemGroupsPatchResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAssociatedResourceTypes() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAssociatedResourceTypes())) + for i, v := range m.GetAssociatedResourceTypes() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("associatedResourceTypes", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("associationCount", m.GetAssociationCount()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("customerId", m.GetCustomerId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("generation", m.GetGeneration()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("groupType", m.GetGroupType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("updatedBy", m.GetUpdatedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemGroupsPatchResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAssociatedResourceTypes sets the associatedResourceTypes property value. Array of resource type and count used to represent number of resources for a given typeassociated with a group. +func (m *V1beta1GroupsItemGroupsPatchResponse) SetAssociatedResourceTypes(value []V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypesable)() { + m.associatedResourceTypes = value +} +// SetAssociationCount sets the associationCount property value. Count of total resources associated to this group +func (m *V1beta1GroupsItemGroupsPatchResponse) SetAssociationCount(value *int32)() { + m.associationCount = value +} +// SetConsoleUri sets the consoleUri property value. The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/groups/c4f8f464-ce09-4847-bfaa-e668de838c66") +func (m *V1beta1GroupsItemGroupsPatchResponse) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The time the group was created, conforming to the RFC-3339 format.All times are represented in UTC. +func (m *V1beta1GroupsItemGroupsPatchResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. Primary identifier for the customer (GUID) associated with the group. +func (m *V1beta1GroupsItemGroupsPatchResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDescription sets the description property value. Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode +func (m *V1beta1GroupsItemGroupsPatchResponse) SetDescription(value *string)() { + m.description = value +} +// SetGeneration sets the generation property value. A monotonically increasing value incremented every time the resource is updated +func (m *V1beta1GroupsItemGroupsPatchResponse) SetGeneration(value *int32)() { + m.generation = value +} +// SetGroupType sets the groupType property value. Type of group +func (m *V1beta1GroupsItemGroupsPatchResponse) SetGroupType(value *int32)() { + m.groupType = value +} +// SetId sets the id property value. Unique identifer for the Group, required for all other Group operations.The generation of the 'id' will be the responsibility of this service. +func (m *V1beta1GroupsItemGroupsPatchResponse) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. User will always provide a name for the group resource. It supports unicode. It must be unique within each customer ID. +func (m *V1beta1GroupsItemGroupsPatchResponse) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The "resourceUri" property identifies the resource's URI. The resourceUri value is a URI encoded string starting with the version of the API (e.g. "/data-services/v1beta1/groups/c4f8f464-ce09-4847-bfaa-e668de838c66"). +func (m *V1beta1GroupsItemGroupsPatchResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of the resource. Used for grouping of like resources. +func (m *V1beta1GroupsItemGroupsPatchResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The last modification time, conforming to the RFC-3339 format.All times are represented in UTC. +func (m *V1beta1GroupsItemGroupsPatchResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +// SetUpdatedBy sets the updatedBy property value. The user that performed the most recent modifying operation on the Group. +func (m *V1beta1GroupsItemGroupsPatchResponse) SetUpdatedBy(value *string)() { + m.updatedBy = value +} +type V1beta1GroupsItemGroupsPatchResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAssociatedResourceTypes()([]V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypesable) + GetAssociationCount()(*int32) + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDescription()(*string) + GetGeneration()(*int32) + GetGroupType()(*int32) + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetUpdatedBy()(*string) + SetAssociatedResourceTypes(value []V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypesable)() + SetAssociationCount(value *int32)() + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDescription(value *string)() + SetGeneration(value *int32)() + SetGroupType(value *int32)() + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetUpdatedBy(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_patch_response_escaped_associated_resource_types.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_patch_response_escaped_associated_resource_types.go new file mode 100644 index 0000000..8d8f97a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_patch_response_escaped_associated_resource_types.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypes struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The number of resources of the specified type + count *int32 + // The type of the associated resource. Used for grouping of like resources + typeEscaped *string +} +// NewV1beta1GroupsItemGroupsPatchResponse_associatedResourceTypes instantiates a new V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypes and sets the default values. +func NewV1beta1GroupsItemGroupsPatchResponse_associatedResourceTypes()(*V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypes) { + m := &V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypes{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsItemGroupsPatchResponse_associatedResourceTypesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemGroupsPatchResponse_associatedResourceTypesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemGroupsPatchResponse_associatedResourceTypes(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypes) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. The number of resources of the specified type +// returns a *int32 when successful +func (m *V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypes) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypes) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetTypeEscaped gets the type property value. The type of the associated resource. Used for grouping of like resources +// returns a *string when successful +func (m *V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypes) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypes) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypes) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. The number of resources of the specified type +func (m *V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypes) SetCount(value *int32)() { + m.count = value +} +// SetTypeEscaped sets the type property value. The type of the associated resource. Used for grouping of like resources +func (m *V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypes) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1GroupsItemGroupsPatchResponse_associatedResourceTypesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetTypeEscaped()(*string) + SetCount(value *int32)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_response.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_response.go new file mode 100644 index 0000000..0c58986 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_item_groups_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1GroupsItemGroupsGetResponseable instead. +type V1beta1GroupsItemGroupsResponse struct { + V1beta1GroupsItemGroupsGetResponse +} +// NewV1beta1GroupsItemGroupsResponse instantiates a new V1beta1GroupsItemGroupsResponse and sets the default values. +func NewV1beta1GroupsItemGroupsResponse()(*V1beta1GroupsItemGroupsResponse) { + m := &V1beta1GroupsItemGroupsResponse{ + V1beta1GroupsItemGroupsGetResponse: *NewV1beta1GroupsItemGroupsGetResponse(), + } + return m +} +// CreateV1beta1GroupsItemGroupsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsItemGroupsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsItemGroupsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1GroupsItemGroupsGetResponseable instead. +type V1beta1GroupsItemGroupsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1GroupsItemGroupsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_post_request_body.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_post_request_body.go new file mode 100644 index 0000000..39590ab --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_post_request_body.go @@ -0,0 +1,138 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsPostRequestBody struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode + description *string + // User will always provide a name for the group resource. It supports unicode. It must be unique within the customer ID. + name *string + // The path property + path *string +} +// NewV1beta1GroupsPostRequestBody instantiates a new V1beta1GroupsPostRequestBody and sets the default values. +func NewV1beta1GroupsPostRequestBody()(*V1beta1GroupsPostRequestBody) { + m := &V1beta1GroupsPostRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsPostRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDescription gets the description property value. Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode +// returns a *string when successful +func (m *V1beta1GroupsPostRequestBody) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["path"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPath(val) + } + return nil + } + return res +} +// GetName gets the name property value. User will always provide a name for the group resource. It supports unicode. It must be unique within the customer ID. +// returns a *string when successful +func (m *V1beta1GroupsPostRequestBody) GetName()(*string) { + return m.name +} +// GetPath gets the path property value. The path property +// returns a *string when successful +func (m *V1beta1GroupsPostRequestBody) GetPath()(*string) { + return m.path +} +// Serialize serializes information the current object +func (m *V1beta1GroupsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("path", m.GetPath()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsPostRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDescription sets the description property value. Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode +func (m *V1beta1GroupsPostRequestBody) SetDescription(value *string)() { + m.description = value +} +// SetName sets the name property value. User will always provide a name for the group resource. It supports unicode. It must be unique within the customer ID. +func (m *V1beta1GroupsPostRequestBody) SetName(value *string)() { + m.name = value +} +// SetPath sets the path property value. The path property +func (m *V1beta1GroupsPostRequestBody) SetPath(value *string)() { + m.path = value +} +type V1beta1GroupsPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDescription()(*string) + GetName()(*string) + GetPath()(*string) + SetDescription(value *string)() + SetName(value *string)() + SetPath(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_post_response.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_post_response.go new file mode 100644 index 0000000..8908d13 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_post_response.go @@ -0,0 +1,470 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsPostResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Array of resource type and count used to represent number of resources for a given typeassociated with a group. + associatedResourceTypes []V1beta1GroupsPostResponse_associatedResourceTypesable + // Count of total resources associated to this group + associationCount *int32 + // The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/groups/c4f8f464-ce09-4847-bfaa-e668de838c66") + consoleUri *string + // The time the group was created, conforming to the RFC-3339 format.All times are represented in UTC. + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Primary identifier for the customer (GUID) associated with the group. + customerId *string + // Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode + description *string + // A monotonically increasing value incremented every time the resource is updated + generation *int32 + // Type of group + groupType *int32 + // Unique identifer for the Group, required for all other Group operations.The generation of the 'id' will be the responsibility of this service. + id *string + // User will always provide a name for the group resource. It supports unicode. It must be unique within each customer ID. + name *string + // The "resourceUri" property identifies the resource's URI. The resourceUri value is a URI encoded string starting with the version of the API (e.g. "/data-services/v1beta1/groups/c4f8f464-ce09-4847-bfaa-e668de838c66"). + resourceUri *string + // The type of the resource. Used for grouping of like resources. + typeEscaped *string + // The last modification time, conforming to the RFC-3339 format.All times are represented in UTC. + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The user that performed the most recent modifying operation on the Group. + updatedBy *string +} +// NewV1beta1GroupsPostResponse instantiates a new V1beta1GroupsPostResponse and sets the default values. +func NewV1beta1GroupsPostResponse()(*V1beta1GroupsPostResponse) { + m := &V1beta1GroupsPostResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsPostResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsPostResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAssociatedResourceTypes gets the associatedResourceTypes property value. Array of resource type and count used to represent number of resources for a given typeassociated with a group. +// returns a []V1beta1GroupsPostResponse_associatedResourceTypesable when successful +func (m *V1beta1GroupsPostResponse) GetAssociatedResourceTypes()([]V1beta1GroupsPostResponse_associatedResourceTypesable) { + return m.associatedResourceTypes +} +// GetAssociationCount gets the associationCount property value. Count of total resources associated to this group +// returns a *int32 when successful +func (m *V1beta1GroupsPostResponse) GetAssociationCount()(*int32) { + return m.associationCount +} +// GetConsoleUri gets the consoleUri property value. The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/groups/c4f8f464-ce09-4847-bfaa-e668de838c66") +// returns a *string when successful +func (m *V1beta1GroupsPostResponse) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The time the group was created, conforming to the RFC-3339 format.All times are represented in UTC. +// returns a *Time when successful +func (m *V1beta1GroupsPostResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. Primary identifier for the customer (GUID) associated with the group. +// returns a *string when successful +func (m *V1beta1GroupsPostResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDescription gets the description property value. Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode +// returns a *string when successful +func (m *V1beta1GroupsPostResponse) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["associatedResourceTypes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1GroupsPostResponse_associatedResourceTypesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1GroupsPostResponse_associatedResourceTypesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1GroupsPostResponse_associatedResourceTypesable) + } + } + m.SetAssociatedResourceTypes(res) + } + return nil + } + res["associationCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetAssociationCount(val) + } + return nil + } + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groupType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetGroupType(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + res["updatedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedBy(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value incremented every time the resource is updated +// returns a *int32 when successful +func (m *V1beta1GroupsPostResponse) GetGeneration()(*int32) { + return m.generation +} +// GetGroupType gets the groupType property value. Type of group +// returns a *int32 when successful +func (m *V1beta1GroupsPostResponse) GetGroupType()(*int32) { + return m.groupType +} +// GetId gets the id property value. Unique identifer for the Group, required for all other Group operations.The generation of the 'id' will be the responsibility of this service. +// returns a *string when successful +func (m *V1beta1GroupsPostResponse) GetId()(*string) { + return m.id +} +// GetName gets the name property value. User will always provide a name for the group resource. It supports unicode. It must be unique within each customer ID. +// returns a *string when successful +func (m *V1beta1GroupsPostResponse) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The "resourceUri" property identifies the resource's URI. The resourceUri value is a URI encoded string starting with the version of the API (e.g. "/data-services/v1beta1/groups/c4f8f464-ce09-4847-bfaa-e668de838c66"). +// returns a *string when successful +func (m *V1beta1GroupsPostResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of the resource. Used for grouping of like resources. +// returns a *string when successful +func (m *V1beta1GroupsPostResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The last modification time, conforming to the RFC-3339 format.All times are represented in UTC. +// returns a *Time when successful +func (m *V1beta1GroupsPostResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// GetUpdatedBy gets the updatedBy property value. The user that performed the most recent modifying operation on the Group. +// returns a *string when successful +func (m *V1beta1GroupsPostResponse) GetUpdatedBy()(*string) { + return m.updatedBy +} +// Serialize serializes information the current object +func (m *V1beta1GroupsPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAssociatedResourceTypes() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAssociatedResourceTypes())) + for i, v := range m.GetAssociatedResourceTypes() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("associatedResourceTypes", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("associationCount", m.GetAssociationCount()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("customerId", m.GetCustomerId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("generation", m.GetGeneration()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("groupType", m.GetGroupType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("updatedBy", m.GetUpdatedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsPostResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAssociatedResourceTypes sets the associatedResourceTypes property value. Array of resource type and count used to represent number of resources for a given typeassociated with a group. +func (m *V1beta1GroupsPostResponse) SetAssociatedResourceTypes(value []V1beta1GroupsPostResponse_associatedResourceTypesable)() { + m.associatedResourceTypes = value +} +// SetAssociationCount sets the associationCount property value. Count of total resources associated to this group +func (m *V1beta1GroupsPostResponse) SetAssociationCount(value *int32)() { + m.associationCount = value +} +// SetConsoleUri sets the consoleUri property value. The "consoleUri" property is the webpage representing the resource in the Storage Central UI. The the value of "consoleUri" is the console path including any required query parameters (e.g. "/groups/c4f8f464-ce09-4847-bfaa-e668de838c66") +func (m *V1beta1GroupsPostResponse) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The time the group was created, conforming to the RFC-3339 format.All times are represented in UTC. +func (m *V1beta1GroupsPostResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. Primary identifier for the customer (GUID) associated with the group. +func (m *V1beta1GroupsPostResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDescription sets the description property value. Text that can be used to shed light on the meaning or purpose of the group. Description supports unicode +func (m *V1beta1GroupsPostResponse) SetDescription(value *string)() { + m.description = value +} +// SetGeneration sets the generation property value. A monotonically increasing value incremented every time the resource is updated +func (m *V1beta1GroupsPostResponse) SetGeneration(value *int32)() { + m.generation = value +} +// SetGroupType sets the groupType property value. Type of group +func (m *V1beta1GroupsPostResponse) SetGroupType(value *int32)() { + m.groupType = value +} +// SetId sets the id property value. Unique identifer for the Group, required for all other Group operations.The generation of the 'id' will be the responsibility of this service. +func (m *V1beta1GroupsPostResponse) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. User will always provide a name for the group resource. It supports unicode. It must be unique within each customer ID. +func (m *V1beta1GroupsPostResponse) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The "resourceUri" property identifies the resource's URI. The resourceUri value is a URI encoded string starting with the version of the API (e.g. "/data-services/v1beta1/groups/c4f8f464-ce09-4847-bfaa-e668de838c66"). +func (m *V1beta1GroupsPostResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of the resource. Used for grouping of like resources. +func (m *V1beta1GroupsPostResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The last modification time, conforming to the RFC-3339 format.All times are represented in UTC. +func (m *V1beta1GroupsPostResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +// SetUpdatedBy sets the updatedBy property value. The user that performed the most recent modifying operation on the Group. +func (m *V1beta1GroupsPostResponse) SetUpdatedBy(value *string)() { + m.updatedBy = value +} +type V1beta1GroupsPostResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAssociatedResourceTypes()([]V1beta1GroupsPostResponse_associatedResourceTypesable) + GetAssociationCount()(*int32) + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDescription()(*string) + GetGeneration()(*int32) + GetGroupType()(*int32) + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetUpdatedBy()(*string) + SetAssociatedResourceTypes(value []V1beta1GroupsPostResponse_associatedResourceTypesable)() + SetAssociationCount(value *int32)() + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDescription(value *string)() + SetGeneration(value *int32)() + SetGroupType(value *int32)() + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetUpdatedBy(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_post_response_escaped_associated_resource_types.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_post_response_escaped_associated_resource_types.go new file mode 100644 index 0000000..2b90aae --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_post_response_escaped_associated_resource_types.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1GroupsPostResponse_associatedResourceTypes struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The number of resources of the specified type + count *int32 + // The type of the associated resource. Used for grouping of like resources + typeEscaped *string +} +// NewV1beta1GroupsPostResponse_associatedResourceTypes instantiates a new V1beta1GroupsPostResponse_associatedResourceTypes and sets the default values. +func NewV1beta1GroupsPostResponse_associatedResourceTypes()(*V1beta1GroupsPostResponse_associatedResourceTypes) { + m := &V1beta1GroupsPostResponse_associatedResourceTypes{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1GroupsPostResponse_associatedResourceTypesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsPostResponse_associatedResourceTypesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsPostResponse_associatedResourceTypes(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1GroupsPostResponse_associatedResourceTypes) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. The number of resources of the specified type +// returns a *int32 when successful +func (m *V1beta1GroupsPostResponse_associatedResourceTypes) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1GroupsPostResponse_associatedResourceTypes) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetTypeEscaped gets the type property value. The type of the associated resource. Used for grouping of like resources +// returns a *string when successful +func (m *V1beta1GroupsPostResponse_associatedResourceTypes) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1GroupsPostResponse_associatedResourceTypes) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1GroupsPostResponse_associatedResourceTypes) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. The number of resources of the specified type +func (m *V1beta1GroupsPostResponse_associatedResourceTypes) SetCount(value *int32)() { + m.count = value +} +// SetTypeEscaped sets the type property value. The type of the associated resource. Used for grouping of like resources +func (m *V1beta1GroupsPostResponse_associatedResourceTypes) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1GroupsPostResponse_associatedResourceTypesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetTypeEscaped()(*string) + SetCount(value *int32)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_request_builder.go new file mode 100644 index 0000000..8a35348 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_request_builder.go @@ -0,0 +1,211 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" +) + +// V1beta1GroupsRequestBuilder builds and executes requests for operations under \data-services\v1beta1\groups +type V1beta1GroupsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1GroupsRequestBuilderGetQueryParameters returns all groups for a customer +type V1beta1GroupsRequestBuilderGetQueryParameters struct { + // The filter query parameter is used to filter the set of groups returned in the response.The returned set of groups must match the criteria in the filter query parameter.A comparison compares a property name to a literal. The comparisons supported are the following: - “eq” : Is a property equal to value. Valid for number, boolean and string properties. - “gt” : Is a property greater than a value. Valid for number or string timestamp properties. - “lt” : Is a property less than a value. Valid for number or string timestamp properties - "contains" : Does a property have the text specified as a valueSyntax: - “eq” : filter=\ eq \ - “gt” : filter=\ gt \ - “lt” : filter=\ lt \ - "contains" : filter=contains(name, 'Houston') - "contains" : filter=contains(description, 'Houston')User can include "and" to filter on multiple fields "filter=\ eq \ and \ lt \"Filters are supported on following attributes: - name - updatedBy - updatedAt + Filter *string `uriparametername:"filter"` + // The number of results to return. Default limit is 12, if not specified by the user. + Limit *int32 `uriparametername:"limit"` + // The number of results to skip. This is used for paging results. Default offset is 0, if notspecified by the user. + Offset *int32 `uriparametername:"offset"` + // List of permissions to check for group access, each of which has the form "resource-type.permission" If omitted, default permissions group.create and group.read will be used. + Permissions []string `uriparametername:"permissions"` + // A list of properties to include in the response. Service currently only supports specification of all fields. + Select *string `uriparametername:"select"` + // A comma separated list of properties to sort by, followed by a direction indicator ("asc" or "desc"). If no direction indicator is specified the default order is ascending. - e.g. "sort=name" is equivalent to "sort=name asc". Service currently only supports sorting by 1 property per request. Supported fields include:- name- updatedBy- updatedAt- description- associationCountEven though secondary sort is not supported, queries of the database will include a secondary sort by "name asc" to guarantee consistent paging behavior. Of course, there will no secondary sort if user specified "name" as the sorting field.Default sort is "name asc" if not specified by the user. + Sort *string `uriparametername:"sort"` +} +// V1beta1GroupsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1GroupsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1GroupsRequestBuilderGetQueryParameters +} +// V1beta1GroupsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1GroupsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ById gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.groups.item collection +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. +// returns a *V1beta1GroupsGroupsItemRequestBuilder when successful +func (m *V1beta1GroupsRequestBuilder) ById(id string)(*V1beta1GroupsGroupsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["id"] = id + } + return NewV1beta1GroupsGroupsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ByIdGuid gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.groups.item collection +// returns a *V1beta1GroupsGroupsItemRequestBuilder when successful +func (m *V1beta1GroupsRequestBuilder) ByIdGuid(id i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*V1beta1GroupsGroupsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["id"] = id.String() + return NewV1beta1GroupsGroupsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1GroupsRequestBuilderInternal instantiates a new V1beta1GroupsRequestBuilder and sets the default values. +func NewV1beta1GroupsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1GroupsRequestBuilder) { + m := &V1beta1GroupsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/groups{?filter*,limit*,offset*,permissions*,select*,sort*}", pathParameters), + } + return m +} +// NewV1beta1GroupsRequestBuilder instantiates a new V1beta1GroupsRequestBuilder and sets the default values. +func NewV1beta1GroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1GroupsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1GroupsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns all groups for a customer +// Deprecated: This method is obsolete. Use GetAsGroupsGetResponse instead. +// returns a V1beta1GroupsResponseable when successful +// returns a V1beta1Groups400Error error when the service returns a 400 status code +// returns a V1beta1Groups503Error error when the service returns a 503 status code +func (m *V1beta1GroupsRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1GroupsRequestBuilderGetRequestConfiguration)(V1beta1GroupsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Groups400ErrorFromDiscriminatorValue, + "503": CreateV1beta1Groups503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1GroupsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1GroupsResponseable), nil +} +// GetAsGroupsGetResponse returns all groups for a customer +// returns a V1beta1GroupsGetResponseable when successful +// returns a V1beta1Groups400Error error when the service returns a 400 status code +// returns a V1beta1Groups503Error error when the service returns a 503 status code +func (m *V1beta1GroupsRequestBuilder) GetAsGroupsGetResponse(ctx context.Context, requestConfiguration *V1beta1GroupsRequestBuilderGetRequestConfiguration)(V1beta1GroupsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Groups400ErrorFromDiscriminatorValue, + "503": CreateV1beta1Groups503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1GroupsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1GroupsGetResponseable), nil +} +// Post create a new group +// Deprecated: This method is obsolete. Use PostAsGroupsPostResponse instead. +// returns a V1beta1GroupsResponseable when successful +// returns a V1beta1Groups400Error error when the service returns a 400 status code +// returns a V1beta1Groups403Error error when the service returns a 403 status code +// returns a V1beta1Groups409Error error when the service returns a 409 status code +// returns a V1beta1Groups503Error error when the service returns a 503 status code +func (m *V1beta1GroupsRequestBuilder) Post(ctx context.Context, body V1beta1GroupsPostRequestBodyable, requestConfiguration *V1beta1GroupsRequestBuilderPostRequestConfiguration)(V1beta1GroupsResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Groups400ErrorFromDiscriminatorValue, + "403": CreateV1beta1Groups403ErrorFromDiscriminatorValue, + "409": CreateV1beta1Groups409ErrorFromDiscriminatorValue, + "503": CreateV1beta1Groups503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1GroupsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1GroupsResponseable), nil +} +// PostAsGroupsPostResponse create a new group +// returns a V1beta1GroupsPostResponseable when successful +// returns a V1beta1Groups400Error error when the service returns a 400 status code +// returns a V1beta1Groups403Error error when the service returns a 403 status code +// returns a V1beta1Groups409Error error when the service returns a 409 status code +// returns a V1beta1Groups503Error error when the service returns a 503 status code +func (m *V1beta1GroupsRequestBuilder) PostAsGroupsPostResponse(ctx context.Context, body V1beta1GroupsPostRequestBodyable, requestConfiguration *V1beta1GroupsRequestBuilderPostRequestConfiguration)(V1beta1GroupsPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Groups400ErrorFromDiscriminatorValue, + "403": CreateV1beta1Groups403ErrorFromDiscriminatorValue, + "409": CreateV1beta1Groups409ErrorFromDiscriminatorValue, + "503": CreateV1beta1Groups503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1GroupsPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1GroupsPostResponseable), nil +} +// ToGetRequestInformation returns all groups for a customer +// returns a *RequestInformation when successful +func (m *V1beta1GroupsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1GroupsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create a new group +// returns a *RequestInformation when successful +func (m *V1beta1GroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body V1beta1GroupsPostRequestBodyable, requestConfiguration *V1beta1GroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1GroupsRequestBuilder when successful +func (m *V1beta1GroupsRequestBuilder) WithUrl(rawUrl string)(*V1beta1GroupsRequestBuilder) { + return NewV1beta1GroupsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_groups_response.go b/internal/sdk/dataservices/dataservices/v1beta1_groups_response.go new file mode 100644 index 0000000..483a666 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_groups_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1GroupsGetResponseable instead. +type V1beta1GroupsResponse struct { + V1beta1GroupsGetResponse +} +// NewV1beta1GroupsResponse instantiates a new V1beta1GroupsResponse and sets the default values. +func NewV1beta1GroupsResponse()(*V1beta1GroupsResponse) { + m := &V1beta1GroupsResponse{ + V1beta1GroupsGetResponse: *NewV1beta1GroupsGetResponse(), + } + return m +} +// CreateV1beta1GroupsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1GroupsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1GroupsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1GroupsGetResponseable instead. +type V1beta1GroupsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1GroupsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues400_error.go new file mode 100644 index 0000000..17c655e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Issues400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Issues400Error instantiates a new V1beta1Issues400Error and sets the default values. +func NewV1beta1Issues400Error()(*V1beta1Issues400Error) { + m := &V1beta1Issues400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Issues400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Issues400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Issues400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Issues400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Issues400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Issues400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Issues400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Issues400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Issues400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Issues400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Issues400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Issues400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Issues400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Issues400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Issues400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Issues400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Issues400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues401_error.go new file mode 100644 index 0000000..7d2405e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Issues401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Issues401Error instantiates a new V1beta1Issues401Error and sets the default values. +func NewV1beta1Issues401Error()(*V1beta1Issues401Error) { + m := &V1beta1Issues401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Issues401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Issues401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Issues401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Issues401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Issues401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Issues401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Issues401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Issues401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Issues401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Issues401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Issues401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Issues401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Issues401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Issues401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Issues401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Issues401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Issues401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues403_error.go new file mode 100644 index 0000000..2e36431 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Issues403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Issues403Error instantiates a new V1beta1Issues403Error and sets the default values. +func NewV1beta1Issues403Error()(*V1beta1Issues403Error) { + m := &V1beta1Issues403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Issues403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Issues403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Issues403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Issues403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Issues403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Issues403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Issues403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Issues403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Issues403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Issues403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Issues403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Issues403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Issues403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Issues403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Issues403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Issues403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Issues403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues404_error.go new file mode 100644 index 0000000..16d3e68 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Issues404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Issues404Error instantiates a new V1beta1Issues404Error and sets the default values. +func NewV1beta1Issues404Error()(*V1beta1Issues404Error) { + m := &V1beta1Issues404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Issues404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Issues404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Issues404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Issues404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Issues404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Issues404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Issues404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Issues404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Issues404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Issues404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Issues404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Issues404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Issues404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Issues404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Issues404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Issues404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Issues404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues405_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues405_error.go new file mode 100644 index 0000000..9da118e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues405_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Issues405Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Issues405Error instantiates a new V1beta1Issues405Error and sets the default values. +func NewV1beta1Issues405Error()(*V1beta1Issues405Error) { + m := &V1beta1Issues405Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Issues405ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Issues405ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Issues405Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Issues405Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Issues405Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Issues405Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Issues405Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Issues405Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Issues405Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Issues405Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Issues405Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Issues405Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Issues405Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Issues405Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Issues405Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Issues405Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Issues405Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues422_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues422_error.go new file mode 100644 index 0000000..f4928a7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues422_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Issues422Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Issues422Error instantiates a new V1beta1Issues422Error and sets the default values. +func NewV1beta1Issues422Error()(*V1beta1Issues422Error) { + m := &V1beta1Issues422Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Issues422ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Issues422ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Issues422Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Issues422Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Issues422Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Issues422Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Issues422Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Issues422Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Issues422Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Issues422Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Issues422Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Issues422Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Issues422Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Issues422Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Issues422Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Issues422Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Issues422Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues500_error.go new file mode 100644 index 0000000..db51e80 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Issues500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Issues500Error instantiates a new V1beta1Issues500Error and sets the default values. +func NewV1beta1Issues500Error()(*V1beta1Issues500Error) { + m := &V1beta1Issues500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Issues500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Issues500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Issues500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Issues500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Issues500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Issues500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Issues500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Issues500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Issues500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Issues500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Issues500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Issues500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Issues500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Issues500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Issues500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Issues500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Issues500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues503_error.go new file mode 100644 index 0000000..b15ead7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Issues503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Issues503Error instantiates a new V1beta1Issues503Error and sets the default values. +func NewV1beta1Issues503Error()(*V1beta1Issues503Error) { + m := &V1beta1Issues503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Issues503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Issues503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Issues503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Issues503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Issues503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Issues503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Issues503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Issues503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Issues503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Issues503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Issues503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Issues503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Issues503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Issues503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Issues503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Issues503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Issues503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_get_response.go new file mode 100644 index 0000000..2334502 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_get_response.go @@ -0,0 +1,179 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Number of items in this response. + count *int32 + // The issues returned by the query. + items []V1beta1IssuesGetResponse_itemsable + // The offset query parameter from the request. + offset *int32 + // Total number of items matching the filter parameter in the request. + total *int32 +} +// NewV1beta1IssuesGetResponse instantiates a new V1beta1IssuesGetResponse and sets the default values. +func NewV1beta1IssuesGetResponse()(*V1beta1IssuesGetResponse) { + m := &V1beta1IssuesGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Number of items in this response. +// returns a *int32 when successful +func (m *V1beta1IssuesGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1IssuesGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1IssuesGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1IssuesGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetItems gets the items property value. The issues returned by the query. +// returns a []V1beta1IssuesGetResponse_itemsable when successful +func (m *V1beta1IssuesGetResponse) GetItems()([]V1beta1IssuesGetResponse_itemsable) { + return m.items +} +// GetOffset gets the offset property value. The offset query parameter from the request. +// returns a *int32 when successful +func (m *V1beta1IssuesGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetTotal gets the total property value. Total number of items matching the filter parameter in the request. +// returns a *int32 when successful +func (m *V1beta1IssuesGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1IssuesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Number of items in this response. +func (m *V1beta1IssuesGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. The issues returned by the query. +func (m *V1beta1IssuesGetResponse) SetItems(value []V1beta1IssuesGetResponse_itemsable)() { + m.items = value +} +// SetOffset sets the offset property value. The offset query parameter from the request. +func (m *V1beta1IssuesGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetTotal sets the total property value. Total number of items matching the filter parameter in the request. +func (m *V1beta1IssuesGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1IssuesGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1IssuesGetResponse_itemsable) + GetOffset()(*int32) + GetTotal()(*int32) + SetCount(value *int32)() + SetItems(value []V1beta1IssuesGetResponse_itemsable)() + SetOffset(value *int32)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_get_response_escaped_items.go new file mode 100644 index 0000000..8ed8719 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_get_response_escaped_items.go @@ -0,0 +1,778 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Long description with more details including possible remediations. + body *string + // Category of the issue. PERFORMANCE, CAPACITY, etc + category *string + // Time when the issue was cleared. RFC 3339 timestamp + clearedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // Groups this issue is associated with. + groups []V1beta1IssuesGetResponse_items_groupsable + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The type of the issue. Eg: ISSUE + issueType *string + // Time when the issue last occurred. RFC 3339 timestamp + lastOccurredAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // A system specified name for the resource. + name *string + // Indicates the number of occurrences of the issue + occurrenceCount *int32 + // Recommendation to address the underlying issue. + recommendation *string + // Details of the resources related to the issue + relatedResources []V1beta1IssuesGetResponse_items_relatedResourcesable + // The self reference for this resource. + resourceUri *string + // Details of the services this issue belongs to + services []string + // Severity of the issue. For issue: CRITICAL, WARNING, INFO. For reco: HIGH, MEDIUM, LOW + severity *string + // An auxiliary calculated attribute to help the end-user filter snoozed and un-snoozed issues + snoozed *bool + // The email id of the last user who snoozed this issue. + snoozedBy *string + // Date-time until this issue will be considered snoozed/inactive until this time. RFC 3339 + snoozedUntil *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Identifier for the source resource that is contained in relatedResources + sourceResourceId *string + // Type of the source resource that is contained in the relatedResources + sourceResourceType *string + // State of the issue. Eg: CREATED, ASSIGNED, CLOSED, SNOOZED, DELETED, etc + state *string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1IssuesGetResponse_items instantiates a new V1beta1IssuesGetResponse_items and sets the default values. +func NewV1beta1IssuesGetResponse_items()(*V1beta1IssuesGetResponse_items) { + m := &V1beta1IssuesGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetBody gets the body property value. Long description with more details including possible remediations. +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items) GetBody()(*string) { + return m.body +} +// GetCategory gets the category property value. Category of the issue. PERFORMANCE, CAPACITY, etc +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items) GetCategory()(*string) { + return m.category +} +// GetClearedAt gets the clearedAt property value. Time when the issue was cleared. RFC 3339 timestamp +// returns a *Time when successful +func (m *V1beta1IssuesGetResponse_items) GetClearedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.clearedAt +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1IssuesGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["body"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetBody(val) + } + return nil + } + res["category"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory(val) + } + return nil + } + res["clearedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetClearedAt(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1IssuesGetResponse_items_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1IssuesGetResponse_items_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1IssuesGetResponse_items_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["issueType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetIssueType(val) + } + return nil + } + res["lastOccurredAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastOccurredAt(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["occurrenceCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOccurrenceCount(val) + } + return nil + } + res["recommendation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRecommendation(val) + } + return nil + } + res["relatedResources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1IssuesGetResponse_items_relatedResourcesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1IssuesGetResponse_items_relatedResourcesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1IssuesGetResponse_items_relatedResourcesable) + } + } + m.SetRelatedResources(res) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["services"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetServices(res) + } + return nil + } + res["severity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSeverity(val) + } + return nil + } + res["snoozed"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetSnoozed(val) + } + return nil + } + res["snoozedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSnoozedBy(val) + } + return nil + } + res["snoozedUntil"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetSnoozedUntil(val) + } + return nil + } + res["sourceResourceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSourceResourceId(val) + } + return nil + } + res["sourceResourceType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSourceResourceType(val) + } + return nil + } + res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetState(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1IssuesGetResponse_items) GetGeneration()(*int64) { + return m.generation +} +// GetGroups gets the groups property value. Groups this issue is associated with. +// returns a []V1beta1IssuesGetResponse_items_groupsable when successful +func (m *V1beta1IssuesGetResponse_items) GetGroups()([]V1beta1IssuesGetResponse_items_groupsable) { + return m.groups +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1IssuesGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetIssueType gets the issueType property value. The type of the issue. Eg: ISSUE +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items) GetIssueType()(*string) { + return m.issueType +} +// GetLastOccurredAt gets the lastOccurredAt property value. Time when the issue last occurred. RFC 3339 timestamp +// returns a *Time when successful +func (m *V1beta1IssuesGetResponse_items) GetLastOccurredAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.lastOccurredAt +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items) GetName()(*string) { + return m.name +} +// GetOccurrenceCount gets the occurrenceCount property value. Indicates the number of occurrences of the issue +// returns a *int32 when successful +func (m *V1beta1IssuesGetResponse_items) GetOccurrenceCount()(*int32) { + return m.occurrenceCount +} +// GetRecommendation gets the recommendation property value. Recommendation to address the underlying issue. +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items) GetRecommendation()(*string) { + return m.recommendation +} +// GetRelatedResources gets the relatedResources property value. Details of the resources related to the issue +// returns a []V1beta1IssuesGetResponse_items_relatedResourcesable when successful +func (m *V1beta1IssuesGetResponse_items) GetRelatedResources()([]V1beta1IssuesGetResponse_items_relatedResourcesable) { + return m.relatedResources +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetServices gets the services property value. Details of the services this issue belongs to +// returns a []string when successful +func (m *V1beta1IssuesGetResponse_items) GetServices()([]string) { + return m.services +} +// GetSeverity gets the severity property value. Severity of the issue. For issue: CRITICAL, WARNING, INFO. For reco: HIGH, MEDIUM, LOW +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items) GetSeverity()(*string) { + return m.severity +} +// GetSnoozed gets the snoozed property value. An auxiliary calculated attribute to help the end-user filter snoozed and un-snoozed issues +// returns a *bool when successful +func (m *V1beta1IssuesGetResponse_items) GetSnoozed()(*bool) { + return m.snoozed +} +// GetSnoozedBy gets the snoozedBy property value. The email id of the last user who snoozed this issue. +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items) GetSnoozedBy()(*string) { + return m.snoozedBy +} +// GetSnoozedUntil gets the snoozedUntil property value. Date-time until this issue will be considered snoozed/inactive until this time. RFC 3339 +// returns a *Time when successful +func (m *V1beta1IssuesGetResponse_items) GetSnoozedUntil()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.snoozedUntil +} +// GetSourceResourceId gets the sourceResourceId property value. Identifier for the source resource that is contained in relatedResources +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items) GetSourceResourceId()(*string) { + return m.sourceResourceId +} +// GetSourceResourceType gets the sourceResourceType property value. Type of the source resource that is contained in the relatedResources +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items) GetSourceResourceType()(*string) { + return m.sourceResourceType +} +// GetState gets the state property value. State of the issue. Eg: CREATED, ASSIGNED, CLOSED, SNOOZED, DELETED, etc +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items) GetState()(*string) { + return m.state +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1IssuesGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1IssuesGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("body", m.GetBody()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category", m.GetCategory()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("clearedAt", m.GetClearedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("issueType", m.GetIssueType()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("lastOccurredAt", m.GetLastOccurredAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("occurrenceCount", m.GetOccurrenceCount()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("recommendation", m.GetRecommendation()) + if err != nil { + return err + } + } + if m.GetRelatedResources() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRelatedResources())) + for i, v := range m.GetRelatedResources() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("relatedResources", cast) + if err != nil { + return err + } + } + if m.GetServices() != nil { + err := writer.WriteCollectionOfStringValues("services", m.GetServices()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("severity", m.GetSeverity()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("snoozed", m.GetSnoozed()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("snoozedBy", m.GetSnoozedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("snoozedUntil", m.GetSnoozedUntil()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sourceResourceId", m.GetSourceResourceId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sourceResourceType", m.GetSourceResourceType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("state", m.GetState()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetBody sets the body property value. Long description with more details including possible remediations. +func (m *V1beta1IssuesGetResponse_items) SetBody(value *string)() { + m.body = value +} +// SetCategory sets the category property value. Category of the issue. PERFORMANCE, CAPACITY, etc +func (m *V1beta1IssuesGetResponse_items) SetCategory(value *string)() { + m.category = value +} +// SetClearedAt sets the clearedAt property value. Time when the issue was cleared. RFC 3339 timestamp +func (m *V1beta1IssuesGetResponse_items) SetClearedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.clearedAt = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1IssuesGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1IssuesGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1IssuesGetResponse_items) SetGeneration(value *int64)() { + m.generation = value +} +// SetGroups sets the groups property value. Groups this issue is associated with. +func (m *V1beta1IssuesGetResponse_items) SetGroups(value []V1beta1IssuesGetResponse_items_groupsable)() { + m.groups = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1IssuesGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetIssueType sets the issueType property value. The type of the issue. Eg: ISSUE +func (m *V1beta1IssuesGetResponse_items) SetIssueType(value *string)() { + m.issueType = value +} +// SetLastOccurredAt sets the lastOccurredAt property value. Time when the issue last occurred. RFC 3339 timestamp +func (m *V1beta1IssuesGetResponse_items) SetLastOccurredAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.lastOccurredAt = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1IssuesGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetOccurrenceCount sets the occurrenceCount property value. Indicates the number of occurrences of the issue +func (m *V1beta1IssuesGetResponse_items) SetOccurrenceCount(value *int32)() { + m.occurrenceCount = value +} +// SetRecommendation sets the recommendation property value. Recommendation to address the underlying issue. +func (m *V1beta1IssuesGetResponse_items) SetRecommendation(value *string)() { + m.recommendation = value +} +// SetRelatedResources sets the relatedResources property value. Details of the resources related to the issue +func (m *V1beta1IssuesGetResponse_items) SetRelatedResources(value []V1beta1IssuesGetResponse_items_relatedResourcesable)() { + m.relatedResources = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1IssuesGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetServices sets the services property value. Details of the services this issue belongs to +func (m *V1beta1IssuesGetResponse_items) SetServices(value []string)() { + m.services = value +} +// SetSeverity sets the severity property value. Severity of the issue. For issue: CRITICAL, WARNING, INFO. For reco: HIGH, MEDIUM, LOW +func (m *V1beta1IssuesGetResponse_items) SetSeverity(value *string)() { + m.severity = value +} +// SetSnoozed sets the snoozed property value. An auxiliary calculated attribute to help the end-user filter snoozed and un-snoozed issues +func (m *V1beta1IssuesGetResponse_items) SetSnoozed(value *bool)() { + m.snoozed = value +} +// SetSnoozedBy sets the snoozedBy property value. The email id of the last user who snoozed this issue. +func (m *V1beta1IssuesGetResponse_items) SetSnoozedBy(value *string)() { + m.snoozedBy = value +} +// SetSnoozedUntil sets the snoozedUntil property value. Date-time until this issue will be considered snoozed/inactive until this time. RFC 3339 +func (m *V1beta1IssuesGetResponse_items) SetSnoozedUntil(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.snoozedUntil = value +} +// SetSourceResourceId sets the sourceResourceId property value. Identifier for the source resource that is contained in relatedResources +func (m *V1beta1IssuesGetResponse_items) SetSourceResourceId(value *string)() { + m.sourceResourceId = value +} +// SetSourceResourceType sets the sourceResourceType property value. Type of the source resource that is contained in the relatedResources +func (m *V1beta1IssuesGetResponse_items) SetSourceResourceType(value *string)() { + m.sourceResourceType = value +} +// SetState sets the state property value. State of the issue. Eg: CREATED, ASSIGNED, CLOSED, SNOOZED, DELETED, etc +func (m *V1beta1IssuesGetResponse_items) SetState(value *string)() { + m.state = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1IssuesGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1IssuesGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1IssuesGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBody()(*string) + GetCategory()(*string) + GetClearedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetGeneration()(*int64) + GetGroups()([]V1beta1IssuesGetResponse_items_groupsable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetIssueType()(*string) + GetLastOccurredAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetName()(*string) + GetOccurrenceCount()(*int32) + GetRecommendation()(*string) + GetRelatedResources()([]V1beta1IssuesGetResponse_items_relatedResourcesable) + GetResourceUri()(*string) + GetServices()([]string) + GetSeverity()(*string) + GetSnoozed()(*bool) + GetSnoozedBy()(*string) + GetSnoozedUntil()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetSourceResourceId()(*string) + GetSourceResourceType()(*string) + GetState()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetBody(value *string)() + SetCategory(value *string)() + SetClearedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetGeneration(value *int64)() + SetGroups(value []V1beta1IssuesGetResponse_items_groupsable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetIssueType(value *string)() + SetLastOccurredAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetName(value *string)() + SetOccurrenceCount(value *int32)() + SetRecommendation(value *string)() + SetRelatedResources(value []V1beta1IssuesGetResponse_items_relatedResourcesable)() + SetResourceUri(value *string)() + SetServices(value []string)() + SetSeverity(value *string)() + SetSnoozed(value *bool)() + SetSnoozedBy(value *string)() + SetSnoozedUntil(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetSourceResourceId(value *string)() + SetSourceResourceType(value *string)() + SetState(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_get_response_escaped_items_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_get_response_escaped_items_escaped_groups.go new file mode 100644 index 0000000..6a9f685 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_get_response_escaped_items_escaped_groups.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesGetResponse_items_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // ID of the associated group + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the associated group + name *string +} +// NewV1beta1IssuesGetResponse_items_groups instantiates a new V1beta1IssuesGetResponse_items_groups and sets the default values. +func NewV1beta1IssuesGetResponse_items_groups()(*V1beta1IssuesGetResponse_items_groups) { + m := &V1beta1IssuesGetResponse_items_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesGetResponse_items_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesGetResponse_items_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesGetResponse_items_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesGetResponse_items_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesGetResponse_items_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. ID of the associated group +// returns a *UUID when successful +func (m *V1beta1IssuesGetResponse_items_groups) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1IssuesGetResponse_items_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesGetResponse_items_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. ID of the associated group +func (m *V1beta1IssuesGetResponse_items_groups) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1IssuesGetResponse_items_groups) SetName(value *string)() { + m.name = value +} +type V1beta1IssuesGetResponse_items_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_get_response_escaped_items_escaped_related_resources.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_get_response_escaped_items_escaped_related_resources.go new file mode 100644 index 0000000..44a1d12 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_get_response_escaped_items_escaped_related_resources.go @@ -0,0 +1,174 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1IssuesGetResponse_items_relatedResources reference to another resource and additional id for use with Issues +type V1beta1IssuesGetResponse_items_relatedResources struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // console URI of the related object resource that is the source of the issue + consoleUri *string + // The id property + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The name property + name *string + // The resourceUri property + resourceUri *string + // The type property + typeEscaped *string +} +// NewV1beta1IssuesGetResponse_items_relatedResources instantiates a new V1beta1IssuesGetResponse_items_relatedResources and sets the default values. +func NewV1beta1IssuesGetResponse_items_relatedResources()(*V1beta1IssuesGetResponse_items_relatedResources) { + m := &V1beta1IssuesGetResponse_items_relatedResources{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesGetResponse_items_relatedResourcesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesGetResponse_items_relatedResourcesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesGetResponse_items_relatedResources(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesGetResponse_items_relatedResources) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetConsoleUri gets the consoleUri property value. console URI of the related object resource that is the source of the issue +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items_relatedResources) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesGetResponse_items_relatedResources) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The id property +// returns a *UUID when successful +func (m *V1beta1IssuesGetResponse_items_relatedResources) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items_relatedResources) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The resourceUri property +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items_relatedResources) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *V1beta1IssuesGetResponse_items_relatedResources) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1IssuesGetResponse_items_relatedResources) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesGetResponse_items_relatedResources) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetConsoleUri sets the consoleUri property value. console URI of the related object resource that is the source of the issue +func (m *V1beta1IssuesGetResponse_items_relatedResources) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetId sets the id property value. The id property +func (m *V1beta1IssuesGetResponse_items_relatedResources) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. The name property +func (m *V1beta1IssuesGetResponse_items_relatedResources) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The resourceUri property +func (m *V1beta1IssuesGetResponse_items_relatedResources) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type property +func (m *V1beta1IssuesGetResponse_items_relatedResources) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1IssuesGetResponse_items_relatedResourcesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConsoleUri()(*string) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetConsoleUri(value *string)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_issues_item_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_issues_item_request_builder.go new file mode 100644 index 0000000..6bc9cef --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_issues_item_request_builder.go @@ -0,0 +1,130 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1IssuesIssuesItemRequestBuilder builds and executes requests for operations under \data-services\v1beta1\issues\{id} +type V1beta1IssuesIssuesItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1IssuesIssuesItemRequestBuilderGetQueryParameters returns an active issue with the specified id for the account obtained from the request header. The issue must be in the CREATED state +type V1beta1IssuesIssuesItemRequestBuilderGetQueryParameters struct { + // Limits the properties returned with a resource or collection-level GET. Specify a comma-separated list of properties.(e.g.: "?select=id,type,customerId,services,createdAt,lastOccurredAt,generation,resourceUri") + Select *string `uriparametername:"select"` +} +// V1beta1IssuesIssuesItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1IssuesIssuesItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1IssuesIssuesItemRequestBuilderGetQueryParameters +} +// NewV1beta1IssuesIssuesItemRequestBuilderInternal instantiates a new V1beta1IssuesIssuesItemRequestBuilder and sets the default values. +func NewV1beta1IssuesIssuesItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1IssuesIssuesItemRequestBuilder) { + m := &V1beta1IssuesIssuesItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/issues/{id}{?select*}", pathParameters), + } + return m +} +// NewV1beta1IssuesIssuesItemRequestBuilder instantiates a new V1beta1IssuesIssuesItemRequestBuilder and sets the default values. +func NewV1beta1IssuesIssuesItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1IssuesIssuesItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1IssuesIssuesItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns an active issue with the specified id for the account obtained from the request header. The issue must be in the CREATED state +// Deprecated: This method is obsolete. Use GetAsIssuesGetResponse instead. +// returns a V1beta1IssuesItemIssuesResponseable when successful +// returns a V1beta1IssuesItemIssues400Error error when the service returns a 400 status code +// returns a V1beta1IssuesItemIssues401Error error when the service returns a 401 status code +// returns a V1beta1IssuesItemIssues403Error error when the service returns a 403 status code +// returns a V1beta1IssuesItemIssues404Error error when the service returns a 404 status code +// returns a V1beta1IssuesItemIssues405Error error when the service returns a 405 status code +// returns a V1beta1IssuesItemIssues409Error error when the service returns a 409 status code +// returns a V1beta1IssuesItemIssues422Error error when the service returns a 422 status code +// returns a V1beta1IssuesItemIssues500Error error when the service returns a 500 status code +// returns a V1beta1IssuesItemIssues503Error error when the service returns a 503 status code +func (m *V1beta1IssuesIssuesItemRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1IssuesIssuesItemRequestBuilderGetRequestConfiguration)(V1beta1IssuesItemIssuesResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1IssuesItemIssues400ErrorFromDiscriminatorValue, + "401": CreateV1beta1IssuesItemIssues401ErrorFromDiscriminatorValue, + "403": CreateV1beta1IssuesItemIssues403ErrorFromDiscriminatorValue, + "404": CreateV1beta1IssuesItemIssues404ErrorFromDiscriminatorValue, + "405": CreateV1beta1IssuesItemIssues405ErrorFromDiscriminatorValue, + "409": CreateV1beta1IssuesItemIssues409ErrorFromDiscriminatorValue, + "422": CreateV1beta1IssuesItemIssues422ErrorFromDiscriminatorValue, + "500": CreateV1beta1IssuesItemIssues500ErrorFromDiscriminatorValue, + "503": CreateV1beta1IssuesItemIssues503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1IssuesItemIssuesResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1IssuesItemIssuesResponseable), nil +} +// GetAsIssuesGetResponse returns an active issue with the specified id for the account obtained from the request header. The issue must be in the CREATED state +// returns a V1beta1IssuesItemIssuesGetResponseable when successful +// returns a V1beta1IssuesItemIssues400Error error when the service returns a 400 status code +// returns a V1beta1IssuesItemIssues401Error error when the service returns a 401 status code +// returns a V1beta1IssuesItemIssues403Error error when the service returns a 403 status code +// returns a V1beta1IssuesItemIssues404Error error when the service returns a 404 status code +// returns a V1beta1IssuesItemIssues405Error error when the service returns a 405 status code +// returns a V1beta1IssuesItemIssues409Error error when the service returns a 409 status code +// returns a V1beta1IssuesItemIssues422Error error when the service returns a 422 status code +// returns a V1beta1IssuesItemIssues500Error error when the service returns a 500 status code +// returns a V1beta1IssuesItemIssues503Error error when the service returns a 503 status code +func (m *V1beta1IssuesIssuesItemRequestBuilder) GetAsIssuesGetResponse(ctx context.Context, requestConfiguration *V1beta1IssuesIssuesItemRequestBuilderGetRequestConfiguration)(V1beta1IssuesItemIssuesGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1IssuesItemIssues400ErrorFromDiscriminatorValue, + "401": CreateV1beta1IssuesItemIssues401ErrorFromDiscriminatorValue, + "403": CreateV1beta1IssuesItemIssues403ErrorFromDiscriminatorValue, + "404": CreateV1beta1IssuesItemIssues404ErrorFromDiscriminatorValue, + "405": CreateV1beta1IssuesItemIssues405ErrorFromDiscriminatorValue, + "409": CreateV1beta1IssuesItemIssues409ErrorFromDiscriminatorValue, + "422": CreateV1beta1IssuesItemIssues422ErrorFromDiscriminatorValue, + "500": CreateV1beta1IssuesItemIssues500ErrorFromDiscriminatorValue, + "503": CreateV1beta1IssuesItemIssues503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1IssuesItemIssuesGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1IssuesItemIssuesGetResponseable), nil +} +// ToGetRequestInformation returns an active issue with the specified id for the account obtained from the request header. The issue must be in the CREATED state +// returns a *RequestInformation when successful +func (m *V1beta1IssuesIssuesItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1IssuesIssuesItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1IssuesIssuesItemRequestBuilder when successful +func (m *V1beta1IssuesIssuesItemRequestBuilder) WithUrl(rawUrl string)(*V1beta1IssuesIssuesItemRequestBuilder) { + return NewV1beta1IssuesIssuesItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues400_error.go new file mode 100644 index 0000000..86eba5b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesItemIssues400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesItemIssues400Error instantiates a new V1beta1IssuesItemIssues400Error and sets the default values. +func NewV1beta1IssuesItemIssues400Error()(*V1beta1IssuesItemIssues400Error) { + m := &V1beta1IssuesItemIssues400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesItemIssues400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesItemIssues400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesItemIssues400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesItemIssues400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesItemIssues400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesItemIssues400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesItemIssues400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesItemIssues400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesItemIssues400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesItemIssues400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesItemIssues400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesItemIssues400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesItemIssues400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesItemIssues400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesItemIssues400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesItemIssues400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesItemIssues400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues401_error.go new file mode 100644 index 0000000..ad5db9e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesItemIssues401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesItemIssues401Error instantiates a new V1beta1IssuesItemIssues401Error and sets the default values. +func NewV1beta1IssuesItemIssues401Error()(*V1beta1IssuesItemIssues401Error) { + m := &V1beta1IssuesItemIssues401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesItemIssues401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesItemIssues401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesItemIssues401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesItemIssues401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesItemIssues401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesItemIssues401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesItemIssues401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesItemIssues401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesItemIssues401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesItemIssues401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesItemIssues401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesItemIssues401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesItemIssues401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesItemIssues401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesItemIssues401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesItemIssues401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesItemIssues401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues403_error.go new file mode 100644 index 0000000..dd7c44e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesItemIssues403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesItemIssues403Error instantiates a new V1beta1IssuesItemIssues403Error and sets the default values. +func NewV1beta1IssuesItemIssues403Error()(*V1beta1IssuesItemIssues403Error) { + m := &V1beta1IssuesItemIssues403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesItemIssues403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesItemIssues403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesItemIssues403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesItemIssues403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesItemIssues403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesItemIssues403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesItemIssues403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesItemIssues403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesItemIssues403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesItemIssues403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesItemIssues403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesItemIssues403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesItemIssues403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesItemIssues403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesItemIssues403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesItemIssues403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesItemIssues403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues404_error.go new file mode 100644 index 0000000..cc566f7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesItemIssues404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesItemIssues404Error instantiates a new V1beta1IssuesItemIssues404Error and sets the default values. +func NewV1beta1IssuesItemIssues404Error()(*V1beta1IssuesItemIssues404Error) { + m := &V1beta1IssuesItemIssues404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesItemIssues404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesItemIssues404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesItemIssues404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesItemIssues404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesItemIssues404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesItemIssues404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesItemIssues404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesItemIssues404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesItemIssues404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesItemIssues404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesItemIssues404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesItemIssues404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesItemIssues404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesItemIssues404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesItemIssues404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesItemIssues404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesItemIssues404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues405_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues405_error.go new file mode 100644 index 0000000..a47edf0 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues405_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesItemIssues405Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesItemIssues405Error instantiates a new V1beta1IssuesItemIssues405Error and sets the default values. +func NewV1beta1IssuesItemIssues405Error()(*V1beta1IssuesItemIssues405Error) { + m := &V1beta1IssuesItemIssues405Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesItemIssues405ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesItemIssues405ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesItemIssues405Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesItemIssues405Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesItemIssues405Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesItemIssues405Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesItemIssues405Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesItemIssues405Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesItemIssues405Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesItemIssues405Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesItemIssues405Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesItemIssues405Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesItemIssues405Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesItemIssues405Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesItemIssues405Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesItemIssues405Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesItemIssues405Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues409_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues409_error.go new file mode 100644 index 0000000..a6ada1b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues409_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesItemIssues409Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesItemIssues409Error instantiates a new V1beta1IssuesItemIssues409Error and sets the default values. +func NewV1beta1IssuesItemIssues409Error()(*V1beta1IssuesItemIssues409Error) { + m := &V1beta1IssuesItemIssues409Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesItemIssues409ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesItemIssues409ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesItemIssues409Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesItemIssues409Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesItemIssues409Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesItemIssues409Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesItemIssues409Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesItemIssues409Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesItemIssues409Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesItemIssues409Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesItemIssues409Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesItemIssues409Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesItemIssues409Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesItemIssues409Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesItemIssues409Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesItemIssues409Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesItemIssues409Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues422_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues422_error.go new file mode 100644 index 0000000..5e06261 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues422_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesItemIssues422Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesItemIssues422Error instantiates a new V1beta1IssuesItemIssues422Error and sets the default values. +func NewV1beta1IssuesItemIssues422Error()(*V1beta1IssuesItemIssues422Error) { + m := &V1beta1IssuesItemIssues422Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesItemIssues422ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesItemIssues422ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesItemIssues422Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesItemIssues422Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesItemIssues422Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesItemIssues422Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesItemIssues422Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesItemIssues422Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesItemIssues422Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesItemIssues422Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesItemIssues422Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesItemIssues422Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesItemIssues422Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesItemIssues422Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesItemIssues422Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesItemIssues422Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesItemIssues422Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues500_error.go new file mode 100644 index 0000000..d422893 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesItemIssues500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesItemIssues500Error instantiates a new V1beta1IssuesItemIssues500Error and sets the default values. +func NewV1beta1IssuesItemIssues500Error()(*V1beta1IssuesItemIssues500Error) { + m := &V1beta1IssuesItemIssues500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesItemIssues500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesItemIssues500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesItemIssues500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesItemIssues500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesItemIssues500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesItemIssues500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesItemIssues500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesItemIssues500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesItemIssues500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesItemIssues500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesItemIssues500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesItemIssues500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesItemIssues500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesItemIssues500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesItemIssues500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesItemIssues500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesItemIssues500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues503_error.go new file mode 100644 index 0000000..e3e2ad1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesItemIssues503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesItemIssues503Error instantiates a new V1beta1IssuesItemIssues503Error and sets the default values. +func NewV1beta1IssuesItemIssues503Error()(*V1beta1IssuesItemIssues503Error) { + m := &V1beta1IssuesItemIssues503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesItemIssues503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesItemIssues503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesItemIssues503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesItemIssues503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesItemIssues503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesItemIssues503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesItemIssues503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesItemIssues503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesItemIssues503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesItemIssues503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesItemIssues503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesItemIssues503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesItemIssues503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesItemIssues503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesItemIssues503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesItemIssues503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesItemIssues503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_get_response.go new file mode 100644 index 0000000..a97777e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_get_response.go @@ -0,0 +1,778 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesItemIssuesGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Long description with more details including possible remediations. + body *string + // Category of the issue. PERFORMANCE, CAPACITY, etc + category *string + // Time when the issue was cleared. RFC 3339 timestamp + clearedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // Groups this issue is associated with. + groups []V1beta1IssuesItemIssuesGetResponse_groupsable + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The type of the issue. Eg: ISSUE + issueType *string + // Time when the issue last occurred. RFC 3339 timestamp + lastOccurredAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // A system specified name for the resource. + name *string + // Indicates the number of occurrences of the issue + occurrenceCount *int32 + // Recommendation to address the underlying issue. + recommendation *string + // Details of the resources related to the issue + relatedResources []V1beta1IssuesItemIssuesGetResponse_relatedResourcesable + // The self reference for this resource. + resourceUri *string + // Details of the services this issue belongs to + services []string + // Severity of the issue. For issue: CRITICAL, WARNING, INFO. For reco: HIGH, MEDIUM, LOW + severity *string + // An auxiliary calculated attribute to help the end-user filter snoozed and un-snoozed issues + snoozed *bool + // The email id of the last user who snoozed this issue. + snoozedBy *string + // Date-time until this issue will be considered snoozed/inactive until this time. RFC 3339 + snoozedUntil *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Identifier for the source resource that is contained in relatedResources + sourceResourceId *string + // Type of the source resource that is contained in the relatedResources + sourceResourceType *string + // State of the issue. Eg: CREATED, ASSIGNED, CLOSED, SNOOZED, DELETED, etc + state *string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1IssuesItemIssuesGetResponse instantiates a new V1beta1IssuesItemIssuesGetResponse and sets the default values. +func NewV1beta1IssuesItemIssuesGetResponse()(*V1beta1IssuesItemIssuesGetResponse) { + m := &V1beta1IssuesItemIssuesGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesItemIssuesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesItemIssuesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesItemIssuesGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetBody gets the body property value. Long description with more details including possible remediations. +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetBody()(*string) { + return m.body +} +// GetCategory gets the category property value. Category of the issue. PERFORMANCE, CAPACITY, etc +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetCategory()(*string) { + return m.category +} +// GetClearedAt gets the clearedAt property value. Time when the issue was cleared. RFC 3339 timestamp +// returns a *Time when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetClearedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.clearedAt +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["body"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetBody(val) + } + return nil + } + res["category"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCategory(val) + } + return nil + } + res["clearedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetClearedAt(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1IssuesItemIssuesGetResponse_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1IssuesItemIssuesGetResponse_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1IssuesItemIssuesGetResponse_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["issueType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetIssueType(val) + } + return nil + } + res["lastOccurredAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastOccurredAt(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["occurrenceCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOccurrenceCount(val) + } + return nil + } + res["recommendation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRecommendation(val) + } + return nil + } + res["relatedResources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1IssuesItemIssuesGetResponse_relatedResourcesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1IssuesItemIssuesGetResponse_relatedResourcesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1IssuesItemIssuesGetResponse_relatedResourcesable) + } + } + m.SetRelatedResources(res) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["services"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetServices(res) + } + return nil + } + res["severity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSeverity(val) + } + return nil + } + res["snoozed"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetSnoozed(val) + } + return nil + } + res["snoozedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSnoozedBy(val) + } + return nil + } + res["snoozedUntil"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetSnoozedUntil(val) + } + return nil + } + res["sourceResourceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSourceResourceId(val) + } + return nil + } + res["sourceResourceType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSourceResourceType(val) + } + return nil + } + res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetState(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetGeneration()(*int64) { + return m.generation +} +// GetGroups gets the groups property value. Groups this issue is associated with. +// returns a []V1beta1IssuesItemIssuesGetResponse_groupsable when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetGroups()([]V1beta1IssuesItemIssuesGetResponse_groupsable) { + return m.groups +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetIssueType gets the issueType property value. The type of the issue. Eg: ISSUE +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetIssueType()(*string) { + return m.issueType +} +// GetLastOccurredAt gets the lastOccurredAt property value. Time when the issue last occurred. RFC 3339 timestamp +// returns a *Time when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetLastOccurredAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.lastOccurredAt +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetName()(*string) { + return m.name +} +// GetOccurrenceCount gets the occurrenceCount property value. Indicates the number of occurrences of the issue +// returns a *int32 when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetOccurrenceCount()(*int32) { + return m.occurrenceCount +} +// GetRecommendation gets the recommendation property value. Recommendation to address the underlying issue. +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetRecommendation()(*string) { + return m.recommendation +} +// GetRelatedResources gets the relatedResources property value. Details of the resources related to the issue +// returns a []V1beta1IssuesItemIssuesGetResponse_relatedResourcesable when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetRelatedResources()([]V1beta1IssuesItemIssuesGetResponse_relatedResourcesable) { + return m.relatedResources +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetServices gets the services property value. Details of the services this issue belongs to +// returns a []string when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetServices()([]string) { + return m.services +} +// GetSeverity gets the severity property value. Severity of the issue. For issue: CRITICAL, WARNING, INFO. For reco: HIGH, MEDIUM, LOW +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetSeverity()(*string) { + return m.severity +} +// GetSnoozed gets the snoozed property value. An auxiliary calculated attribute to help the end-user filter snoozed and un-snoozed issues +// returns a *bool when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetSnoozed()(*bool) { + return m.snoozed +} +// GetSnoozedBy gets the snoozedBy property value. The email id of the last user who snoozed this issue. +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetSnoozedBy()(*string) { + return m.snoozedBy +} +// GetSnoozedUntil gets the snoozedUntil property value. Date-time until this issue will be considered snoozed/inactive until this time. RFC 3339 +// returns a *Time when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetSnoozedUntil()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.snoozedUntil +} +// GetSourceResourceId gets the sourceResourceId property value. Identifier for the source resource that is contained in relatedResources +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetSourceResourceId()(*string) { + return m.sourceResourceId +} +// GetSourceResourceType gets the sourceResourceType property value. Type of the source resource that is contained in the relatedResources +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetSourceResourceType()(*string) { + return m.sourceResourceType +} +// GetState gets the state property value. State of the issue. Eg: CREATED, ASSIGNED, CLOSED, SNOOZED, DELETED, etc +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetState()(*string) { + return m.state +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1IssuesItemIssuesGetResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1IssuesItemIssuesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("body", m.GetBody()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("category", m.GetCategory()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("clearedAt", m.GetClearedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("issueType", m.GetIssueType()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("lastOccurredAt", m.GetLastOccurredAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("occurrenceCount", m.GetOccurrenceCount()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("recommendation", m.GetRecommendation()) + if err != nil { + return err + } + } + if m.GetRelatedResources() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRelatedResources())) + for i, v := range m.GetRelatedResources() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("relatedResources", cast) + if err != nil { + return err + } + } + if m.GetServices() != nil { + err := writer.WriteCollectionOfStringValues("services", m.GetServices()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("severity", m.GetSeverity()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("snoozed", m.GetSnoozed()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("snoozedBy", m.GetSnoozedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("snoozedUntil", m.GetSnoozedUntil()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sourceResourceId", m.GetSourceResourceId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sourceResourceType", m.GetSourceResourceType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("state", m.GetState()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesItemIssuesGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetBody sets the body property value. Long description with more details including possible remediations. +func (m *V1beta1IssuesItemIssuesGetResponse) SetBody(value *string)() { + m.body = value +} +// SetCategory sets the category property value. Category of the issue. PERFORMANCE, CAPACITY, etc +func (m *V1beta1IssuesItemIssuesGetResponse) SetCategory(value *string)() { + m.category = value +} +// SetClearedAt sets the clearedAt property value. Time when the issue was cleared. RFC 3339 timestamp +func (m *V1beta1IssuesItemIssuesGetResponse) SetClearedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.clearedAt = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1IssuesItemIssuesGetResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1IssuesItemIssuesGetResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1IssuesItemIssuesGetResponse) SetGeneration(value *int64)() { + m.generation = value +} +// SetGroups sets the groups property value. Groups this issue is associated with. +func (m *V1beta1IssuesItemIssuesGetResponse) SetGroups(value []V1beta1IssuesItemIssuesGetResponse_groupsable)() { + m.groups = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1IssuesItemIssuesGetResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetIssueType sets the issueType property value. The type of the issue. Eg: ISSUE +func (m *V1beta1IssuesItemIssuesGetResponse) SetIssueType(value *string)() { + m.issueType = value +} +// SetLastOccurredAt sets the lastOccurredAt property value. Time when the issue last occurred. RFC 3339 timestamp +func (m *V1beta1IssuesItemIssuesGetResponse) SetLastOccurredAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.lastOccurredAt = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1IssuesItemIssuesGetResponse) SetName(value *string)() { + m.name = value +} +// SetOccurrenceCount sets the occurrenceCount property value. Indicates the number of occurrences of the issue +func (m *V1beta1IssuesItemIssuesGetResponse) SetOccurrenceCount(value *int32)() { + m.occurrenceCount = value +} +// SetRecommendation sets the recommendation property value. Recommendation to address the underlying issue. +func (m *V1beta1IssuesItemIssuesGetResponse) SetRecommendation(value *string)() { + m.recommendation = value +} +// SetRelatedResources sets the relatedResources property value. Details of the resources related to the issue +func (m *V1beta1IssuesItemIssuesGetResponse) SetRelatedResources(value []V1beta1IssuesItemIssuesGetResponse_relatedResourcesable)() { + m.relatedResources = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1IssuesItemIssuesGetResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetServices sets the services property value. Details of the services this issue belongs to +func (m *V1beta1IssuesItemIssuesGetResponse) SetServices(value []string)() { + m.services = value +} +// SetSeverity sets the severity property value. Severity of the issue. For issue: CRITICAL, WARNING, INFO. For reco: HIGH, MEDIUM, LOW +func (m *V1beta1IssuesItemIssuesGetResponse) SetSeverity(value *string)() { + m.severity = value +} +// SetSnoozed sets the snoozed property value. An auxiliary calculated attribute to help the end-user filter snoozed and un-snoozed issues +func (m *V1beta1IssuesItemIssuesGetResponse) SetSnoozed(value *bool)() { + m.snoozed = value +} +// SetSnoozedBy sets the snoozedBy property value. The email id of the last user who snoozed this issue. +func (m *V1beta1IssuesItemIssuesGetResponse) SetSnoozedBy(value *string)() { + m.snoozedBy = value +} +// SetSnoozedUntil sets the snoozedUntil property value. Date-time until this issue will be considered snoozed/inactive until this time. RFC 3339 +func (m *V1beta1IssuesItemIssuesGetResponse) SetSnoozedUntil(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.snoozedUntil = value +} +// SetSourceResourceId sets the sourceResourceId property value. Identifier for the source resource that is contained in relatedResources +func (m *V1beta1IssuesItemIssuesGetResponse) SetSourceResourceId(value *string)() { + m.sourceResourceId = value +} +// SetSourceResourceType sets the sourceResourceType property value. Type of the source resource that is contained in the relatedResources +func (m *V1beta1IssuesItemIssuesGetResponse) SetSourceResourceType(value *string)() { + m.sourceResourceType = value +} +// SetState sets the state property value. State of the issue. Eg: CREATED, ASSIGNED, CLOSED, SNOOZED, DELETED, etc +func (m *V1beta1IssuesItemIssuesGetResponse) SetState(value *string)() { + m.state = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1IssuesItemIssuesGetResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1IssuesItemIssuesGetResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1IssuesItemIssuesGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBody()(*string) + GetCategory()(*string) + GetClearedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetGeneration()(*int64) + GetGroups()([]V1beta1IssuesItemIssuesGetResponse_groupsable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetIssueType()(*string) + GetLastOccurredAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetName()(*string) + GetOccurrenceCount()(*int32) + GetRecommendation()(*string) + GetRelatedResources()([]V1beta1IssuesItemIssuesGetResponse_relatedResourcesable) + GetResourceUri()(*string) + GetServices()([]string) + GetSeverity()(*string) + GetSnoozed()(*bool) + GetSnoozedBy()(*string) + GetSnoozedUntil()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetSourceResourceId()(*string) + GetSourceResourceType()(*string) + GetState()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetBody(value *string)() + SetCategory(value *string)() + SetClearedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetGeneration(value *int64)() + SetGroups(value []V1beta1IssuesItemIssuesGetResponse_groupsable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetIssueType(value *string)() + SetLastOccurredAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetName(value *string)() + SetOccurrenceCount(value *int32)() + SetRecommendation(value *string)() + SetRelatedResources(value []V1beta1IssuesItemIssuesGetResponse_relatedResourcesable)() + SetResourceUri(value *string)() + SetServices(value []string)() + SetSeverity(value *string)() + SetSnoozed(value *bool)() + SetSnoozedBy(value *string)() + SetSnoozedUntil(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetSourceResourceId(value *string)() + SetSourceResourceType(value *string)() + SetState(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_get_response_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_get_response_escaped_groups.go new file mode 100644 index 0000000..176efcf --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_get_response_escaped_groups.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesItemIssuesGetResponse_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // ID of the associated group + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the associated group + name *string +} +// NewV1beta1IssuesItemIssuesGetResponse_groups instantiates a new V1beta1IssuesItemIssuesGetResponse_groups and sets the default values. +func NewV1beta1IssuesItemIssuesGetResponse_groups()(*V1beta1IssuesItemIssuesGetResponse_groups) { + m := &V1beta1IssuesItemIssuesGetResponse_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesItemIssuesGetResponse_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesItemIssuesGetResponse_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesItemIssuesGetResponse_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesItemIssuesGetResponse_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesItemIssuesGetResponse_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. ID of the associated group +// returns a *UUID when successful +func (m *V1beta1IssuesItemIssuesGetResponse_groups) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1IssuesItemIssuesGetResponse_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesItemIssuesGetResponse_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. ID of the associated group +func (m *V1beta1IssuesItemIssuesGetResponse_groups) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1IssuesItemIssuesGetResponse_groups) SetName(value *string)() { + m.name = value +} +type V1beta1IssuesItemIssuesGetResponse_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_get_response_escaped_related_resources.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_get_response_escaped_related_resources.go new file mode 100644 index 0000000..f119421 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_get_response_escaped_related_resources.go @@ -0,0 +1,174 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1IssuesItemIssuesGetResponse_relatedResources reference to another resource and additional id for use with Issues +type V1beta1IssuesItemIssuesGetResponse_relatedResources struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // console URI of the related object resource that is the source of the issue + consoleUri *string + // The id property + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The name property + name *string + // The resourceUri property + resourceUri *string + // The type property + typeEscaped *string +} +// NewV1beta1IssuesItemIssuesGetResponse_relatedResources instantiates a new V1beta1IssuesItemIssuesGetResponse_relatedResources and sets the default values. +func NewV1beta1IssuesItemIssuesGetResponse_relatedResources()(*V1beta1IssuesItemIssuesGetResponse_relatedResources) { + m := &V1beta1IssuesItemIssuesGetResponse_relatedResources{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesItemIssuesGetResponse_relatedResourcesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesItemIssuesGetResponse_relatedResourcesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesItemIssuesGetResponse_relatedResources(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesItemIssuesGetResponse_relatedResources) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetConsoleUri gets the consoleUri property value. console URI of the related object resource that is the source of the issue +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse_relatedResources) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesItemIssuesGetResponse_relatedResources) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The id property +// returns a *UUID when successful +func (m *V1beta1IssuesItemIssuesGetResponse_relatedResources) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse_relatedResources) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The resourceUri property +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse_relatedResources) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *V1beta1IssuesItemIssuesGetResponse_relatedResources) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1IssuesItemIssuesGetResponse_relatedResources) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesItemIssuesGetResponse_relatedResources) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetConsoleUri sets the consoleUri property value. console URI of the related object resource that is the source of the issue +func (m *V1beta1IssuesItemIssuesGetResponse_relatedResources) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetId sets the id property value. The id property +func (m *V1beta1IssuesItemIssuesGetResponse_relatedResources) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. The name property +func (m *V1beta1IssuesItemIssuesGetResponse_relatedResources) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The resourceUri property +func (m *V1beta1IssuesItemIssuesGetResponse_relatedResources) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type property +func (m *V1beta1IssuesItemIssuesGetResponse_relatedResources) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1IssuesItemIssuesGetResponse_relatedResourcesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConsoleUri()(*string) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetConsoleUri(value *string)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_response.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_response.go new file mode 100644 index 0000000..486cce0 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_item_issues_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1IssuesItemIssuesGetResponseable instead. +type V1beta1IssuesItemIssuesResponse struct { + V1beta1IssuesItemIssuesGetResponse +} +// NewV1beta1IssuesItemIssuesResponse instantiates a new V1beta1IssuesItemIssuesResponse and sets the default values. +func NewV1beta1IssuesItemIssuesResponse()(*V1beta1IssuesItemIssuesResponse) { + m := &V1beta1IssuesItemIssuesResponse{ + V1beta1IssuesItemIssuesGetResponse: *NewV1beta1IssuesItemIssuesGetResponse(), + } + return m +} +// CreateV1beta1IssuesItemIssuesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesItemIssuesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesItemIssuesResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1IssuesItemIssuesGetResponseable instead. +type V1beta1IssuesItemIssuesResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1IssuesItemIssuesGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata400_error.go new file mode 100644 index 0000000..5af2ec8 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesMetadata400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesMetadata400Error instantiates a new V1beta1IssuesMetadata400Error and sets the default values. +func NewV1beta1IssuesMetadata400Error()(*V1beta1IssuesMetadata400Error) { + m := &V1beta1IssuesMetadata400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesMetadata400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesMetadata400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesMetadata400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesMetadata400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesMetadata400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesMetadata400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesMetadata400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesMetadata400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesMetadata400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesMetadata400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesMetadata400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesMetadata400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesMetadata400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesMetadata400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesMetadata400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesMetadata400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesMetadata400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata401_error.go new file mode 100644 index 0000000..4bbf382 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesMetadata401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesMetadata401Error instantiates a new V1beta1IssuesMetadata401Error and sets the default values. +func NewV1beta1IssuesMetadata401Error()(*V1beta1IssuesMetadata401Error) { + m := &V1beta1IssuesMetadata401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesMetadata401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesMetadata401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesMetadata401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesMetadata401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesMetadata401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesMetadata401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesMetadata401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesMetadata401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesMetadata401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesMetadata401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesMetadata401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesMetadata401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesMetadata401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesMetadata401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesMetadata401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesMetadata401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesMetadata401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata403_error.go new file mode 100644 index 0000000..e87d7be --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesMetadata403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesMetadata403Error instantiates a new V1beta1IssuesMetadata403Error and sets the default values. +func NewV1beta1IssuesMetadata403Error()(*V1beta1IssuesMetadata403Error) { + m := &V1beta1IssuesMetadata403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesMetadata403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesMetadata403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesMetadata403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesMetadata403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesMetadata403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesMetadata403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesMetadata403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesMetadata403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesMetadata403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesMetadata403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesMetadata403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesMetadata403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesMetadata403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesMetadata403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesMetadata403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesMetadata403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesMetadata403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata404_error.go new file mode 100644 index 0000000..56eef92 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesMetadata404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesMetadata404Error instantiates a new V1beta1IssuesMetadata404Error and sets the default values. +func NewV1beta1IssuesMetadata404Error()(*V1beta1IssuesMetadata404Error) { + m := &V1beta1IssuesMetadata404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesMetadata404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesMetadata404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesMetadata404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesMetadata404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesMetadata404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesMetadata404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesMetadata404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesMetadata404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesMetadata404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesMetadata404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesMetadata404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesMetadata404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesMetadata404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesMetadata404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesMetadata404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesMetadata404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesMetadata404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata405_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata405_error.go new file mode 100644 index 0000000..0e4a5d1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata405_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesMetadata405Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesMetadata405Error instantiates a new V1beta1IssuesMetadata405Error and sets the default values. +func NewV1beta1IssuesMetadata405Error()(*V1beta1IssuesMetadata405Error) { + m := &V1beta1IssuesMetadata405Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesMetadata405ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesMetadata405ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesMetadata405Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesMetadata405Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesMetadata405Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesMetadata405Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesMetadata405Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesMetadata405Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesMetadata405Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesMetadata405Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesMetadata405Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesMetadata405Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesMetadata405Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesMetadata405Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesMetadata405Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesMetadata405Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesMetadata405Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata422_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata422_error.go new file mode 100644 index 0000000..95593ef --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata422_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesMetadata422Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesMetadata422Error instantiates a new V1beta1IssuesMetadata422Error and sets the default values. +func NewV1beta1IssuesMetadata422Error()(*V1beta1IssuesMetadata422Error) { + m := &V1beta1IssuesMetadata422Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesMetadata422ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesMetadata422ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesMetadata422Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesMetadata422Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesMetadata422Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesMetadata422Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesMetadata422Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesMetadata422Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesMetadata422Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesMetadata422Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesMetadata422Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesMetadata422Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesMetadata422Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesMetadata422Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesMetadata422Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesMetadata422Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesMetadata422Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata500_error.go new file mode 100644 index 0000000..c1d2517 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesMetadata500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesMetadata500Error instantiates a new V1beta1IssuesMetadata500Error and sets the default values. +func NewV1beta1IssuesMetadata500Error()(*V1beta1IssuesMetadata500Error) { + m := &V1beta1IssuesMetadata500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesMetadata500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesMetadata500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesMetadata500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesMetadata500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesMetadata500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesMetadata500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesMetadata500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesMetadata500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesMetadata500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesMetadata500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesMetadata500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesMetadata500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesMetadata500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesMetadata500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesMetadata500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesMetadata500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesMetadata500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata503_error.go new file mode 100644 index 0000000..69fadac --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesMetadata503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1IssuesMetadata503Error instantiates a new V1beta1IssuesMetadata503Error and sets the default values. +func NewV1beta1IssuesMetadata503Error()(*V1beta1IssuesMetadata503Error) { + m := &V1beta1IssuesMetadata503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesMetadata503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesMetadata503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesMetadata503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1IssuesMetadata503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesMetadata503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1IssuesMetadata503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1IssuesMetadata503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesMetadata503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1IssuesMetadata503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1IssuesMetadata503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1IssuesMetadata503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesMetadata503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1IssuesMetadata503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1IssuesMetadata503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1IssuesMetadata503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1IssuesMetadata503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1IssuesMetadata503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response.go new file mode 100644 index 0000000..82a2ab5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response.go @@ -0,0 +1,179 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesMetadataGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Number of items in this response. + count *int32 + // The issues metadata returned by the query. + items []V1beta1IssuesMetadataGetResponse_itemsable + // The offset query parameter from the request. + offset *int32 + // Total number of items matching the filter parameter in the request. + total *int32 +} +// NewV1beta1IssuesMetadataGetResponse instantiates a new V1beta1IssuesMetadataGetResponse and sets the default values. +func NewV1beta1IssuesMetadataGetResponse()(*V1beta1IssuesMetadataGetResponse) { + m := &V1beta1IssuesMetadataGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesMetadataGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesMetadataGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesMetadataGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesMetadataGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Number of items in this response. +// returns a *int32 when successful +func (m *V1beta1IssuesMetadataGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesMetadataGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1IssuesMetadataGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1IssuesMetadataGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1IssuesMetadataGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetItems gets the items property value. The issues metadata returned by the query. +// returns a []V1beta1IssuesMetadataGetResponse_itemsable when successful +func (m *V1beta1IssuesMetadataGetResponse) GetItems()([]V1beta1IssuesMetadataGetResponse_itemsable) { + return m.items +} +// GetOffset gets the offset property value. The offset query parameter from the request. +// returns a *int32 when successful +func (m *V1beta1IssuesMetadataGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetTotal gets the total property value. Total number of items matching the filter parameter in the request. +// returns a *int32 when successful +func (m *V1beta1IssuesMetadataGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1IssuesMetadataGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesMetadataGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Number of items in this response. +func (m *V1beta1IssuesMetadataGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. The issues metadata returned by the query. +func (m *V1beta1IssuesMetadataGetResponse) SetItems(value []V1beta1IssuesMetadataGetResponse_itemsable)() { + m.items = value +} +// SetOffset sets the offset property value. The offset query parameter from the request. +func (m *V1beta1IssuesMetadataGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetTotal sets the total property value. Total number of items matching the filter parameter in the request. +func (m *V1beta1IssuesMetadataGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1IssuesMetadataGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1IssuesMetadataGetResponse_itemsable) + GetOffset()(*int32) + GetTotal()(*int32) + SetCount(value *int32)() + SetItems(value []V1beta1IssuesMetadataGetResponse_itemsable)() + SetOffset(value *int32)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items.go new file mode 100644 index 0000000..8176017 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items.go @@ -0,0 +1,378 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesMetadataGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The categories property + categories []V1beta1IssuesMetadataGetResponse_items_categoriesable + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // A system specified name for the resource. + name *string + // The self reference for this resource. + resourceUri *string + // The services property + services []V1beta1IssuesMetadataGetResponse_items_servicesable + // The severities property + severities []V1beta1IssuesMetadataGetResponse_items_severitiesable + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1IssuesMetadataGetResponse_items instantiates a new V1beta1IssuesMetadataGetResponse_items and sets the default values. +func NewV1beta1IssuesMetadataGetResponse_items()(*V1beta1IssuesMetadataGetResponse_items) { + m := &V1beta1IssuesMetadataGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesMetadataGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesMetadataGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesMetadataGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesMetadataGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCategories gets the categories property value. The categories property +// returns a []V1beta1IssuesMetadataGetResponse_items_categoriesable when successful +func (m *V1beta1IssuesMetadataGetResponse_items) GetCategories()([]V1beta1IssuesMetadataGetResponse_items_categoriesable) { + return m.categories +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1IssuesMetadataGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1IssuesMetadataGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesMetadataGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["categories"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1IssuesMetadataGetResponse_items_categoriesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1IssuesMetadataGetResponse_items_categoriesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1IssuesMetadataGetResponse_items_categoriesable) + } + } + m.SetCategories(res) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["services"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1IssuesMetadataGetResponse_items_servicesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1IssuesMetadataGetResponse_items_servicesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1IssuesMetadataGetResponse_items_servicesable) + } + } + m.SetServices(res) + } + return nil + } + res["severities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1IssuesMetadataGetResponse_items_severitiesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1IssuesMetadataGetResponse_items_severitiesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1IssuesMetadataGetResponse_items_severitiesable) + } + } + m.SetSeverities(res) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1IssuesMetadataGetResponse_items) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1IssuesMetadataGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1IssuesMetadataGetResponse_items) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1IssuesMetadataGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetServices gets the services property value. The services property +// returns a []V1beta1IssuesMetadataGetResponse_items_servicesable when successful +func (m *V1beta1IssuesMetadataGetResponse_items) GetServices()([]V1beta1IssuesMetadataGetResponse_items_servicesable) { + return m.services +} +// GetSeverities gets the severities property value. The severities property +// returns a []V1beta1IssuesMetadataGetResponse_items_severitiesable when successful +func (m *V1beta1IssuesMetadataGetResponse_items) GetSeverities()([]V1beta1IssuesMetadataGetResponse_items_severitiesable) { + return m.severities +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1IssuesMetadataGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1IssuesMetadataGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1IssuesMetadataGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetCategories() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCategories())) + for i, v := range m.GetCategories() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("categories", cast) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + if m.GetServices() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetServices())) + for i, v := range m.GetServices() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("services", cast) + if err != nil { + return err + } + } + if m.GetSeverities() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSeverities())) + for i, v := range m.GetSeverities() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("severities", cast) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesMetadataGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCategories sets the categories property value. The categories property +func (m *V1beta1IssuesMetadataGetResponse_items) SetCategories(value []V1beta1IssuesMetadataGetResponse_items_categoriesable)() { + m.categories = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1IssuesMetadataGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1IssuesMetadataGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1IssuesMetadataGetResponse_items) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1IssuesMetadataGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1IssuesMetadataGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1IssuesMetadataGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetServices sets the services property value. The services property +func (m *V1beta1IssuesMetadataGetResponse_items) SetServices(value []V1beta1IssuesMetadataGetResponse_items_servicesable)() { + m.services = value +} +// SetSeverities sets the severities property value. The severities property +func (m *V1beta1IssuesMetadataGetResponse_items) SetSeverities(value []V1beta1IssuesMetadataGetResponse_items_severitiesable)() { + m.severities = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1IssuesMetadataGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1IssuesMetadataGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1IssuesMetadataGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCategories()([]V1beta1IssuesMetadataGetResponse_items_categoriesable) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetServices()([]V1beta1IssuesMetadataGetResponse_items_servicesable) + GetSeverities()([]V1beta1IssuesMetadataGetResponse_items_severitiesable) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetCategories(value []V1beta1IssuesMetadataGetResponse_items_categoriesable)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetServices(value []V1beta1IssuesMetadataGetResponse_items_servicesable)() + SetSeverities(value []V1beta1IssuesMetadataGetResponse_items_severitiesable)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items_escaped_categories.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items_escaped_categories.go new file mode 100644 index 0000000..a349643 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items_escaped_categories.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesMetadataGetResponse_items_categories struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Key associated with given Metadata + key *string + // Value of the Metadata + value *string +} +// NewV1beta1IssuesMetadataGetResponse_items_categories instantiates a new V1beta1IssuesMetadataGetResponse_items_categories and sets the default values. +func NewV1beta1IssuesMetadataGetResponse_items_categories()(*V1beta1IssuesMetadataGetResponse_items_categories) { + m := &V1beta1IssuesMetadataGetResponse_items_categories{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesMetadataGetResponse_items_categoriesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesMetadataGetResponse_items_categoriesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesMetadataGetResponse_items_categories(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesMetadataGetResponse_items_categories) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesMetadataGetResponse_items_categories) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["key"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetKey(val) + } + return nil + } + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetKey gets the key property value. Key associated with given Metadata +// returns a *string when successful +func (m *V1beta1IssuesMetadataGetResponse_items_categories) GetKey()(*string) { + return m.key +} +// GetValue gets the value property value. Value of the Metadata +// returns a *string when successful +func (m *V1beta1IssuesMetadataGetResponse_items_categories) GetValue()(*string) { + return m.value +} +// Serialize serializes information the current object +func (m *V1beta1IssuesMetadataGetResponse_items_categories) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("key", m.GetKey()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("value", m.GetValue()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesMetadataGetResponse_items_categories) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetKey sets the key property value. Key associated with given Metadata +func (m *V1beta1IssuesMetadataGetResponse_items_categories) SetKey(value *string)() { + m.key = value +} +// SetValue sets the value property value. Value of the Metadata +func (m *V1beta1IssuesMetadataGetResponse_items_categories) SetValue(value *string)() { + m.value = value +} +type V1beta1IssuesMetadataGetResponse_items_categoriesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetKey()(*string) + GetValue()(*string) + SetKey(value *string)() + SetValue(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items_escaped_services.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items_escaped_services.go new file mode 100644 index 0000000..6f12d53 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items_escaped_services.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesMetadataGetResponse_items_services struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Key associated with given Metadata + key *string + // Value of the Metadata + value *string +} +// NewV1beta1IssuesMetadataGetResponse_items_services instantiates a new V1beta1IssuesMetadataGetResponse_items_services and sets the default values. +func NewV1beta1IssuesMetadataGetResponse_items_services()(*V1beta1IssuesMetadataGetResponse_items_services) { + m := &V1beta1IssuesMetadataGetResponse_items_services{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesMetadataGetResponse_items_servicesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesMetadataGetResponse_items_servicesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesMetadataGetResponse_items_services(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesMetadataGetResponse_items_services) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesMetadataGetResponse_items_services) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["key"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetKey(val) + } + return nil + } + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetKey gets the key property value. Key associated with given Metadata +// returns a *string when successful +func (m *V1beta1IssuesMetadataGetResponse_items_services) GetKey()(*string) { + return m.key +} +// GetValue gets the value property value. Value of the Metadata +// returns a *string when successful +func (m *V1beta1IssuesMetadataGetResponse_items_services) GetValue()(*string) { + return m.value +} +// Serialize serializes information the current object +func (m *V1beta1IssuesMetadataGetResponse_items_services) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("key", m.GetKey()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("value", m.GetValue()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesMetadataGetResponse_items_services) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetKey sets the key property value. Key associated with given Metadata +func (m *V1beta1IssuesMetadataGetResponse_items_services) SetKey(value *string)() { + m.key = value +} +// SetValue sets the value property value. Value of the Metadata +func (m *V1beta1IssuesMetadataGetResponse_items_services) SetValue(value *string)() { + m.value = value +} +type V1beta1IssuesMetadataGetResponse_items_servicesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetKey()(*string) + GetValue()(*string) + SetKey(value *string)() + SetValue(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items_escaped_severities.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items_escaped_severities.go new file mode 100644 index 0000000..a0f4931 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_get_response_escaped_items_escaped_severities.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1IssuesMetadataGetResponse_items_severities struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Key associated with given Metadata + key *string + // Value of the Metadata + value *string +} +// NewV1beta1IssuesMetadataGetResponse_items_severities instantiates a new V1beta1IssuesMetadataGetResponse_items_severities and sets the default values. +func NewV1beta1IssuesMetadataGetResponse_items_severities()(*V1beta1IssuesMetadataGetResponse_items_severities) { + m := &V1beta1IssuesMetadataGetResponse_items_severities{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1IssuesMetadataGetResponse_items_severitiesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesMetadataGetResponse_items_severitiesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesMetadataGetResponse_items_severities(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1IssuesMetadataGetResponse_items_severities) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1IssuesMetadataGetResponse_items_severities) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["key"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetKey(val) + } + return nil + } + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetKey gets the key property value. Key associated with given Metadata +// returns a *string when successful +func (m *V1beta1IssuesMetadataGetResponse_items_severities) GetKey()(*string) { + return m.key +} +// GetValue gets the value property value. Value of the Metadata +// returns a *string when successful +func (m *V1beta1IssuesMetadataGetResponse_items_severities) GetValue()(*string) { + return m.value +} +// Serialize serializes information the current object +func (m *V1beta1IssuesMetadataGetResponse_items_severities) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("key", m.GetKey()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("value", m.GetValue()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1IssuesMetadataGetResponse_items_severities) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetKey sets the key property value. Key associated with given Metadata +func (m *V1beta1IssuesMetadataGetResponse_items_severities) SetKey(value *string)() { + m.key = value +} +// SetValue sets the value property value. Value of the Metadata +func (m *V1beta1IssuesMetadataGetResponse_items_severities) SetValue(value *string)() { + m.value = value +} +type V1beta1IssuesMetadataGetResponse_items_severitiesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetKey()(*string) + GetValue()(*string) + SetKey(value *string)() + SetValue(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_request_builder.go new file mode 100644 index 0000000..f7d39df --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_request_builder.go @@ -0,0 +1,128 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1IssuesMetadataRequestBuilder builds and executes requests for operations under \data-services\v1beta1\issues-metadata +type V1beta1IssuesMetadataRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1IssuesMetadataRequestBuilderGetQueryParameters returns the list of values of category, services, and severity supported by Issues.Functionalities like query parameters, filtering, sorting, grouping, and paging are not supported. +type V1beta1IssuesMetadataRequestBuilderGetQueryParameters struct { + // The numbers of items to return + Limit *int32 `uriparametername:"limit"` + // The number of items to skip before starting to collect the result set + Offset *int32 `uriparametername:"offset"` +} +// V1beta1IssuesMetadataRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1IssuesMetadataRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1IssuesMetadataRequestBuilderGetQueryParameters +} +// NewV1beta1IssuesMetadataRequestBuilderInternal instantiates a new V1beta1IssuesMetadataRequestBuilder and sets the default values. +func NewV1beta1IssuesMetadataRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1IssuesMetadataRequestBuilder) { + m := &V1beta1IssuesMetadataRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/issues-metadata{?limit*,offset*}", pathParameters), + } + return m +} +// NewV1beta1IssuesMetadataRequestBuilder instantiates a new V1beta1IssuesMetadataRequestBuilder and sets the default values. +func NewV1beta1IssuesMetadataRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1IssuesMetadataRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1IssuesMetadataRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns the list of values of category, services, and severity supported by Issues.Functionalities like query parameters, filtering, sorting, grouping, and paging are not supported. +// Deprecated: This method is obsolete. Use GetAsIssuesMetadataGetResponse instead. +// returns a V1beta1IssuesMetadataResponseable when successful +// returns a V1beta1IssuesMetadata400Error error when the service returns a 400 status code +// returns a V1beta1IssuesMetadata401Error error when the service returns a 401 status code +// returns a V1beta1IssuesMetadata403Error error when the service returns a 403 status code +// returns a V1beta1IssuesMetadata404Error error when the service returns a 404 status code +// returns a V1beta1IssuesMetadata405Error error when the service returns a 405 status code +// returns a V1beta1IssuesMetadata422Error error when the service returns a 422 status code +// returns a V1beta1IssuesMetadata500Error error when the service returns a 500 status code +// returns a V1beta1IssuesMetadata503Error error when the service returns a 503 status code +func (m *V1beta1IssuesMetadataRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1IssuesMetadataRequestBuilderGetRequestConfiguration)(V1beta1IssuesMetadataResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1IssuesMetadata400ErrorFromDiscriminatorValue, + "401": CreateV1beta1IssuesMetadata401ErrorFromDiscriminatorValue, + "403": CreateV1beta1IssuesMetadata403ErrorFromDiscriminatorValue, + "404": CreateV1beta1IssuesMetadata404ErrorFromDiscriminatorValue, + "405": CreateV1beta1IssuesMetadata405ErrorFromDiscriminatorValue, + "422": CreateV1beta1IssuesMetadata422ErrorFromDiscriminatorValue, + "500": CreateV1beta1IssuesMetadata500ErrorFromDiscriminatorValue, + "503": CreateV1beta1IssuesMetadata503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1IssuesMetadataResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1IssuesMetadataResponseable), nil +} +// GetAsIssuesMetadataGetResponse returns the list of values of category, services, and severity supported by Issues.Functionalities like query parameters, filtering, sorting, grouping, and paging are not supported. +// returns a V1beta1IssuesMetadataGetResponseable when successful +// returns a V1beta1IssuesMetadata400Error error when the service returns a 400 status code +// returns a V1beta1IssuesMetadata401Error error when the service returns a 401 status code +// returns a V1beta1IssuesMetadata403Error error when the service returns a 403 status code +// returns a V1beta1IssuesMetadata404Error error when the service returns a 404 status code +// returns a V1beta1IssuesMetadata405Error error when the service returns a 405 status code +// returns a V1beta1IssuesMetadata422Error error when the service returns a 422 status code +// returns a V1beta1IssuesMetadata500Error error when the service returns a 500 status code +// returns a V1beta1IssuesMetadata503Error error when the service returns a 503 status code +func (m *V1beta1IssuesMetadataRequestBuilder) GetAsIssuesMetadataGetResponse(ctx context.Context, requestConfiguration *V1beta1IssuesMetadataRequestBuilderGetRequestConfiguration)(V1beta1IssuesMetadataGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1IssuesMetadata400ErrorFromDiscriminatorValue, + "401": CreateV1beta1IssuesMetadata401ErrorFromDiscriminatorValue, + "403": CreateV1beta1IssuesMetadata403ErrorFromDiscriminatorValue, + "404": CreateV1beta1IssuesMetadata404ErrorFromDiscriminatorValue, + "405": CreateV1beta1IssuesMetadata405ErrorFromDiscriminatorValue, + "422": CreateV1beta1IssuesMetadata422ErrorFromDiscriminatorValue, + "500": CreateV1beta1IssuesMetadata500ErrorFromDiscriminatorValue, + "503": CreateV1beta1IssuesMetadata503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1IssuesMetadataGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1IssuesMetadataGetResponseable), nil +} +// ToGetRequestInformation returns the list of values of category, services, and severity supported by Issues.Functionalities like query parameters, filtering, sorting, grouping, and paging are not supported. +// returns a *RequestInformation when successful +func (m *V1beta1IssuesMetadataRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1IssuesMetadataRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1IssuesMetadataRequestBuilder when successful +func (m *V1beta1IssuesMetadataRequestBuilder) WithUrl(rawUrl string)(*V1beta1IssuesMetadataRequestBuilder) { + return NewV1beta1IssuesMetadataRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_response.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_response.go new file mode 100644 index 0000000..4b2bd59 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_metadata_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1IssuesMetadataGetResponseable instead. +type V1beta1IssuesMetadataResponse struct { + V1beta1IssuesMetadataGetResponse +} +// NewV1beta1IssuesMetadataResponse instantiates a new V1beta1IssuesMetadataResponse and sets the default values. +func NewV1beta1IssuesMetadataResponse()(*V1beta1IssuesMetadataResponse) { + m := &V1beta1IssuesMetadataResponse{ + V1beta1IssuesMetadataGetResponse: *NewV1beta1IssuesMetadataGetResponse(), + } + return m +} +// CreateV1beta1IssuesMetadataResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesMetadataResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesMetadataResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1IssuesMetadataGetResponseable instead. +type V1beta1IssuesMetadataResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1IssuesMetadataGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_request_builder.go new file mode 100644 index 0000000..5ea6a68 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_request_builder.go @@ -0,0 +1,158 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" +) + +// V1beta1IssuesRequestBuilder builds and executes requests for operations under \data-services\v1beta1\issues +type V1beta1IssuesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1IssuesRequestBuilderGetQueryParameters returns the list of active issues for the account and user obtained from the request header. The list includesissues only for the resource-types that the user has permissions to view. Active issues are issues in the CREATED state. Clients using this API must process the returned issues for any desired groupings. +type V1beta1IssuesRequestBuilderGetQueryParameters struct { + // The expression used to filter responses. You can filter on the following properties: `issueType`, `severity`, `category`, `state`, `createdAt`, `services`, `sourceResourceId`, `sourceResourceType`. You can combine multiple comparison operators using “and”.The returned set of resources must match the criteria in the filter query parameterA comparison compares a property name to a literal. The comparisons supported are the following:“eq” : Is a property equal to value. Valid for number, boolean and string properties.“gt” : Is a property greater than a value. Valid for number or string timestamp properties.“lt” : Is a property less than a value. Valid for number or string timestamp properties“in” : Is a value in a property. The property is an array of number, boolean or string properties."contains": Is a substring value that is equal to a portion of the property value. Valid for strings.Syntax: “eq” : filter= eq {host:port}/data-services/v1beta1/issues?filter= eq “gt” : filter= gt {host:port}/data-services/v1beta1/issues?filter= gt “lt” : filter= lt {host:port}/data-services/v1beta1/issues?filter= lt “in” : filter= in {host:port}/data-services/v1beta1/issues?filter= in “contains” : filter=contains(property,value) {host:port}/data-services/v1beta1/issues?filter=contains(property,value)* Can use and to add more filter inputs {host:port}/data-services/v1beta1/issues?filter= eq and lt * To filter multiple values on one property e.g. filter=severity in ('CRITICAL','WARNING') {host:port}/data-services/v1beta1/issues?filter=severity%20in%20CRITICAL%2CWARNINGExamples:GET /data-services/v1beta1/issues?filter=issueType eq 'ISSUE'GET /data-services/v1beta1/issues?filter=issueType eq 'ISSUE' & state eq 'CREATED'GET /data-services/v1beta1/issues?filter=contains(sourceResourceType,'orchestrator')GET /data-services/v1beta1/issues?filter='data-ops-manager' in servicesFilters are supported on following attributes:issueType,severity,category,state,createdAt,services,sourceResourceId,sourceResourceType + Filter *string `uriparametername:"filter"` + // Use limit in conjunction with offset for paging. The limit is the maximum number of items to include in the response. + Limit *int32 `uriparametername:"limit"` + // Use offset in conjunction with limit for paging. The offset is the number of items from the beginningof the result set to the first item included in the response. + Offset *int32 `uriparametername:"offset"` + // The select query parameter is used to limit the properties returned with a resource or collection-level GET.Multiple properties can be listed to be returned. The server must only return the set of properties requested by the client.The property “select” is the name of the select query parameter; its value is the list of properties to return separated by commas. + Select *string `uriparametername:"select"` + // resource property to sort, with an order appendedOrder may only be either “asc” (ascending) or “desc” (descending) + Sort *string `uriparametername:"sort"` +} +// V1beta1IssuesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1IssuesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1IssuesRequestBuilderGetQueryParameters +} +// ById gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.issues.item collection +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. +// returns a *V1beta1IssuesIssuesItemRequestBuilder when successful +func (m *V1beta1IssuesRequestBuilder) ById(id string)(*V1beta1IssuesIssuesItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["id"] = id + } + return NewV1beta1IssuesIssuesItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ByIdGuid gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.issues.item collection +// returns a *V1beta1IssuesIssuesItemRequestBuilder when successful +func (m *V1beta1IssuesRequestBuilder) ByIdGuid(id i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*V1beta1IssuesIssuesItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["id"] = id.String() + return NewV1beta1IssuesIssuesItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1IssuesRequestBuilderInternal instantiates a new V1beta1IssuesRequestBuilder and sets the default values. +func NewV1beta1IssuesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1IssuesRequestBuilder) { + m := &V1beta1IssuesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/issues{?filter*,limit*,offset*,select*,sort*}", pathParameters), + } + return m +} +// NewV1beta1IssuesRequestBuilder instantiates a new V1beta1IssuesRequestBuilder and sets the default values. +func NewV1beta1IssuesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1IssuesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1IssuesRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns the list of active issues for the account and user obtained from the request header. The list includesissues only for the resource-types that the user has permissions to view. Active issues are issues in the CREATED state. Clients using this API must process the returned issues for any desired groupings. +// Deprecated: This method is obsolete. Use GetAsIssuesGetResponse instead. +// returns a V1beta1IssuesResponseable when successful +// returns a V1beta1Issues400Error error when the service returns a 400 status code +// returns a V1beta1Issues401Error error when the service returns a 401 status code +// returns a V1beta1Issues403Error error when the service returns a 403 status code +// returns a V1beta1Issues404Error error when the service returns a 404 status code +// returns a V1beta1Issues405Error error when the service returns a 405 status code +// returns a V1beta1Issues422Error error when the service returns a 422 status code +// returns a V1beta1Issues500Error error when the service returns a 500 status code +// returns a V1beta1Issues503Error error when the service returns a 503 status code +func (m *V1beta1IssuesRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1IssuesRequestBuilderGetRequestConfiguration)(V1beta1IssuesResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Issues400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Issues401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Issues403ErrorFromDiscriminatorValue, + "404": CreateV1beta1Issues404ErrorFromDiscriminatorValue, + "405": CreateV1beta1Issues405ErrorFromDiscriminatorValue, + "422": CreateV1beta1Issues422ErrorFromDiscriminatorValue, + "500": CreateV1beta1Issues500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Issues503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1IssuesResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1IssuesResponseable), nil +} +// GetAsIssuesGetResponse returns the list of active issues for the account and user obtained from the request header. The list includesissues only for the resource-types that the user has permissions to view. Active issues are issues in the CREATED state. Clients using this API must process the returned issues for any desired groupings. +// returns a V1beta1IssuesGetResponseable when successful +// returns a V1beta1Issues400Error error when the service returns a 400 status code +// returns a V1beta1Issues401Error error when the service returns a 401 status code +// returns a V1beta1Issues403Error error when the service returns a 403 status code +// returns a V1beta1Issues404Error error when the service returns a 404 status code +// returns a V1beta1Issues405Error error when the service returns a 405 status code +// returns a V1beta1Issues422Error error when the service returns a 422 status code +// returns a V1beta1Issues500Error error when the service returns a 500 status code +// returns a V1beta1Issues503Error error when the service returns a 503 status code +func (m *V1beta1IssuesRequestBuilder) GetAsIssuesGetResponse(ctx context.Context, requestConfiguration *V1beta1IssuesRequestBuilderGetRequestConfiguration)(V1beta1IssuesGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Issues400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Issues401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Issues403ErrorFromDiscriminatorValue, + "404": CreateV1beta1Issues404ErrorFromDiscriminatorValue, + "405": CreateV1beta1Issues405ErrorFromDiscriminatorValue, + "422": CreateV1beta1Issues422ErrorFromDiscriminatorValue, + "500": CreateV1beta1Issues500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Issues503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1IssuesGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1IssuesGetResponseable), nil +} +// ToGetRequestInformation returns the list of active issues for the account and user obtained from the request header. The list includesissues only for the resource-types that the user has permissions to view. Active issues are issues in the CREATED state. Clients using this API must process the returned issues for any desired groupings. +// returns a *RequestInformation when successful +func (m *V1beta1IssuesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1IssuesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1IssuesRequestBuilder when successful +func (m *V1beta1IssuesRequestBuilder) WithUrl(rawUrl string)(*V1beta1IssuesRequestBuilder) { + return NewV1beta1IssuesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_issues_response.go b/internal/sdk/dataservices/dataservices/v1beta1_issues_response.go new file mode 100644 index 0000000..7c3dbb6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_issues_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1IssuesGetResponseable instead. +type V1beta1IssuesResponse struct { + V1beta1IssuesGetResponse +} +// NewV1beta1IssuesResponse instantiates a new V1beta1IssuesResponse and sets the default values. +func NewV1beta1IssuesResponse()(*V1beta1IssuesResponse) { + m := &V1beta1IssuesResponse{ + V1beta1IssuesGetResponse: *NewV1beta1IssuesGetResponse(), + } + return m +} +// CreateV1beta1IssuesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1IssuesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1IssuesResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1IssuesGetResponseable instead. +type V1beta1IssuesResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1IssuesGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens400_error.go new file mode 100644 index 0000000..3adf48f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens400_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1OneTimeTokens400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: BAD_REQUEST, INVALID_PARAMETER + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1OneTimeTokens400Error instantiates a new V1beta1OneTimeTokens400Error and sets the default values. +func NewV1beta1OneTimeTokens400Error()(*V1beta1OneTimeTokens400Error) { + m := &V1beta1OneTimeTokens400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1OneTimeTokens400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1OneTimeTokens400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1OneTimeTokens400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1OneTimeTokens400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1OneTimeTokens400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: BAD_REQUEST, INVALID_PARAMETER +// returns a UntypedNodeable when successful +func (m *V1beta1OneTimeTokens400Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1OneTimeTokens400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1OneTimeTokens400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1OneTimeTokens400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: BAD_REQUEST, INVALID_PARAMETER +func (m *V1beta1OneTimeTokens400Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1OneTimeTokens400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens401_error.go new file mode 100644 index 0000000..1cc09cd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens401_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1OneTimeTokens401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: UNAUTHENTICATED + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1OneTimeTokens401Error instantiates a new V1beta1OneTimeTokens401Error and sets the default values. +func NewV1beta1OneTimeTokens401Error()(*V1beta1OneTimeTokens401Error) { + m := &V1beta1OneTimeTokens401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1OneTimeTokens401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1OneTimeTokens401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1OneTimeTokens401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1OneTimeTokens401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1OneTimeTokens401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: UNAUTHENTICATED +// returns a UntypedNodeable when successful +func (m *V1beta1OneTimeTokens401Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1OneTimeTokens401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1OneTimeTokens401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1OneTimeTokens401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: UNAUTHENTICATED +func (m *V1beta1OneTimeTokens401Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1OneTimeTokens401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens500_error.go new file mode 100644 index 0000000..5438cf4 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens500_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1OneTimeTokens500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: INTERNAL_ERROR + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1OneTimeTokens500Error instantiates a new V1beta1OneTimeTokens500Error and sets the default values. +func NewV1beta1OneTimeTokens500Error()(*V1beta1OneTimeTokens500Error) { + m := &V1beta1OneTimeTokens500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1OneTimeTokens500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1OneTimeTokens500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1OneTimeTokens500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1OneTimeTokens500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1OneTimeTokens500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: INTERNAL_ERROR +// returns a UntypedNodeable when successful +func (m *V1beta1OneTimeTokens500Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1OneTimeTokens500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1OneTimeTokens500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1OneTimeTokens500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: INTERNAL_ERROR +func (m *V1beta1OneTimeTokens500Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1OneTimeTokens500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens503_error.go new file mode 100644 index 0000000..4b021a2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens503_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1OneTimeTokens503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: SERVICE_UNAVAILABLE + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1OneTimeTokens503Error instantiates a new V1beta1OneTimeTokens503Error and sets the default values. +func NewV1beta1OneTimeTokens503Error()(*V1beta1OneTimeTokens503Error) { + m := &V1beta1OneTimeTokens503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1OneTimeTokens503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1OneTimeTokens503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1OneTimeTokens503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1OneTimeTokens503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1OneTimeTokens503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: SERVICE_UNAVAILABLE +// returns a UntypedNodeable when successful +func (m *V1beta1OneTimeTokens503Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1OneTimeTokens503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1OneTimeTokens503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1OneTimeTokens503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: SERVICE_UNAVAILABLE +func (m *V1beta1OneTimeTokens503Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1OneTimeTokens503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens_post_response.go b/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens_post_response.go new file mode 100644 index 0000000..ea26c31 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens_post_response.go @@ -0,0 +1,190 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1OneTimeTokensPostResponse struct { + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // The token expiration time as an RFC 3339 timestamp + expiresAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // A JWT that can be used to authenticate to DSCC services that accept one time use tokens + token *string + // The type of resource. + typeEscaped *string +} +// NewV1beta1OneTimeTokensPostResponse instantiates a new V1beta1OneTimeTokensPostResponse and sets the default values. +func NewV1beta1OneTimeTokensPostResponse()(*V1beta1OneTimeTokensPostResponse) { + m := &V1beta1OneTimeTokensPostResponse{ + } + return m +} +// CreateV1beta1OneTimeTokensPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1OneTimeTokensPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1OneTimeTokensPostResponse(), nil +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1OneTimeTokensPostResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1OneTimeTokensPostResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetExpiresAt gets the expiresAt property value. The token expiration time as an RFC 3339 timestamp +// returns a *Time when successful +func (m *V1beta1OneTimeTokensPostResponse) GetExpiresAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.expiresAt +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1OneTimeTokensPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["expiresAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetExpiresAt(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["token"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetToken(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1OneTimeTokensPostResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetToken gets the token property value. A JWT that can be used to authenticate to DSCC services that accept one time use tokens +// returns a *string when successful +func (m *V1beta1OneTimeTokensPostResponse) GetToken()(*string) { + return m.token +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1OneTimeTokensPostResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1OneTimeTokensPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("expiresAt", m.GetExpiresAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("token", m.GetToken()) + if err != nil { + return err + } + } + return nil +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1OneTimeTokensPostResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1OneTimeTokensPostResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetExpiresAt sets the expiresAt property value. The token expiration time as an RFC 3339 timestamp +func (m *V1beta1OneTimeTokensPostResponse) SetExpiresAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.expiresAt = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1OneTimeTokensPostResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetToken sets the token property value. A JWT that can be used to authenticate to DSCC services that accept one time use tokens +func (m *V1beta1OneTimeTokensPostResponse) SetToken(value *string)() { + m.token = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1OneTimeTokensPostResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1OneTimeTokensPostResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetExpiresAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetToken()(*string) + GetTypeEscaped()(*string) + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetExpiresAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetToken(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens_request_builder.go new file mode 100644 index 0000000..2420437 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens_request_builder.go @@ -0,0 +1,100 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1OneTimeTokensRequestBuilder builds and executes requests for operations under \data-services\v1beta1\one-time-tokens +type V1beta1OneTimeTokensRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1OneTimeTokensRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1OneTimeTokensRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1OneTimeTokensRequestBuilderInternal instantiates a new V1beta1OneTimeTokensRequestBuilder and sets the default values. +func NewV1beta1OneTimeTokensRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1OneTimeTokensRequestBuilder) { + m := &V1beta1OneTimeTokensRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/one-time-tokens", pathParameters), + } + return m +} +// NewV1beta1OneTimeTokensRequestBuilder instantiates a new V1beta1OneTimeTokensRequestBuilder and sets the default values. +func NewV1beta1OneTimeTokensRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1OneTimeTokensRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1OneTimeTokensRequestBuilderInternal(urlParams, requestAdapter) +} +// Post returns a JWT that can be used to authenticate to DSCC API endpoints that accept one time use tokens. An API endpoint that accept one time use tokens will mention so in its documentation. API endpoints that do not declare acceptance of one time use tokens will not accept one for authentication. +// Deprecated: This method is obsolete. Use PostAsOneTimeTokensPostResponse instead. +// returns a V1beta1OneTimeTokensResponseable when successful +// returns a V1beta1OneTimeTokens400Error error when the service returns a 400 status code +// returns a V1beta1OneTimeTokens401Error error when the service returns a 401 status code +// returns a V1beta1OneTimeTokens500Error error when the service returns a 500 status code +// returns a V1beta1OneTimeTokens503Error error when the service returns a 503 status code +func (m *V1beta1OneTimeTokensRequestBuilder) Post(ctx context.Context, requestConfiguration *V1beta1OneTimeTokensRequestBuilderPostRequestConfiguration)(V1beta1OneTimeTokensResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1OneTimeTokens400ErrorFromDiscriminatorValue, + "401": CreateV1beta1OneTimeTokens401ErrorFromDiscriminatorValue, + "500": CreateV1beta1OneTimeTokens500ErrorFromDiscriminatorValue, + "503": CreateV1beta1OneTimeTokens503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1OneTimeTokensResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1OneTimeTokensResponseable), nil +} +// PostAsOneTimeTokensPostResponse returns a JWT that can be used to authenticate to DSCC API endpoints that accept one time use tokens. An API endpoint that accept one time use tokens will mention so in its documentation. API endpoints that do not declare acceptance of one time use tokens will not accept one for authentication. +// returns a V1beta1OneTimeTokensPostResponseable when successful +// returns a V1beta1OneTimeTokens400Error error when the service returns a 400 status code +// returns a V1beta1OneTimeTokens401Error error when the service returns a 401 status code +// returns a V1beta1OneTimeTokens500Error error when the service returns a 500 status code +// returns a V1beta1OneTimeTokens503Error error when the service returns a 503 status code +func (m *V1beta1OneTimeTokensRequestBuilder) PostAsOneTimeTokensPostResponse(ctx context.Context, requestConfiguration *V1beta1OneTimeTokensRequestBuilderPostRequestConfiguration)(V1beta1OneTimeTokensPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1OneTimeTokens400ErrorFromDiscriminatorValue, + "401": CreateV1beta1OneTimeTokens401ErrorFromDiscriminatorValue, + "500": CreateV1beta1OneTimeTokens500ErrorFromDiscriminatorValue, + "503": CreateV1beta1OneTimeTokens503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1OneTimeTokensPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1OneTimeTokensPostResponseable), nil +} +// ToPostRequestInformation returns a JWT that can be used to authenticate to DSCC API endpoints that accept one time use tokens. An API endpoint that accept one time use tokens will mention so in its documentation. API endpoints that do not declare acceptance of one time use tokens will not accept one for authentication. +// returns a *RequestInformation when successful +func (m *V1beta1OneTimeTokensRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *V1beta1OneTimeTokensRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1OneTimeTokensRequestBuilder when successful +func (m *V1beta1OneTimeTokensRequestBuilder) WithUrl(rawUrl string)(*V1beta1OneTimeTokensRequestBuilder) { + return NewV1beta1OneTimeTokensRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens_response.go b/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens_response.go new file mode 100644 index 0000000..7c4dc40 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_one_time_tokens_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1OneTimeTokensPostResponseable instead. +type V1beta1OneTimeTokensResponse struct { + V1beta1OneTimeTokensPostResponse +} +// NewV1beta1OneTimeTokensResponse instantiates a new V1beta1OneTimeTokensResponse and sets the default values. +func NewV1beta1OneTimeTokensResponse()(*V1beta1OneTimeTokensResponse) { + m := &V1beta1OneTimeTokensResponse{ + V1beta1OneTimeTokensPostResponse: *NewV1beta1OneTimeTokensPostResponse(), + } + return m +} +// CreateV1beta1OneTimeTokensResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1OneTimeTokensResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1OneTimeTokensResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1OneTimeTokensPostResponseable instead. +type V1beta1OneTimeTokensResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1OneTimeTokensPostResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_recent_searches400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches400_error.go new file mode 100644 index 0000000..d329141 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1RecentSearches400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1RecentSearches400Error instantiates a new V1beta1RecentSearches400Error and sets the default values. +func NewV1beta1RecentSearches400Error()(*V1beta1RecentSearches400Error) { + m := &V1beta1RecentSearches400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1RecentSearches400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1RecentSearches400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1RecentSearches400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1RecentSearches400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1RecentSearches400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1RecentSearches400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1RecentSearches400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1RecentSearches400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1RecentSearches400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1RecentSearches400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1RecentSearches400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1RecentSearches400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1RecentSearches400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1RecentSearches400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1RecentSearches400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1RecentSearches400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1RecentSearches400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_recent_searches401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches401_error.go new file mode 100644 index 0000000..75b17e0 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1RecentSearches401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1RecentSearches401Error instantiates a new V1beta1RecentSearches401Error and sets the default values. +func NewV1beta1RecentSearches401Error()(*V1beta1RecentSearches401Error) { + m := &V1beta1RecentSearches401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1RecentSearches401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1RecentSearches401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1RecentSearches401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1RecentSearches401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1RecentSearches401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1RecentSearches401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1RecentSearches401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1RecentSearches401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1RecentSearches401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1RecentSearches401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1RecentSearches401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1RecentSearches401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1RecentSearches401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1RecentSearches401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1RecentSearches401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1RecentSearches401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1RecentSearches401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_recent_searches500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches500_error.go new file mode 100644 index 0000000..bb56ac4 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1RecentSearches500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1RecentSearches500Error instantiates a new V1beta1RecentSearches500Error and sets the default values. +func NewV1beta1RecentSearches500Error()(*V1beta1RecentSearches500Error) { + m := &V1beta1RecentSearches500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1RecentSearches500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1RecentSearches500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1RecentSearches500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1RecentSearches500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1RecentSearches500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1RecentSearches500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1RecentSearches500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1RecentSearches500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1RecentSearches500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1RecentSearches500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1RecentSearches500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1RecentSearches500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1RecentSearches500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1RecentSearches500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1RecentSearches500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1RecentSearches500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1RecentSearches500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_get_response.go new file mode 100644 index 0000000..c58bbad --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_get_response.go @@ -0,0 +1,180 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1RecentSearchesGetResponse contains a paginated list of recent search items +type V1beta1RecentSearchesGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Number of items in this response. + count *int32 + // List of recent searches + items []V1beta1RecentSearchesGetResponse_itemsable + // The offset query parameter from the request. + offset *int32 + // Total number of items matching the filter parameter in the request. + total *int32 +} +// NewV1beta1RecentSearchesGetResponse instantiates a new V1beta1RecentSearchesGetResponse and sets the default values. +func NewV1beta1RecentSearchesGetResponse()(*V1beta1RecentSearchesGetResponse) { + m := &V1beta1RecentSearchesGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1RecentSearchesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1RecentSearchesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1RecentSearchesGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1RecentSearchesGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Number of items in this response. +// returns a *int32 when successful +func (m *V1beta1RecentSearchesGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1RecentSearchesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1RecentSearchesGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1RecentSearchesGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1RecentSearchesGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetItems gets the items property value. List of recent searches +// returns a []V1beta1RecentSearchesGetResponse_itemsable when successful +func (m *V1beta1RecentSearchesGetResponse) GetItems()([]V1beta1RecentSearchesGetResponse_itemsable) { + return m.items +} +// GetOffset gets the offset property value. The offset query parameter from the request. +// returns a *int32 when successful +func (m *V1beta1RecentSearchesGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetTotal gets the total property value. Total number of items matching the filter parameter in the request. +// returns a *int32 when successful +func (m *V1beta1RecentSearchesGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1RecentSearchesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1RecentSearchesGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Number of items in this response. +func (m *V1beta1RecentSearchesGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. List of recent searches +func (m *V1beta1RecentSearchesGetResponse) SetItems(value []V1beta1RecentSearchesGetResponse_itemsable)() { + m.items = value +} +// SetOffset sets the offset property value. The offset query parameter from the request. +func (m *V1beta1RecentSearchesGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetTotal sets the total property value. Total number of items matching the filter parameter in the request. +func (m *V1beta1RecentSearchesGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1RecentSearchesGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1RecentSearchesGetResponse_itemsable) + GetOffset()(*int32) + GetTotal()(*int32) + SetCount(value *int32)() + SetItems(value []V1beta1RecentSearchesGetResponse_itemsable)() + SetOffset(value *int32)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_get_response_escaped_items.go new file mode 100644 index 0000000..62ef7f5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_get_response_escaped_items.go @@ -0,0 +1,342 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1RecentSearchesGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // A system specified name for the resource. + name *string + // The resource property + resource V1beta1RecentSearchesGetResponse_items_resourceable + // The self reference for this resource. + resourceUri *string + // The service that the search was made within + searchedService *string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // ID of user that performed the search + userId *string +} +// NewV1beta1RecentSearchesGetResponse_items instantiates a new V1beta1RecentSearchesGetResponse_items and sets the default values. +func NewV1beta1RecentSearchesGetResponse_items()(*V1beta1RecentSearchesGetResponse_items) { + m := &V1beta1RecentSearchesGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1RecentSearchesGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1RecentSearchesGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1RecentSearchesGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1RecentSearchesGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1RecentSearchesGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1RecentSearchesGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1RecentSearchesGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1RecentSearchesGetResponse_items_resourceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetResource(val.(V1beta1RecentSearchesGetResponse_items_resourceable)) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["searchedService"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSearchedService(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + res["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUserId(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1RecentSearchesGetResponse_items) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1RecentSearchesGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1RecentSearchesGetResponse_items) GetName()(*string) { + return m.name +} +// GetResource gets the resource property value. The resource property +// returns a V1beta1RecentSearchesGetResponse_items_resourceable when successful +func (m *V1beta1RecentSearchesGetResponse_items) GetResource()(V1beta1RecentSearchesGetResponse_items_resourceable) { + return m.resource +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1RecentSearchesGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSearchedService gets the searchedService property value. The service that the search was made within +// returns a *string when successful +func (m *V1beta1RecentSearchesGetResponse_items) GetSearchedService()(*string) { + return m.searchedService +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1RecentSearchesGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1RecentSearchesGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// GetUserId gets the userId property value. ID of user that performed the search +// returns a *string when successful +func (m *V1beta1RecentSearchesGetResponse_items) GetUserId()(*string) { + return m.userId +} +// Serialize serializes information the current object +func (m *V1beta1RecentSearchesGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("resource", m.GetResource()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("searchedService", m.GetSearchedService()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("userId", m.GetUserId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1RecentSearchesGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1RecentSearchesGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1RecentSearchesGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1RecentSearchesGetResponse_items) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1RecentSearchesGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1RecentSearchesGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetResource sets the resource property value. The resource property +func (m *V1beta1RecentSearchesGetResponse_items) SetResource(value V1beta1RecentSearchesGetResponse_items_resourceable)() { + m.resource = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1RecentSearchesGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSearchedService sets the searchedService property value. The service that the search was made within +func (m *V1beta1RecentSearchesGetResponse_items) SetSearchedService(value *string)() { + m.searchedService = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1RecentSearchesGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1RecentSearchesGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +// SetUserId sets the userId property value. ID of user that performed the search +func (m *V1beta1RecentSearchesGetResponse_items) SetUserId(value *string)() { + m.userId = value +} +type V1beta1RecentSearchesGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResource()(V1beta1RecentSearchesGetResponse_items_resourceable) + GetResourceUri()(*string) + GetSearchedService()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetUserId()(*string) + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResource(value V1beta1RecentSearchesGetResponse_items_resourceable)() + SetResourceUri(value *string)() + SetSearchedService(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetUserId(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_get_response_escaped_items_escaped_resource.go b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_get_response_escaped_items_escaped_resource.go new file mode 100644 index 0000000..10a1199 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_get_response_escaped_items_escaped_resource.go @@ -0,0 +1,319 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1RecentSearchesGetResponse_items_resource struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // URI that will open the resource details in the UI + consoleUri *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // A system specified name for the resource. + name *string + // The self reference for this resource. + resourceUri *string + // List of DSCC services that resource is associated with + services []string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1RecentSearchesGetResponse_items_resource instantiates a new V1beta1RecentSearchesGetResponse_items_resource and sets the default values. +func NewV1beta1RecentSearchesGetResponse_items_resource()(*V1beta1RecentSearchesGetResponse_items_resource) { + m := &V1beta1RecentSearchesGetResponse_items_resource{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1RecentSearchesGetResponse_items_resourceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1RecentSearchesGetResponse_items_resourceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1RecentSearchesGetResponse_items_resource(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1RecentSearchesGetResponse_items_resource) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetConsoleUri gets the consoleUri property value. URI that will open the resource details in the UI +// returns a *string when successful +func (m *V1beta1RecentSearchesGetResponse_items_resource) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1RecentSearchesGetResponse_items_resource) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1RecentSearchesGetResponse_items_resource) GetCustomerId()(*string) { + return m.customerId +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1RecentSearchesGetResponse_items_resource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["services"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetServices(res) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1RecentSearchesGetResponse_items_resource) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1RecentSearchesGetResponse_items_resource) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1RecentSearchesGetResponse_items_resource) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1RecentSearchesGetResponse_items_resource) GetResourceUri()(*string) { + return m.resourceUri +} +// GetServices gets the services property value. List of DSCC services that resource is associated with +// returns a []string when successful +func (m *V1beta1RecentSearchesGetResponse_items_resource) GetServices()([]string) { + return m.services +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1RecentSearchesGetResponse_items_resource) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1RecentSearchesGetResponse_items_resource) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1RecentSearchesGetResponse_items_resource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + if m.GetServices() != nil { + err := writer.WriteCollectionOfStringValues("services", m.GetServices()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1RecentSearchesGetResponse_items_resource) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetConsoleUri sets the consoleUri property value. URI that will open the resource details in the UI +func (m *V1beta1RecentSearchesGetResponse_items_resource) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1RecentSearchesGetResponse_items_resource) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1RecentSearchesGetResponse_items_resource) SetCustomerId(value *string)() { + m.customerId = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1RecentSearchesGetResponse_items_resource) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1RecentSearchesGetResponse_items_resource) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1RecentSearchesGetResponse_items_resource) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1RecentSearchesGetResponse_items_resource) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetServices sets the services property value. List of DSCC services that resource is associated with +func (m *V1beta1RecentSearchesGetResponse_items_resource) SetServices(value []string)() { + m.services = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1RecentSearchesGetResponse_items_resource) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1RecentSearchesGetResponse_items_resource) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1RecentSearchesGetResponse_items_resourceable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetServices()([]string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetServices(value []string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_post_request_body.go b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_post_request_body.go new file mode 100644 index 0000000..844873e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_post_request_body.go @@ -0,0 +1,132 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1RecentSearchesPostRequestBody struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The resource property + resource V1beta1RecentSearchesPostRequestBody_resourceable + // The service that the search was made within + searchedService *string + // The type of resource. + typeEscaped *string +} +// NewV1beta1RecentSearchesPostRequestBody instantiates a new V1beta1RecentSearchesPostRequestBody and sets the default values. +func NewV1beta1RecentSearchesPostRequestBody()(*V1beta1RecentSearchesPostRequestBody) { + m := &V1beta1RecentSearchesPostRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1RecentSearchesPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1RecentSearchesPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1RecentSearchesPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1RecentSearchesPostRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1RecentSearchesPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["resource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1RecentSearchesPostRequestBody_resourceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetResource(val.(V1beta1RecentSearchesPostRequestBody_resourceable)) + } + return nil + } + res["searchedService"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSearchedService(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetResource gets the resource property value. The resource property +// returns a V1beta1RecentSearchesPostRequestBody_resourceable when successful +func (m *V1beta1RecentSearchesPostRequestBody) GetResource()(V1beta1RecentSearchesPostRequestBody_resourceable) { + return m.resource +} +// GetSearchedService gets the searchedService property value. The service that the search was made within +// returns a *string when successful +func (m *V1beta1RecentSearchesPostRequestBody) GetSearchedService()(*string) { + return m.searchedService +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1RecentSearchesPostRequestBody) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1RecentSearchesPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("resource", m.GetResource()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("searchedService", m.GetSearchedService()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1RecentSearchesPostRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetResource sets the resource property value. The resource property +func (m *V1beta1RecentSearchesPostRequestBody) SetResource(value V1beta1RecentSearchesPostRequestBody_resourceable)() { + m.resource = value +} +// SetSearchedService sets the searchedService property value. The service that the search was made within +func (m *V1beta1RecentSearchesPostRequestBody) SetSearchedService(value *string)() { + m.searchedService = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1RecentSearchesPostRequestBody) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1RecentSearchesPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetResource()(V1beta1RecentSearchesPostRequestBody_resourceable) + GetSearchedService()(*string) + GetTypeEscaped()(*string) + SetResource(value V1beta1RecentSearchesPostRequestBody_resourceable)() + SetSearchedService(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_post_request_body_escaped_resource.go b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_post_request_body_escaped_resource.go new file mode 100644 index 0000000..7cb76b8 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_post_request_body_escaped_resource.go @@ -0,0 +1,319 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1RecentSearchesPostRequestBody_resource struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // URI that will open the resource details in the UI + consoleUri *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // A system specified name for the resource. + name *string + // The self reference for this resource. + resourceUri *string + // List of DSCC services that resource is associated with + services []string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1RecentSearchesPostRequestBody_resource instantiates a new V1beta1RecentSearchesPostRequestBody_resource and sets the default values. +func NewV1beta1RecentSearchesPostRequestBody_resource()(*V1beta1RecentSearchesPostRequestBody_resource) { + m := &V1beta1RecentSearchesPostRequestBody_resource{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1RecentSearchesPostRequestBody_resourceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1RecentSearchesPostRequestBody_resourceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1RecentSearchesPostRequestBody_resource(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1RecentSearchesPostRequestBody_resource) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetConsoleUri gets the consoleUri property value. URI that will open the resource details in the UI +// returns a *string when successful +func (m *V1beta1RecentSearchesPostRequestBody_resource) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1RecentSearchesPostRequestBody_resource) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1RecentSearchesPostRequestBody_resource) GetCustomerId()(*string) { + return m.customerId +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1RecentSearchesPostRequestBody_resource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["services"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetServices(res) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1RecentSearchesPostRequestBody_resource) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1RecentSearchesPostRequestBody_resource) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1RecentSearchesPostRequestBody_resource) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1RecentSearchesPostRequestBody_resource) GetResourceUri()(*string) { + return m.resourceUri +} +// GetServices gets the services property value. List of DSCC services that resource is associated with +// returns a []string when successful +func (m *V1beta1RecentSearchesPostRequestBody_resource) GetServices()([]string) { + return m.services +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1RecentSearchesPostRequestBody_resource) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1RecentSearchesPostRequestBody_resource) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1RecentSearchesPostRequestBody_resource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + if m.GetServices() != nil { + err := writer.WriteCollectionOfStringValues("services", m.GetServices()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1RecentSearchesPostRequestBody_resource) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetConsoleUri sets the consoleUri property value. URI that will open the resource details in the UI +func (m *V1beta1RecentSearchesPostRequestBody_resource) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1RecentSearchesPostRequestBody_resource) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1RecentSearchesPostRequestBody_resource) SetCustomerId(value *string)() { + m.customerId = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1RecentSearchesPostRequestBody_resource) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1RecentSearchesPostRequestBody_resource) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1RecentSearchesPostRequestBody_resource) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1RecentSearchesPostRequestBody_resource) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetServices sets the services property value. List of DSCC services that resource is associated with +func (m *V1beta1RecentSearchesPostRequestBody_resource) SetServices(value []string)() { + m.services = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1RecentSearchesPostRequestBody_resource) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1RecentSearchesPostRequestBody_resource) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1RecentSearchesPostRequestBody_resourceable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetServices()([]string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetServices(value []string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_request_builder.go new file mode 100644 index 0000000..b118c7e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_request_builder.go @@ -0,0 +1,153 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1RecentSearchesRequestBuilder builds and executes requests for operations under \data-services\v1beta1\recent-searches +type V1beta1RecentSearchesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1RecentSearchesRequestBuilderGetQueryParameters returns ths DSCC resources that a user selected or viewed through Global Search.Results are sorted with most recent first. +type V1beta1RecentSearchesRequestBuilderGetQueryParameters struct { + // Limit is the maximum number of items to include in the response.If not specified, The default limit is 5.Limit should be used in conjunction with offset. + Limit *int32 `uriparametername:"limit"` +} +// V1beta1RecentSearchesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1RecentSearchesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1RecentSearchesRequestBuilderGetQueryParameters +} +// V1beta1RecentSearchesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1RecentSearchesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1RecentSearchesRequestBuilderInternal instantiates a new V1beta1RecentSearchesRequestBuilder and sets the default values. +func NewV1beta1RecentSearchesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1RecentSearchesRequestBuilder) { + m := &V1beta1RecentSearchesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/recent-searches{?limit*}", pathParameters), + } + return m +} +// NewV1beta1RecentSearchesRequestBuilder instantiates a new V1beta1RecentSearchesRequestBuilder and sets the default values. +func NewV1beta1RecentSearchesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1RecentSearchesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1RecentSearchesRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns ths DSCC resources that a user selected or viewed through Global Search.Results are sorted with most recent first. +// Deprecated: This method is obsolete. Use GetAsRecentSearchesGetResponse instead. +// returns a V1beta1RecentSearchesResponseable when successful +// returns a V1beta1RecentSearches400Error error when the service returns a 400 status code +// returns a V1beta1RecentSearches401Error error when the service returns a 401 status code +// returns a V1beta1RecentSearches500Error error when the service returns a 500 status code +func (m *V1beta1RecentSearchesRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1RecentSearchesRequestBuilderGetRequestConfiguration)(V1beta1RecentSearchesResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1RecentSearches400ErrorFromDiscriminatorValue, + "401": CreateV1beta1RecentSearches401ErrorFromDiscriminatorValue, + "500": CreateV1beta1RecentSearches500ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1RecentSearchesResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1RecentSearchesResponseable), nil +} +// GetAsRecentSearchesGetResponse returns ths DSCC resources that a user selected or viewed through Global Search.Results are sorted with most recent first. +// returns a V1beta1RecentSearchesGetResponseable when successful +// returns a V1beta1RecentSearches400Error error when the service returns a 400 status code +// returns a V1beta1RecentSearches401Error error when the service returns a 401 status code +// returns a V1beta1RecentSearches500Error error when the service returns a 500 status code +func (m *V1beta1RecentSearchesRequestBuilder) GetAsRecentSearchesGetResponse(ctx context.Context, requestConfiguration *V1beta1RecentSearchesRequestBuilderGetRequestConfiguration)(V1beta1RecentSearchesGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1RecentSearches400ErrorFromDiscriminatorValue, + "401": CreateV1beta1RecentSearches401ErrorFromDiscriminatorValue, + "500": CreateV1beta1RecentSearches500ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1RecentSearchesGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1RecentSearchesGetResponseable), nil +} +// Post saves the details of a resource that a user opened through Search. After performinga search, a user may select one of the search results. This API saves that selectedresource. +// returns a UntypedNodeable when successful +// returns a V1beta1RecentSearches400Error error when the service returns a 400 status code +// returns a V1beta1RecentSearches401Error error when the service returns a 401 status code +// returns a V1beta1RecentSearches500Error error when the service returns a 500 status code +func (m *V1beta1RecentSearchesRequestBuilder) Post(ctx context.Context, body V1beta1RecentSearchesPostRequestBodyable, requestConfiguration *V1beta1RecentSearchesRequestBuilderPostRequestConfiguration)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1RecentSearches400ErrorFromDiscriminatorValue, + "401": CreateV1beta1RecentSearches401ErrorFromDiscriminatorValue, + "500": CreateV1beta1RecentSearches500ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable), nil +} +// ToGetRequestInformation returns ths DSCC resources that a user selected or viewed through Global Search.Results are sorted with most recent first. +// returns a *RequestInformation when successful +func (m *V1beta1RecentSearchesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1RecentSearchesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation saves the details of a resource that a user opened through Search. After performinga search, a user may select one of the search results. This API saves that selectedresource. +// returns a *RequestInformation when successful +func (m *V1beta1RecentSearchesRequestBuilder) ToPostRequestInformation(ctx context.Context, body V1beta1RecentSearchesPostRequestBodyable, requestConfiguration *V1beta1RecentSearchesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1RecentSearchesRequestBuilder when successful +func (m *V1beta1RecentSearchesRequestBuilder) WithUrl(rawUrl string)(*V1beta1RecentSearchesRequestBuilder) { + return NewV1beta1RecentSearchesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_response.go b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_response.go new file mode 100644 index 0000000..e186193 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_recent_searches_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1RecentSearchesResponse contains a paginated list of recent search items +// Deprecated: This class is obsolete. Use V1beta1RecentSearchesGetResponseable instead. +type V1beta1RecentSearchesResponse struct { + V1beta1RecentSearchesGetResponse +} +// NewV1beta1RecentSearchesResponse instantiates a new V1beta1RecentSearchesResponse and sets the default values. +func NewV1beta1RecentSearchesResponse()(*V1beta1RecentSearchesResponse) { + m := &V1beta1RecentSearchesResponse{ + V1beta1RecentSearchesGetResponse: *NewV1beta1RecentSearchesGetResponse(), + } + return m +} +// CreateV1beta1RecentSearchesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1RecentSearchesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1RecentSearchesResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1RecentSearchesGetResponseable instead. +type V1beta1RecentSearchesResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1RecentSearchesGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_request_builder.go new file mode 100644 index 0000000..2a67aab --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_request_builder.go @@ -0,0 +1,138 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1RequestBuilder builds and executes requests for operations under \data-services\v1beta1 +type V1beta1RequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// Announcements the announcements property +// returns a *V1beta1AnnouncementsRequestBuilder when successful +func (m *V1beta1RequestBuilder) Announcements()(*V1beta1AnnouncementsRequestBuilder) { + return NewV1beta1AnnouncementsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// AsyncOperations the asyncOperations property +// returns a *V1beta1AsyncOperationsRequestBuilder when successful +func (m *V1beta1RequestBuilder) AsyncOperations()(*V1beta1AsyncOperationsRequestBuilder) { + return NewV1beta1AsyncOperationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1RequestBuilderInternal instantiates a new V1beta1RequestBuilder and sets the default values. +func NewV1beta1RequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1RequestBuilder) { + m := &V1beta1RequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1", pathParameters), + } + return m +} +// NewV1beta1RequestBuilder instantiates a new V1beta1RequestBuilder and sets the default values. +func NewV1beta1RequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1RequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1RequestBuilderInternal(urlParams, requestAdapter) +} +// DataServicesConnectors the dataServicesConnectors property +// returns a *V1beta1DataServicesConnectorsRequestBuilder when successful +func (m *V1beta1RequestBuilder) DataServicesConnectors()(*V1beta1DataServicesConnectorsRequestBuilder) { + return NewV1beta1DataServicesConnectorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// DualAuthOperations the dualAuthOperations property +// returns a *V1beta1DualAuthOperationsRequestBuilder when successful +func (m *V1beta1RequestBuilder) DualAuthOperations()(*V1beta1DualAuthOperationsRequestBuilder) { + return NewV1beta1DualAuthOperationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EmailSubscriptions the emailSubscriptions property +// returns a *V1beta1EmailSubscriptionsRequestBuilder when successful +func (m *V1beta1RequestBuilder) EmailSubscriptions()(*V1beta1EmailSubscriptionsRequestBuilder) { + return NewV1beta1EmailSubscriptionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Groups the groups property +// returns a *V1beta1GroupsRequestBuilder when successful +func (m *V1beta1RequestBuilder) Groups()(*V1beta1GroupsRequestBuilder) { + return NewV1beta1GroupsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Issues the issues property +// returns a *V1beta1IssuesRequestBuilder when successful +func (m *V1beta1RequestBuilder) Issues()(*V1beta1IssuesRequestBuilder) { + return NewV1beta1IssuesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IssuesMetadata the issuesMetadata property +// returns a *V1beta1IssuesMetadataRequestBuilder when successful +func (m *V1beta1RequestBuilder) IssuesMetadata()(*V1beta1IssuesMetadataRequestBuilder) { + return NewV1beta1IssuesMetadataRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OneTimeTokens the oneTimeTokens property +// returns a *V1beta1OneTimeTokensRequestBuilder when successful +func (m *V1beta1RequestBuilder) OneTimeTokens()(*V1beta1OneTimeTokensRequestBuilder) { + return NewV1beta1OneTimeTokensRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RecentSearches the recentSearches property +// returns a *V1beta1RecentSearchesRequestBuilder when successful +func (m *V1beta1RequestBuilder) RecentSearches()(*V1beta1RecentSearchesRequestBuilder) { + return NewV1beta1RecentSearchesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Search the search property +// returns a *V1beta1SearchRequestBuilder when successful +func (m *V1beta1RequestBuilder) Search()(*V1beta1SearchRequestBuilder) { + return NewV1beta1SearchRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// SearchMetadata the searchMetadata property +// returns a *V1beta1SearchMetadataRequestBuilder when successful +func (m *V1beta1RequestBuilder) SearchMetadata()(*V1beta1SearchMetadataRequestBuilder) { + return NewV1beta1SearchMetadataRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// SearchSummaries the searchSummaries property +// returns a *V1beta1SearchSummariesRequestBuilder when successful +func (m *V1beta1RequestBuilder) SearchSummaries()(*V1beta1SearchSummariesRequestBuilder) { + return NewV1beta1SearchSummariesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// SecretAssignments the secretAssignments property +// returns a *V1beta1SecretAssignmentsRequestBuilder when successful +func (m *V1beta1RequestBuilder) SecretAssignments()(*V1beta1SecretAssignmentsRequestBuilder) { + return NewV1beta1SecretAssignmentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Secrets the secrets property +// returns a *V1beta1SecretsRequestBuilder when successful +func (m *V1beta1RequestBuilder) Secrets()(*V1beta1SecretsRequestBuilder) { + return NewV1beta1SecretsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Settings the settings property +// returns a *V1beta1SettingsRequestBuilder when successful +func (m *V1beta1RequestBuilder) Settings()(*V1beta1SettingsRequestBuilder) { + return NewV1beta1SettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// SoftwareComponents the softwareComponents property +// returns a *V1beta1SoftwareComponentsRequestBuilder when successful +func (m *V1beta1RequestBuilder) SoftwareComponents()(*V1beta1SoftwareComponentsRequestBuilder) { + return NewV1beta1SoftwareComponentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// SoftwareReleases the softwareReleases property +// returns a *V1beta1SoftwareReleasesRequestBuilder when successful +func (m *V1beta1RequestBuilder) SoftwareReleases()(*V1beta1SoftwareReleasesRequestBuilder) { + return NewV1beta1SoftwareReleasesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// SoftwareUpgrades the softwareUpgrades property +// returns a *V1beta1SoftwareUpgradesRequestBuilder when successful +func (m *V1beta1RequestBuilder) SoftwareUpgrades()(*V1beta1SoftwareUpgradesRequestBuilder) { + return NewV1beta1SoftwareUpgradesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// StorageLocations the storageLocations property +// returns a *V1beta1StorageLocationsRequestBuilder when successful +func (m *V1beta1RequestBuilder) StorageLocations()(*V1beta1StorageLocationsRequestBuilder) { + return NewV1beta1StorageLocationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Tags the tags property +// returns a *V1beta1TagsRequestBuilder when successful +func (m *V1beta1RequestBuilder) Tags()(*V1beta1TagsRequestBuilder) { + return NewV1beta1TagsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Webhooks the webhooks property +// returns a *V1beta1WebhooksRequestBuilder when successful +func (m *V1beta1RequestBuilder) Webhooks()(*V1beta1WebhooksRequestBuilder) { + return NewV1beta1WebhooksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// WebhooksMetadata the webhooksMetadata property +// returns a *V1beta1WebhooksMetadataRequestBuilder when successful +func (m *V1beta1RequestBuilder) WebhooksMetadata()(*V1beta1WebhooksMetadataRequestBuilder) { + return NewV1beta1WebhooksMetadataRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_search400_error.go new file mode 100644 index 0000000..165283e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Search400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Search400Error instantiates a new V1beta1Search400Error and sets the default values. +func NewV1beta1Search400Error()(*V1beta1Search400Error) { + m := &V1beta1Search400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Search400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Search400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Search400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Search400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Search400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Search400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Search400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Search400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Search400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Search400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Search400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Search400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Search400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Search400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Search400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Search400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Search400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_search401_error.go new file mode 100644 index 0000000..02595e3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Search401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Search401Error instantiates a new V1beta1Search401Error and sets the default values. +func NewV1beta1Search401Error()(*V1beta1Search401Error) { + m := &V1beta1Search401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Search401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Search401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Search401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Search401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Search401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Search401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Search401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Search401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Search401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Search401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Search401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Search401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Search401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Search401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Search401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Search401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Search401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_search500_error.go new file mode 100644 index 0000000..7ceea9e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Search500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Search500Error instantiates a new V1beta1Search500Error and sets the default values. +func NewV1beta1Search500Error()(*V1beta1Search500Error) { + m := &V1beta1Search500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Search500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Search500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Search500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Search500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Search500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Search500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Search500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Search500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Search500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Search500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Search500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Search500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Search500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Search500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Search500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Search500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Search500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_search_get_response.go new file mode 100644 index 0000000..b2f7f5f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_get_response.go @@ -0,0 +1,238 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SearchGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Number of items in this response. + count *int32 + // Indicates whether or not items is the result of a fuzzy text searchrather than an exact search query term string match + isFuzzy *bool + // List of search results + items []V1beta1SearchGetResponse_itemsable + // The offset query parameter from the request. + offset *int32 + // Timestamp at which the search was performed + searchedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Total number of items matching the filter parameter in the request. + total *int32 +} +// NewV1beta1SearchGetResponse instantiates a new V1beta1SearchGetResponse and sets the default values. +func NewV1beta1SearchGetResponse()(*V1beta1SearchGetResponse) { + m := &V1beta1SearchGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SearchGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SearchGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Number of items in this response. +// returns a *int32 when successful +func (m *V1beta1SearchGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SearchGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["isFuzzy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsFuzzy(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SearchGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SearchGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SearchGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["searchedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetSearchedAt(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetIsFuzzy gets the isFuzzy property value. Indicates whether or not items is the result of a fuzzy text searchrather than an exact search query term string match +// returns a *bool when successful +func (m *V1beta1SearchGetResponse) GetIsFuzzy()(*bool) { + return m.isFuzzy +} +// GetItems gets the items property value. List of search results +// returns a []V1beta1SearchGetResponse_itemsable when successful +func (m *V1beta1SearchGetResponse) GetItems()([]V1beta1SearchGetResponse_itemsable) { + return m.items +} +// GetOffset gets the offset property value. The offset query parameter from the request. +// returns a *int32 when successful +func (m *V1beta1SearchGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetSearchedAt gets the searchedAt property value. Timestamp at which the search was performed +// returns a *Time when successful +func (m *V1beta1SearchGetResponse) GetSearchedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.searchedAt +} +// GetTotal gets the total property value. Total number of items matching the filter parameter in the request. +// returns a *int32 when successful +func (m *V1beta1SearchGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1SearchGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isFuzzy", m.GetIsFuzzy()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("searchedAt", m.GetSearchedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SearchGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Number of items in this response. +func (m *V1beta1SearchGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetIsFuzzy sets the isFuzzy property value. Indicates whether or not items is the result of a fuzzy text searchrather than an exact search query term string match +func (m *V1beta1SearchGetResponse) SetIsFuzzy(value *bool)() { + m.isFuzzy = value +} +// SetItems sets the items property value. List of search results +func (m *V1beta1SearchGetResponse) SetItems(value []V1beta1SearchGetResponse_itemsable)() { + m.items = value +} +// SetOffset sets the offset property value. The offset query parameter from the request. +func (m *V1beta1SearchGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetSearchedAt sets the searchedAt property value. Timestamp at which the search was performed +func (m *V1beta1SearchGetResponse) SetSearchedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.searchedAt = value +} +// SetTotal sets the total property value. Total number of items matching the filter parameter in the request. +func (m *V1beta1SearchGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1SearchGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetIsFuzzy()(*bool) + GetItems()([]V1beta1SearchGetResponse_itemsable) + GetOffset()(*int32) + GetSearchedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetTotal()(*int32) + SetCount(value *int32)() + SetIsFuzzy(value *bool)() + SetItems(value []V1beta1SearchGetResponse_itemsable)() + SetOffset(value *int32)() + SetSearchedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_search_get_response_escaped_items.go new file mode 100644 index 0000000..865d8f9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_get_response_escaped_items.go @@ -0,0 +1,185 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SearchGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Map of fields that matched the search query. The map contains one property for each resource field that matched the search term. The property value is an array of one or more sub-strings that matched the search. + matchingFields V1beta1SearchGetResponse_items_matchingFieldsable + // The resource property + resource V1beta1SearchGetResponse_items_resourceable + // A score assigned by the search engine. + score *float32 + // The type of resource. + typeEscaped *string +} +// NewV1beta1SearchGetResponse_items instantiates a new V1beta1SearchGetResponse_items and sets the default values. +func NewV1beta1SearchGetResponse_items()(*V1beta1SearchGetResponse_items) { + m := &V1beta1SearchGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SearchGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SearchGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SearchGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["matchingFields"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SearchGetResponse_items_matchingFieldsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetMatchingFields(val.(V1beta1SearchGetResponse_items_matchingFieldsable)) + } + return nil + } + res["resource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SearchGetResponse_items_resourceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetResource(val.(V1beta1SearchGetResponse_items_resourceable)) + } + return nil + } + res["score"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetFloat32Value() + if err != nil { + return err + } + if val != nil { + m.SetScore(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1SearchGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetMatchingFields gets the matchingFields property value. Map of fields that matched the search query. The map contains one property for each resource field that matched the search term. The property value is an array of one or more sub-strings that matched the search. +// returns a V1beta1SearchGetResponse_items_matchingFieldsable when successful +func (m *V1beta1SearchGetResponse_items) GetMatchingFields()(V1beta1SearchGetResponse_items_matchingFieldsable) { + return m.matchingFields +} +// GetResource gets the resource property value. The resource property +// returns a V1beta1SearchGetResponse_items_resourceable when successful +func (m *V1beta1SearchGetResponse_items) GetResource()(V1beta1SearchGetResponse_items_resourceable) { + return m.resource +} +// GetScore gets the score property value. A score assigned by the search engine. +// returns a *float32 when successful +func (m *V1beta1SearchGetResponse_items) GetScore()(*float32) { + return m.score +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1SearchGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1SearchGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("matchingFields", m.GetMatchingFields()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("resource", m.GetResource()) + if err != nil { + return err + } + } + { + err := writer.WriteFloat32Value("score", m.GetScore()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SearchGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1SearchGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetMatchingFields sets the matchingFields property value. Map of fields that matched the search query. The map contains one property for each resource field that matched the search term. The property value is an array of one or more sub-strings that matched the search. +func (m *V1beta1SearchGetResponse_items) SetMatchingFields(value V1beta1SearchGetResponse_items_matchingFieldsable)() { + m.matchingFields = value +} +// SetResource sets the resource property value. The resource property +func (m *V1beta1SearchGetResponse_items) SetResource(value V1beta1SearchGetResponse_items_resourceable)() { + m.resource = value +} +// SetScore sets the score property value. A score assigned by the search engine. +func (m *V1beta1SearchGetResponse_items) SetScore(value *float32)() { + m.score = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1SearchGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1SearchGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetMatchingFields()(V1beta1SearchGetResponse_items_matchingFieldsable) + GetResource()(V1beta1SearchGetResponse_items_resourceable) + GetScore()(*float32) + GetTypeEscaped()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetMatchingFields(value V1beta1SearchGetResponse_items_matchingFieldsable)() + SetResource(value V1beta1SearchGetResponse_items_resourceable)() + SetScore(value *float32)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_get_response_escaped_items_escaped_matching_fields.go b/internal/sdk/dataservices/dataservices/v1beta1_search_get_response_escaped_items_escaped_matching_fields.go new file mode 100644 index 0000000..279ba72 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_get_response_escaped_items_escaped_matching_fields.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SearchGetResponse_items_matchingFields map of fields that matched the search query. The map contains one property for each resource field that matched the search term. The property value is an array of one or more sub-strings that matched the search. +type V1beta1SearchGetResponse_items_matchingFields struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1SearchGetResponse_items_matchingFields instantiates a new V1beta1SearchGetResponse_items_matchingFields and sets the default values. +func NewV1beta1SearchGetResponse_items_matchingFields()(*V1beta1SearchGetResponse_items_matchingFields) { + m := &V1beta1SearchGetResponse_items_matchingFields{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SearchGetResponse_items_matchingFieldsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchGetResponse_items_matchingFieldsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchGetResponse_items_matchingFields(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SearchGetResponse_items_matchingFields) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SearchGetResponse_items_matchingFields) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1SearchGetResponse_items_matchingFields) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SearchGetResponse_items_matchingFields) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1SearchGetResponse_items_matchingFieldsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_get_response_escaped_items_escaped_resource.go b/internal/sdk/dataservices/dataservices/v1beta1_search_get_response_escaped_items_escaped_resource.go new file mode 100644 index 0000000..51d2b31 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_get_response_escaped_items_escaped_resource.go @@ -0,0 +1,319 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SearchGetResponse_items_resource struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // URI that will open the resource details in the UI + consoleUri *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // A system specified name for the resource. + name *string + // The self reference for this resource. + resourceUri *string + // List of DSCC services that resource is associated with + services []string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1SearchGetResponse_items_resource instantiates a new V1beta1SearchGetResponse_items_resource and sets the default values. +func NewV1beta1SearchGetResponse_items_resource()(*V1beta1SearchGetResponse_items_resource) { + m := &V1beta1SearchGetResponse_items_resource{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SearchGetResponse_items_resourceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchGetResponse_items_resourceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchGetResponse_items_resource(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SearchGetResponse_items_resource) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetConsoleUri gets the consoleUri property value. URI that will open the resource details in the UI +// returns a *string when successful +func (m *V1beta1SearchGetResponse_items_resource) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1SearchGetResponse_items_resource) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1SearchGetResponse_items_resource) GetCustomerId()(*string) { + return m.customerId +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SearchGetResponse_items_resource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["services"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetServices(res) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1SearchGetResponse_items_resource) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1SearchGetResponse_items_resource) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1SearchGetResponse_items_resource) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1SearchGetResponse_items_resource) GetResourceUri()(*string) { + return m.resourceUri +} +// GetServices gets the services property value. List of DSCC services that resource is associated with +// returns a []string when successful +func (m *V1beta1SearchGetResponse_items_resource) GetServices()([]string) { + return m.services +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1SearchGetResponse_items_resource) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1SearchGetResponse_items_resource) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1SearchGetResponse_items_resource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + if m.GetServices() != nil { + err := writer.WriteCollectionOfStringValues("services", m.GetServices()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SearchGetResponse_items_resource) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetConsoleUri sets the consoleUri property value. URI that will open the resource details in the UI +func (m *V1beta1SearchGetResponse_items_resource) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1SearchGetResponse_items_resource) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1SearchGetResponse_items_resource) SetCustomerId(value *string)() { + m.customerId = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1SearchGetResponse_items_resource) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1SearchGetResponse_items_resource) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1SearchGetResponse_items_resource) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1SearchGetResponse_items_resource) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetServices sets the services property value. List of DSCC services that resource is associated with +func (m *V1beta1SearchGetResponse_items_resource) SetServices(value []string)() { + m.services = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1SearchGetResponse_items_resource) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1SearchGetResponse_items_resource) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1SearchGetResponse_items_resourceable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetServices()([]string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetServices(value []string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_metadata400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata400_error.go new file mode 100644 index 0000000..dca2780 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SearchMetadata400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SearchMetadata400Error instantiates a new V1beta1SearchMetadata400Error and sets the default values. +func NewV1beta1SearchMetadata400Error()(*V1beta1SearchMetadata400Error) { + m := &V1beta1SearchMetadata400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SearchMetadata400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchMetadata400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchMetadata400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SearchMetadata400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SearchMetadata400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SearchMetadata400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SearchMetadata400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SearchMetadata400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SearchMetadata400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SearchMetadata400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SearchMetadata400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SearchMetadata400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SearchMetadata400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SearchMetadata400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SearchMetadata400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SearchMetadata400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SearchMetadata400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_metadata401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata401_error.go new file mode 100644 index 0000000..d128bb9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SearchMetadata401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SearchMetadata401Error instantiates a new V1beta1SearchMetadata401Error and sets the default values. +func NewV1beta1SearchMetadata401Error()(*V1beta1SearchMetadata401Error) { + m := &V1beta1SearchMetadata401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SearchMetadata401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchMetadata401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchMetadata401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SearchMetadata401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SearchMetadata401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SearchMetadata401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SearchMetadata401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SearchMetadata401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SearchMetadata401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SearchMetadata401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SearchMetadata401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SearchMetadata401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SearchMetadata401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SearchMetadata401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SearchMetadata401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SearchMetadata401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SearchMetadata401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_metadata500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata500_error.go new file mode 100644 index 0000000..5f521c7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SearchMetadata500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SearchMetadata500Error instantiates a new V1beta1SearchMetadata500Error and sets the default values. +func NewV1beta1SearchMetadata500Error()(*V1beta1SearchMetadata500Error) { + m := &V1beta1SearchMetadata500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SearchMetadata500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchMetadata500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchMetadata500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SearchMetadata500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SearchMetadata500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SearchMetadata500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SearchMetadata500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SearchMetadata500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SearchMetadata500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SearchMetadata500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SearchMetadata500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SearchMetadata500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SearchMetadata500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SearchMetadata500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SearchMetadata500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SearchMetadata500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SearchMetadata500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_metadata_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata_get_response.go new file mode 100644 index 0000000..d28bc65 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata_get_response.go @@ -0,0 +1,179 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SearchMetadataGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Number of items in this response. + count *int32 + // List of search metadata + items []V1beta1SearchMetadataGetResponse_itemsable + // The offset query parameter from the request. + offset *int32 + // Total number of items matching the filter parameter in the request. + total *int32 +} +// NewV1beta1SearchMetadataGetResponse instantiates a new V1beta1SearchMetadataGetResponse and sets the default values. +func NewV1beta1SearchMetadataGetResponse()(*V1beta1SearchMetadataGetResponse) { + m := &V1beta1SearchMetadataGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SearchMetadataGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchMetadataGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchMetadataGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SearchMetadataGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Number of items in this response. +// returns a *int32 when successful +func (m *V1beta1SearchMetadataGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SearchMetadataGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SearchMetadataGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SearchMetadataGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SearchMetadataGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetItems gets the items property value. List of search metadata +// returns a []V1beta1SearchMetadataGetResponse_itemsable when successful +func (m *V1beta1SearchMetadataGetResponse) GetItems()([]V1beta1SearchMetadataGetResponse_itemsable) { + return m.items +} +// GetOffset gets the offset property value. The offset query parameter from the request. +// returns a *int32 when successful +func (m *V1beta1SearchMetadataGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetTotal gets the total property value. Total number of items matching the filter parameter in the request. +// returns a *int32 when successful +func (m *V1beta1SearchMetadataGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1SearchMetadataGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SearchMetadataGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Number of items in this response. +func (m *V1beta1SearchMetadataGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. List of search metadata +func (m *V1beta1SearchMetadataGetResponse) SetItems(value []V1beta1SearchMetadataGetResponse_itemsable)() { + m.items = value +} +// SetOffset sets the offset property value. The offset query parameter from the request. +func (m *V1beta1SearchMetadataGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetTotal sets the total property value. Total number of items matching the filter parameter in the request. +func (m *V1beta1SearchMetadataGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1SearchMetadataGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1SearchMetadataGetResponse_itemsable) + GetOffset()(*int32) + GetTotal()(*int32) + SetCount(value *int32)() + SetItems(value []V1beta1SearchMetadataGetResponse_itemsable)() + SetOffset(value *int32)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_metadata_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata_get_response_escaped_items.go new file mode 100644 index 0000000..13148f9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata_get_response_escaped_items.go @@ -0,0 +1,296 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SearchMetadataGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // A system specified name for the resource. + name *string + // List of metadata options + options []V1beta1SearchMetadataGetResponse_items_optionsable + // The self reference for this resource. + resourceUri *string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1SearchMetadataGetResponse_items instantiates a new V1beta1SearchMetadataGetResponse_items and sets the default values. +func NewV1beta1SearchMetadataGetResponse_items()(*V1beta1SearchMetadataGetResponse_items) { + m := &V1beta1SearchMetadataGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SearchMetadataGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchMetadataGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchMetadataGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SearchMetadataGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1SearchMetadataGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1SearchMetadataGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SearchMetadataGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["options"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SearchMetadataGetResponse_items_optionsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SearchMetadataGetResponse_items_optionsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SearchMetadataGetResponse_items_optionsable) + } + } + m.SetOptions(res) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1SearchMetadataGetResponse_items) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1SearchMetadataGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1SearchMetadataGetResponse_items) GetName()(*string) { + return m.name +} +// GetOptions gets the options property value. List of metadata options +// returns a []V1beta1SearchMetadataGetResponse_items_optionsable when successful +func (m *V1beta1SearchMetadataGetResponse_items) GetOptions()([]V1beta1SearchMetadataGetResponse_items_optionsable) { + return m.options +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1SearchMetadataGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1SearchMetadataGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1SearchMetadataGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1SearchMetadataGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + if m.GetOptions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetOptions())) + for i, v := range m.GetOptions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("options", cast) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SearchMetadataGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1SearchMetadataGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1SearchMetadataGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1SearchMetadataGetResponse_items) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1SearchMetadataGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1SearchMetadataGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetOptions sets the options property value. List of metadata options +func (m *V1beta1SearchMetadataGetResponse_items) SetOptions(value []V1beta1SearchMetadataGetResponse_items_optionsable)() { + m.options = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1SearchMetadataGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1SearchMetadataGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1SearchMetadataGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1SearchMetadataGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetOptions()([]V1beta1SearchMetadataGetResponse_items_optionsable) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetOptions(value []V1beta1SearchMetadataGetResponse_items_optionsable)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_metadata_get_response_escaped_items_escaped_options.go b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata_get_response_escaped_items_escaped_options.go new file mode 100644 index 0000000..8f680ef --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata_get_response_escaped_items_escaped_options.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SearchMetadataGetResponse_items_options struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Machine readable item identifier + key *string + // Human readable item name + value *string +} +// NewV1beta1SearchMetadataGetResponse_items_options instantiates a new V1beta1SearchMetadataGetResponse_items_options and sets the default values. +func NewV1beta1SearchMetadataGetResponse_items_options()(*V1beta1SearchMetadataGetResponse_items_options) { + m := &V1beta1SearchMetadataGetResponse_items_options{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SearchMetadataGetResponse_items_optionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchMetadataGetResponse_items_optionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchMetadataGetResponse_items_options(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SearchMetadataGetResponse_items_options) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SearchMetadataGetResponse_items_options) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["key"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetKey(val) + } + return nil + } + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetKey gets the key property value. Machine readable item identifier +// returns a *string when successful +func (m *V1beta1SearchMetadataGetResponse_items_options) GetKey()(*string) { + return m.key +} +// GetValue gets the value property value. Human readable item name +// returns a *string when successful +func (m *V1beta1SearchMetadataGetResponse_items_options) GetValue()(*string) { + return m.value +} +// Serialize serializes information the current object +func (m *V1beta1SearchMetadataGetResponse_items_options) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("key", m.GetKey()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("value", m.GetValue()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SearchMetadataGetResponse_items_options) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetKey sets the key property value. Machine readable item identifier +func (m *V1beta1SearchMetadataGetResponse_items_options) SetKey(value *string)() { + m.key = value +} +// SetValue sets the value property value. Human readable item name +func (m *V1beta1SearchMetadataGetResponse_items_options) SetValue(value *string)() { + m.value = value +} +type V1beta1SearchMetadataGetResponse_items_optionsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetKey()(*string) + GetValue()(*string) + SetKey(value *string)() + SetValue(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_metadata_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata_request_builder.go new file mode 100644 index 0000000..9f15c7f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata_request_builder.go @@ -0,0 +1,96 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1SearchMetadataRequestBuilder builds and executes requests for operations under \data-services\v1beta1\search-metadata +type V1beta1SearchMetadataRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1SearchMetadataRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SearchMetadataRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1SearchMetadataRequestBuilderInternal instantiates a new V1beta1SearchMetadataRequestBuilder and sets the default values. +func NewV1beta1SearchMetadataRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SearchMetadataRequestBuilder) { + m := &V1beta1SearchMetadataRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/search-metadata", pathParameters), + } + return m +} +// NewV1beta1SearchMetadataRequestBuilder instantiates a new V1beta1SearchMetadataRequestBuilder and sets the default values. +func NewV1beta1SearchMetadataRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SearchMetadataRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SearchMetadataRequestBuilderInternal(urlParams, requestAdapter) +} +// Get metadata provides descriptive and human readable attributes for machinereadable names and identifiers that appear in other Global Search APIrequests and responses.Returns lists of values for:- types: resource types that Global Search is capable of searching- services: DSCC services that Global Search is capable of searching +// Deprecated: This method is obsolete. Use GetAsSearchMetadataGetResponse instead. +// returns a V1beta1SearchMetadataResponseable when successful +// returns a V1beta1SearchMetadata400Error error when the service returns a 400 status code +// returns a V1beta1SearchMetadata401Error error when the service returns a 401 status code +// returns a V1beta1SearchMetadata500Error error when the service returns a 500 status code +func (m *V1beta1SearchMetadataRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1SearchMetadataRequestBuilderGetRequestConfiguration)(V1beta1SearchMetadataResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SearchMetadata400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SearchMetadata401ErrorFromDiscriminatorValue, + "500": CreateV1beta1SearchMetadata500ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SearchMetadataResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SearchMetadataResponseable), nil +} +// GetAsSearchMetadataGetResponse metadata provides descriptive and human readable attributes for machinereadable names and identifiers that appear in other Global Search APIrequests and responses.Returns lists of values for:- types: resource types that Global Search is capable of searching- services: DSCC services that Global Search is capable of searching +// returns a V1beta1SearchMetadataGetResponseable when successful +// returns a V1beta1SearchMetadata400Error error when the service returns a 400 status code +// returns a V1beta1SearchMetadata401Error error when the service returns a 401 status code +// returns a V1beta1SearchMetadata500Error error when the service returns a 500 status code +func (m *V1beta1SearchMetadataRequestBuilder) GetAsSearchMetadataGetResponse(ctx context.Context, requestConfiguration *V1beta1SearchMetadataRequestBuilderGetRequestConfiguration)(V1beta1SearchMetadataGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SearchMetadata400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SearchMetadata401ErrorFromDiscriminatorValue, + "500": CreateV1beta1SearchMetadata500ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SearchMetadataGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SearchMetadataGetResponseable), nil +} +// ToGetRequestInformation metadata provides descriptive and human readable attributes for machinereadable names and identifiers that appear in other Global Search APIrequests and responses.Returns lists of values for:- types: resource types that Global Search is capable of searching- services: DSCC services that Global Search is capable of searching +// returns a *RequestInformation when successful +func (m *V1beta1SearchMetadataRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1SearchMetadataRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1SearchMetadataRequestBuilder when successful +func (m *V1beta1SearchMetadataRequestBuilder) WithUrl(rawUrl string)(*V1beta1SearchMetadataRequestBuilder) { + return NewV1beta1SearchMetadataRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_metadata_response.go b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata_response.go new file mode 100644 index 0000000..f25938b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_metadata_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1SearchMetadataGetResponseable instead. +type V1beta1SearchMetadataResponse struct { + V1beta1SearchMetadataGetResponse +} +// NewV1beta1SearchMetadataResponse instantiates a new V1beta1SearchMetadataResponse and sets the default values. +func NewV1beta1SearchMetadataResponse()(*V1beta1SearchMetadataResponse) { + m := &V1beta1SearchMetadataResponse{ + V1beta1SearchMetadataGetResponse: *NewV1beta1SearchMetadataGetResponse(), + } + return m +} +// CreateV1beta1SearchMetadataResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchMetadataResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchMetadataResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1SearchMetadataGetResponseable instead. +type V1beta1SearchMetadataResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1SearchMetadataGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_search_request_builder.go new file mode 100644 index 0000000..97f2e98 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_request_builder.go @@ -0,0 +1,114 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1SearchRequestBuilder builds and executes requests for operations under \data-services\v1beta1\search +type V1beta1SearchRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1SearchRequestBuilderGetQueryParameters returns a list of search results that are visible to the user.The response can be paged by using the `limit` and `offset` query parametersand filtered using the `filter` query parameter. +type V1beta1SearchRequestBuilderGetQueryParameters struct { + // Indicates whether or not the response will contain aggregated search results.When true:- This is intended to present a summarized list of search results.- The query parameters offset and limit are ignored. Do not set them.- The response contains the top 5 search hits from each of the resource types that the requesting user has permission to view.When false:- This is intended to present detailed, paginated and filtered search results.- The query parameters filter, offset and limit are applied.- The response contains a page of search hits. + Aggregated *bool `uriparametername:"aggregated"` + // The filter parameter contains an OData filter expression to furtherfilter the resources returned in addition to the query search string.Filters are supported only on following attributes:- resource/service- resource/typeOnly the following OData filter operators are supported:- in : The attribute value is one of the values in an array of strings- and : Logical and between multiple filter predicatesThe filter parameter should be url encoded. + Filter *string `uriparametername:"filter"` + // Limit is the maximum number of items to include in the response.If not specified, The default limit is 10.Limit should be used in conjunction with `offset`.```offset=30&limit=10``` + Limit *int32 `uriparametername:"limit"` + // Offset is the number of items from the beginning of the result set tothe first item included in the response.If not specified, the default offset is 0.Offset should be used in conjunction with `limit`.```offset=30&limit=10``` + Offset *int32 `uriparametername:"offset"` + // Query contains the text to search in DSCC resources. + Query *string `uriparametername:"query"` +} +// V1beta1SearchRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SearchRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1SearchRequestBuilderGetQueryParameters +} +// NewV1beta1SearchRequestBuilderInternal instantiates a new V1beta1SearchRequestBuilder and sets the default values. +func NewV1beta1SearchRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SearchRequestBuilder) { + m := &V1beta1SearchRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/search?query={query}{&aggregated*,filter*,limit*,offset*}", pathParameters), + } + return m +} +// NewV1beta1SearchRequestBuilder instantiates a new V1beta1SearchRequestBuilder and sets the default values. +func NewV1beta1SearchRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SearchRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SearchRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns a list of search results that are visible to the user.The response can be paged by using the `limit` and `offset` query parametersand filtered using the `filter` query parameter. +// Deprecated: This method is obsolete. Use GetAsSearchGetResponse instead. +// returns a V1beta1SearchResponseable when successful +// returns a V1beta1Search400Error error when the service returns a 400 status code +// returns a V1beta1Search401Error error when the service returns a 401 status code +// returns a V1beta1Search500Error error when the service returns a 500 status code +func (m *V1beta1SearchRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1SearchRequestBuilderGetRequestConfiguration)(V1beta1SearchResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Search400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Search401ErrorFromDiscriminatorValue, + "500": CreateV1beta1Search500ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SearchResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SearchResponseable), nil +} +// GetAsSearchGetResponse returns a list of search results that are visible to the user.The response can be paged by using the `limit` and `offset` query parametersand filtered using the `filter` query parameter. +// returns a V1beta1SearchGetResponseable when successful +// returns a V1beta1Search400Error error when the service returns a 400 status code +// returns a V1beta1Search401Error error when the service returns a 401 status code +// returns a V1beta1Search500Error error when the service returns a 500 status code +func (m *V1beta1SearchRequestBuilder) GetAsSearchGetResponse(ctx context.Context, requestConfiguration *V1beta1SearchRequestBuilderGetRequestConfiguration)(V1beta1SearchGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Search400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Search401ErrorFromDiscriminatorValue, + "500": CreateV1beta1Search500ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SearchGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SearchGetResponseable), nil +} +// ToGetRequestInformation returns a list of search results that are visible to the user.The response can be paged by using the `limit` and `offset` query parametersand filtered using the `filter` query parameter. +// returns a *RequestInformation when successful +func (m *V1beta1SearchRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1SearchRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1SearchRequestBuilder when successful +func (m *V1beta1SearchRequestBuilder) WithUrl(rawUrl string)(*V1beta1SearchRequestBuilder) { + return NewV1beta1SearchRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_response.go b/internal/sdk/dataservices/dataservices/v1beta1_search_response.go new file mode 100644 index 0000000..d0bc077 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1SearchGetResponseable instead. +type V1beta1SearchResponse struct { + V1beta1SearchGetResponse +} +// NewV1beta1SearchResponse instantiates a new V1beta1SearchResponse and sets the default values. +func NewV1beta1SearchResponse()(*V1beta1SearchResponse) { + m := &V1beta1SearchResponse{ + V1beta1SearchGetResponse: *NewV1beta1SearchGetResponse(), + } + return m +} +// CreateV1beta1SearchResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1SearchGetResponseable instead. +type V1beta1SearchResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1SearchGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_summaries400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_search_summaries400_error.go new file mode 100644 index 0000000..c0fd6b8 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_summaries400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SearchSummaries400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SearchSummaries400Error instantiates a new V1beta1SearchSummaries400Error and sets the default values. +func NewV1beta1SearchSummaries400Error()(*V1beta1SearchSummaries400Error) { + m := &V1beta1SearchSummaries400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SearchSummaries400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchSummaries400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchSummaries400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SearchSummaries400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SearchSummaries400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SearchSummaries400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SearchSummaries400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SearchSummaries400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SearchSummaries400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SearchSummaries400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SearchSummaries400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SearchSummaries400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SearchSummaries400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SearchSummaries400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SearchSummaries400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SearchSummaries400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SearchSummaries400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_summaries401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_search_summaries401_error.go new file mode 100644 index 0000000..103da1d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_summaries401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SearchSummaries401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SearchSummaries401Error instantiates a new V1beta1SearchSummaries401Error and sets the default values. +func NewV1beta1SearchSummaries401Error()(*V1beta1SearchSummaries401Error) { + m := &V1beta1SearchSummaries401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SearchSummaries401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchSummaries401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchSummaries401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SearchSummaries401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SearchSummaries401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SearchSummaries401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SearchSummaries401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SearchSummaries401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SearchSummaries401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SearchSummaries401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SearchSummaries401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SearchSummaries401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SearchSummaries401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SearchSummaries401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SearchSummaries401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SearchSummaries401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SearchSummaries401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_summaries500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_search_summaries500_error.go new file mode 100644 index 0000000..263581e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_summaries500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SearchSummaries500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SearchSummaries500Error instantiates a new V1beta1SearchSummaries500Error and sets the default values. +func NewV1beta1SearchSummaries500Error()(*V1beta1SearchSummaries500Error) { + m := &V1beta1SearchSummaries500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SearchSummaries500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchSummaries500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchSummaries500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SearchSummaries500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SearchSummaries500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SearchSummaries500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SearchSummaries500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SearchSummaries500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SearchSummaries500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SearchSummaries500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SearchSummaries500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SearchSummaries500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SearchSummaries500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SearchSummaries500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SearchSummaries500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SearchSummaries500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SearchSummaries500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_summaries_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_search_summaries_get_response.go new file mode 100644 index 0000000..9b6bbbc --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_summaries_get_response.go @@ -0,0 +1,179 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SearchSummariesGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Number of items in this response. + count *int32 + // List of search summaries + items []V1beta1SearchSummariesGetResponse_itemsable + // The offset query parameter from the request. + offset *int32 + // Total number of items matching the filter parameter in the request. + total *int32 +} +// NewV1beta1SearchSummariesGetResponse instantiates a new V1beta1SearchSummariesGetResponse and sets the default values. +func NewV1beta1SearchSummariesGetResponse()(*V1beta1SearchSummariesGetResponse) { + m := &V1beta1SearchSummariesGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SearchSummariesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchSummariesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchSummariesGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SearchSummariesGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Number of items in this response. +// returns a *int32 when successful +func (m *V1beta1SearchSummariesGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SearchSummariesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SearchSummariesGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SearchSummariesGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SearchSummariesGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetItems gets the items property value. List of search summaries +// returns a []V1beta1SearchSummariesGetResponse_itemsable when successful +func (m *V1beta1SearchSummariesGetResponse) GetItems()([]V1beta1SearchSummariesGetResponse_itemsable) { + return m.items +} +// GetOffset gets the offset property value. The offset query parameter from the request. +// returns a *int32 when successful +func (m *V1beta1SearchSummariesGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetTotal gets the total property value. Total number of items matching the filter parameter in the request. +// returns a *int32 when successful +func (m *V1beta1SearchSummariesGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1SearchSummariesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SearchSummariesGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Number of items in this response. +func (m *V1beta1SearchSummariesGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. List of search summaries +func (m *V1beta1SearchSummariesGetResponse) SetItems(value []V1beta1SearchSummariesGetResponse_itemsable)() { + m.items = value +} +// SetOffset sets the offset property value. The offset query parameter from the request. +func (m *V1beta1SearchSummariesGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetTotal sets the total property value. Total number of items matching the filter parameter in the request. +func (m *V1beta1SearchSummariesGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1SearchSummariesGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1SearchSummariesGetResponse_itemsable) + GetOffset()(*int32) + GetTotal()(*int32) + SetCount(value *int32)() + SetItems(value []V1beta1SearchSummariesGetResponse_itemsable)() + SetOffset(value *int32)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_summaries_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_search_summaries_get_response_escaped_items.go new file mode 100644 index 0000000..8dda744 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_summaries_get_response_escaped_items.go @@ -0,0 +1,185 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SearchSummariesGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Human readable service name + displayName *string + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // A system specified name for the resource. + name *string + // Total number of search results for service + total *int64 + // The type of resource. + typeEscaped *string +} +// NewV1beta1SearchSummariesGetResponse_items instantiates a new V1beta1SearchSummariesGetResponse_items and sets the default values. +func NewV1beta1SearchSummariesGetResponse_items()(*V1beta1SearchSummariesGetResponse_items) { + m := &V1beta1SearchSummariesGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SearchSummariesGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchSummariesGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchSummariesGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SearchSummariesGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDisplayName gets the displayName property value. Human readable service name +// returns a *string when successful +func (m *V1beta1SearchSummariesGetResponse_items) GetDisplayName()(*string) { + return m.displayName +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SearchSummariesGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1SearchSummariesGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1SearchSummariesGetResponse_items) GetName()(*string) { + return m.name +} +// GetTotal gets the total property value. Total number of search results for service +// returns a *int64 when successful +func (m *V1beta1SearchSummariesGetResponse_items) GetTotal()(*int64) { + return m.total +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1SearchSummariesGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1SearchSummariesGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SearchSummariesGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDisplayName sets the displayName property value. Human readable service name +func (m *V1beta1SearchSummariesGetResponse_items) SetDisplayName(value *string)() { + m.displayName = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1SearchSummariesGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1SearchSummariesGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetTotal sets the total property value. Total number of search results for service +func (m *V1beta1SearchSummariesGetResponse_items) SetTotal(value *int64)() { + m.total = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1SearchSummariesGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1SearchSummariesGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDisplayName()(*string) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetTotal()(*int64) + GetTypeEscaped()(*string) + SetDisplayName(value *string)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetTotal(value *int64)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_summaries_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_search_summaries_request_builder.go new file mode 100644 index 0000000..93a28dc --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_summaries_request_builder.go @@ -0,0 +1,108 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1SearchSummariesRequestBuilder builds and executes requests for operations under \data-services\v1beta1\search-summaries +type V1beta1SearchSummariesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1SearchSummariesRequestBuilderGetQueryParameters returns a list of services that have search hits and the count of hits in each service.The response can be filtered using the `filter` query parameter. +type V1beta1SearchSummariesRequestBuilderGetQueryParameters struct { + // The filter parameter contains an OData filter expression to furtherfilter the resources returned in addition to the query search string.Filters are supported only on following attributes:- nameOnly the following OData filter operators are supported:- in : The attribute value is one of the values in an array of stringsThe filter parameter should be url encoded. + Filter *string `uriparametername:"filter"` + // Query contains the text to search in DSCC resources. + Query *string `uriparametername:"query"` +} +// V1beta1SearchSummariesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SearchSummariesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1SearchSummariesRequestBuilderGetQueryParameters +} +// NewV1beta1SearchSummariesRequestBuilderInternal instantiates a new V1beta1SearchSummariesRequestBuilder and sets the default values. +func NewV1beta1SearchSummariesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SearchSummariesRequestBuilder) { + m := &V1beta1SearchSummariesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/search-summaries?query={query}{&filter*}", pathParameters), + } + return m +} +// NewV1beta1SearchSummariesRequestBuilder instantiates a new V1beta1SearchSummariesRequestBuilder and sets the default values. +func NewV1beta1SearchSummariesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SearchSummariesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SearchSummariesRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns a list of services that have search hits and the count of hits in each service.The response can be filtered using the `filter` query parameter. +// Deprecated: This method is obsolete. Use GetAsSearchSummariesGetResponse instead. +// returns a V1beta1SearchSummariesResponseable when successful +// returns a V1beta1SearchSummaries400Error error when the service returns a 400 status code +// returns a V1beta1SearchSummaries401Error error when the service returns a 401 status code +// returns a V1beta1SearchSummaries500Error error when the service returns a 500 status code +func (m *V1beta1SearchSummariesRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1SearchSummariesRequestBuilderGetRequestConfiguration)(V1beta1SearchSummariesResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SearchSummaries400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SearchSummaries401ErrorFromDiscriminatorValue, + "500": CreateV1beta1SearchSummaries500ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SearchSummariesResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SearchSummariesResponseable), nil +} +// GetAsSearchSummariesGetResponse returns a list of services that have search hits and the count of hits in each service.The response can be filtered using the `filter` query parameter. +// returns a V1beta1SearchSummariesGetResponseable when successful +// returns a V1beta1SearchSummaries400Error error when the service returns a 400 status code +// returns a V1beta1SearchSummaries401Error error when the service returns a 401 status code +// returns a V1beta1SearchSummaries500Error error when the service returns a 500 status code +func (m *V1beta1SearchSummariesRequestBuilder) GetAsSearchSummariesGetResponse(ctx context.Context, requestConfiguration *V1beta1SearchSummariesRequestBuilderGetRequestConfiguration)(V1beta1SearchSummariesGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SearchSummaries400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SearchSummaries401ErrorFromDiscriminatorValue, + "500": CreateV1beta1SearchSummaries500ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SearchSummariesGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SearchSummariesGetResponseable), nil +} +// ToGetRequestInformation returns a list of services that have search hits and the count of hits in each service.The response can be filtered using the `filter` query parameter. +// returns a *RequestInformation when successful +func (m *V1beta1SearchSummariesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1SearchSummariesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1SearchSummariesRequestBuilder when successful +func (m *V1beta1SearchSummariesRequestBuilder) WithUrl(rawUrl string)(*V1beta1SearchSummariesRequestBuilder) { + return NewV1beta1SearchSummariesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_search_summaries_response.go b/internal/sdk/dataservices/dataservices/v1beta1_search_summaries_response.go new file mode 100644 index 0000000..65fcf87 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_search_summaries_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1SearchSummariesGetResponseable instead. +type V1beta1SearchSummariesResponse struct { + V1beta1SearchSummariesGetResponse +} +// NewV1beta1SearchSummariesResponse instantiates a new V1beta1SearchSummariesResponse and sets the default values. +func NewV1beta1SearchSummariesResponse()(*V1beta1SearchSummariesResponse) { + m := &V1beta1SearchSummariesResponse{ + V1beta1SearchSummariesGetResponse: *NewV1beta1SearchSummariesGetResponse(), + } + return m +} +// CreateV1beta1SearchSummariesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SearchSummariesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SearchSummariesResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1SearchSummariesGetResponseable instead. +type V1beta1SearchSummariesResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1SearchSummariesGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments400_error.go new file mode 100644 index 0000000..eff5c81 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretAssignments400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretAssignments400Error instantiates a new V1beta1SecretAssignments400Error and sets the default values. +func NewV1beta1SecretAssignments400Error()(*V1beta1SecretAssignments400Error) { + m := &V1beta1SecretAssignments400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignments400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignments400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignments400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretAssignments400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignments400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretAssignments400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretAssignments400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignments400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretAssignments400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretAssignments400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignments400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignments400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretAssignments400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretAssignments400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretAssignments400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretAssignments400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretAssignments400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments401_error.go new file mode 100644 index 0000000..ab3440a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretAssignments401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretAssignments401Error instantiates a new V1beta1SecretAssignments401Error and sets the default values. +func NewV1beta1SecretAssignments401Error()(*V1beta1SecretAssignments401Error) { + m := &V1beta1SecretAssignments401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignments401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignments401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignments401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretAssignments401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignments401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretAssignments401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretAssignments401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignments401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretAssignments401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretAssignments401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignments401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignments401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretAssignments401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretAssignments401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretAssignments401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretAssignments401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretAssignments401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments403_error.go new file mode 100644 index 0000000..639b1d8 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretAssignments403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretAssignments403Error instantiates a new V1beta1SecretAssignments403Error and sets the default values. +func NewV1beta1SecretAssignments403Error()(*V1beta1SecretAssignments403Error) { + m := &V1beta1SecretAssignments403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignments403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignments403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignments403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretAssignments403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignments403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretAssignments403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretAssignments403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignments403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretAssignments403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretAssignments403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignments403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignments403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretAssignments403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretAssignments403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretAssignments403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretAssignments403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretAssignments403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments404_error.go new file mode 100644 index 0000000..cd9b728 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretAssignments404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretAssignments404Error instantiates a new V1beta1SecretAssignments404Error and sets the default values. +func NewV1beta1SecretAssignments404Error()(*V1beta1SecretAssignments404Error) { + m := &V1beta1SecretAssignments404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignments404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignments404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignments404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretAssignments404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignments404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretAssignments404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretAssignments404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignments404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretAssignments404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretAssignments404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignments404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignments404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretAssignments404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretAssignments404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretAssignments404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretAssignments404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretAssignments404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments422_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments422_error.go new file mode 100644 index 0000000..cbbc9ba --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments422_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretAssignments422Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretAssignments422Error instantiates a new V1beta1SecretAssignments422Error and sets the default values. +func NewV1beta1SecretAssignments422Error()(*V1beta1SecretAssignments422Error) { + m := &V1beta1SecretAssignments422Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignments422ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignments422ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignments422Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretAssignments422Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignments422Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretAssignments422Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretAssignments422Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignments422Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretAssignments422Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretAssignments422Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignments422Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignments422Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretAssignments422Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretAssignments422Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretAssignments422Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretAssignments422Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretAssignments422Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments500_error.go new file mode 100644 index 0000000..fce3b32 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretAssignments500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretAssignments500Error instantiates a new V1beta1SecretAssignments500Error and sets the default values. +func NewV1beta1SecretAssignments500Error()(*V1beta1SecretAssignments500Error) { + m := &V1beta1SecretAssignments500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignments500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignments500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignments500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretAssignments500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignments500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretAssignments500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretAssignments500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignments500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretAssignments500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretAssignments500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignments500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignments500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretAssignments500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretAssignments500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretAssignments500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretAssignments500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretAssignments500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments503_error.go new file mode 100644 index 0000000..68c1c4c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretAssignments503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretAssignments503Error instantiates a new V1beta1SecretAssignments503Error and sets the default values. +func NewV1beta1SecretAssignments503Error()(*V1beta1SecretAssignments503Error) { + m := &V1beta1SecretAssignments503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignments503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignments503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignments503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretAssignments503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignments503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretAssignments503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretAssignments503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignments503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretAssignments503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretAssignments503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignments503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignments503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretAssignments503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretAssignments503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretAssignments503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretAssignments503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretAssignments503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response.go new file mode 100644 index 0000000..c1ebe49 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response.go @@ -0,0 +1,209 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretAssignmentsGetResponse report Assignments Response +type V1beta1SecretAssignmentsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Current results page count + count *int32 + // Assignment resource definitions + items []V1beta1SecretAssignmentsGetResponse_itemsable + // Cursor for next results page + next *string + // Offset of current results page + offset *int32 + // Total results count + total *int32 +} +// NewV1beta1SecretAssignmentsGetResponse instantiates a new V1beta1SecretAssignmentsGetResponse and sets the default values. +func NewV1beta1SecretAssignmentsGetResponse()(*V1beta1SecretAssignmentsGetResponse) { + m := &V1beta1SecretAssignmentsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Current results page count +// returns a *int32 when successful +func (m *V1beta1SecretAssignmentsGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SecretAssignmentsGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SecretAssignmentsGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SecretAssignmentsGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["next"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNext(val) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetItems gets the items property value. Assignment resource definitions +// returns a []V1beta1SecretAssignmentsGetResponse_itemsable when successful +func (m *V1beta1SecretAssignmentsGetResponse) GetItems()([]V1beta1SecretAssignmentsGetResponse_itemsable) { + return m.items +} +// GetNext gets the next property value. Cursor for next results page +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse) GetNext()(*string) { + return m.next +} +// GetOffset gets the offset property value. Offset of current results page +// returns a *int32 when successful +func (m *V1beta1SecretAssignmentsGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetTotal gets the total property value. Total results count +// returns a *int32 when successful +func (m *V1beta1SecretAssignmentsGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("next", m.GetNext()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Current results page count +func (m *V1beta1SecretAssignmentsGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. Assignment resource definitions +func (m *V1beta1SecretAssignmentsGetResponse) SetItems(value []V1beta1SecretAssignmentsGetResponse_itemsable)() { + m.items = value +} +// SetNext sets the next property value. Cursor for next results page +func (m *V1beta1SecretAssignmentsGetResponse) SetNext(value *string)() { + m.next = value +} +// SetOffset sets the offset property value. Offset of current results page +func (m *V1beta1SecretAssignmentsGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetTotal sets the total property value. Total results count +func (m *V1beta1SecretAssignmentsGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1SecretAssignmentsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1SecretAssignmentsGetResponse_itemsable) + GetNext()(*string) + GetOffset()(*int32) + GetTotal()(*int32) + SetCount(value *int32)() + SetItems(value []V1beta1SecretAssignmentsGetResponse_itemsable)() + SetNext(value *string)() + SetOffset(value *int32)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items.go new file mode 100644 index 0000000..4c046fc --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items.go @@ -0,0 +1,559 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretAssignmentsGetResponse_items assignment Resource Definition +type V1beta1SecretAssignmentsGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Appliance identifier + appliance V1beta1SecretAssignmentsGetResponse_items_applianceable + // Timestamp of the resource creation + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Identifier of the customer owning the resource + customerId *string + // Update generation number + generation *int32 + // Current goal of the assignment + goal *string + // Timestamp of the last goal update + goalUpdatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Groups associated with the resource + groups []V1beta1SecretAssignmentsGetResponse_items_groupsable + // Identifier of the resource + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Consumer-defined label of the assignment + label *string + // Name of the resource + name *string + // URI of the resource + resourceUri *string + // Secret resource reference + secret V1beta1SecretAssignmentsGetResponse_items_secretable + // Name of the service originating the resource + service *string + // Current status of the assignment + status *string + // Timestamp of the last status update + statusUpdatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Type of the resource + typeEscaped *string + // Timestamp of the last resource update + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1SecretAssignmentsGetResponse_items instantiates a new V1beta1SecretAssignmentsGetResponse_items and sets the default values. +func NewV1beta1SecretAssignmentsGetResponse_items()(*V1beta1SecretAssignmentsGetResponse_items) { + m := &V1beta1SecretAssignmentsGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAppliance gets the appliance property value. Appliance identifier +// returns a V1beta1SecretAssignmentsGetResponse_items_applianceable when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetAppliance()(V1beta1SecretAssignmentsGetResponse_items_applianceable) { + return m.appliance +} +// GetCreatedAt gets the createdAt property value. Timestamp of the resource creation +// returns a *Time when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. Identifier of the customer owning the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["appliance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretAssignmentsGetResponse_items_applianceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAppliance(val.(V1beta1SecretAssignmentsGetResponse_items_applianceable)) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["goal"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetGoal(val) + } + return nil + } + res["goalUpdatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetGoalUpdatedAt(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SecretAssignmentsGetResponse_items_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SecretAssignmentsGetResponse_items_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SecretAssignmentsGetResponse_items_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["label"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLabel(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretAssignmentsGetResponse_items_secretFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecret(val.(V1beta1SecretAssignmentsGetResponse_items_secretable)) + } + return nil + } + res["service"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetService(val) + } + return nil + } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStatus(val) + } + return nil + } + res["statusUpdatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStatusUpdatedAt(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. Update generation number +// returns a *int32 when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetGeneration()(*int32) { + return m.generation +} +// GetGoal gets the goal property value. Current goal of the assignment +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetGoal()(*string) { + return m.goal +} +// GetGoalUpdatedAt gets the goalUpdatedAt property value. Timestamp of the last goal update +// returns a *Time when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetGoalUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.goalUpdatedAt +} +// GetGroups gets the groups property value. Groups associated with the resource +// returns a []V1beta1SecretAssignmentsGetResponse_items_groupsable when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetGroups()([]V1beta1SecretAssignmentsGetResponse_items_groupsable) { + return m.groups +} +// GetId gets the id property value. Identifier of the resource +// returns a *UUID when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetLabel gets the label property value. Consumer-defined label of the assignment +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetLabel()(*string) { + return m.label +} +// GetName gets the name property value. Name of the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. URI of the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSecret gets the secret property value. Secret resource reference +// returns a V1beta1SecretAssignmentsGetResponse_items_secretable when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetSecret()(V1beta1SecretAssignmentsGetResponse_items_secretable) { + return m.secret +} +// GetService gets the service property value. Name of the service originating the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetService()(*string) { + return m.service +} +// GetStatus gets the status property value. Current status of the assignment +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetStatus()(*string) { + return m.status +} +// GetStatusUpdatedAt gets the statusUpdatedAt property value. Timestamp of the last status update +// returns a *Time when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetStatusUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.statusUpdatedAt +} +// GetTypeEscaped gets the type property value. Type of the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. Timestamp of the last resource update +// returns a *Time when successful +func (m *V1beta1SecretAssignmentsGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("appliance", m.GetAppliance()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("customerId", m.GetCustomerId()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("generation", m.GetGeneration()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("goal", m.GetGoal()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("goalUpdatedAt", m.GetGoalUpdatedAt()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("label", m.GetLabel()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("service", m.GetService()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("status", m.GetStatus()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("statusUpdatedAt", m.GetStatusUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAppliance sets the appliance property value. Appliance identifier +func (m *V1beta1SecretAssignmentsGetResponse_items) SetAppliance(value V1beta1SecretAssignmentsGetResponse_items_applianceable)() { + m.appliance = value +} +// SetCreatedAt sets the createdAt property value. Timestamp of the resource creation +func (m *V1beta1SecretAssignmentsGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. Identifier of the customer owning the resource +func (m *V1beta1SecretAssignmentsGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetGeneration sets the generation property value. Update generation number +func (m *V1beta1SecretAssignmentsGetResponse_items) SetGeneration(value *int32)() { + m.generation = value +} +// SetGoal sets the goal property value. Current goal of the assignment +func (m *V1beta1SecretAssignmentsGetResponse_items) SetGoal(value *string)() { + m.goal = value +} +// SetGoalUpdatedAt sets the goalUpdatedAt property value. Timestamp of the last goal update +func (m *V1beta1SecretAssignmentsGetResponse_items) SetGoalUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.goalUpdatedAt = value +} +// SetGroups sets the groups property value. Groups associated with the resource +func (m *V1beta1SecretAssignmentsGetResponse_items) SetGroups(value []V1beta1SecretAssignmentsGetResponse_items_groupsable)() { + m.groups = value +} +// SetId sets the id property value. Identifier of the resource +func (m *V1beta1SecretAssignmentsGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetLabel sets the label property value. Consumer-defined label of the assignment +func (m *V1beta1SecretAssignmentsGetResponse_items) SetLabel(value *string)() { + m.label = value +} +// SetName sets the name property value. Name of the resource +func (m *V1beta1SecretAssignmentsGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. URI of the resource +func (m *V1beta1SecretAssignmentsGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSecret sets the secret property value. Secret resource reference +func (m *V1beta1SecretAssignmentsGetResponse_items) SetSecret(value V1beta1SecretAssignmentsGetResponse_items_secretable)() { + m.secret = value +} +// SetService sets the service property value. Name of the service originating the resource +func (m *V1beta1SecretAssignmentsGetResponse_items) SetService(value *string)() { + m.service = value +} +// SetStatus sets the status property value. Current status of the assignment +func (m *V1beta1SecretAssignmentsGetResponse_items) SetStatus(value *string)() { + m.status = value +} +// SetStatusUpdatedAt sets the statusUpdatedAt property value. Timestamp of the last status update +func (m *V1beta1SecretAssignmentsGetResponse_items) SetStatusUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.statusUpdatedAt = value +} +// SetTypeEscaped sets the type property value. Type of the resource +func (m *V1beta1SecretAssignmentsGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. Timestamp of the last resource update +func (m *V1beta1SecretAssignmentsGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1SecretAssignmentsGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAppliance()(V1beta1SecretAssignmentsGetResponse_items_applianceable) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetGeneration()(*int32) + GetGoal()(*string) + GetGoalUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetGroups()([]V1beta1SecretAssignmentsGetResponse_items_groupsable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLabel()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetSecret()(V1beta1SecretAssignmentsGetResponse_items_secretable) + GetService()(*string) + GetStatus()(*string) + GetStatusUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetAppliance(value V1beta1SecretAssignmentsGetResponse_items_applianceable)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetGeneration(value *int32)() + SetGoal(value *string)() + SetGoalUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetGroups(value []V1beta1SecretAssignmentsGetResponse_items_groupsable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLabel(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetSecret(value V1beta1SecretAssignmentsGetResponse_items_secretable)() + SetService(value *string)() + SetStatus(value *string)() + SetStatusUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items_escaped_appliance.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items_escaped_appliance.go new file mode 100644 index 0000000..16006d3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items_escaped_appliance.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretAssignmentsGetResponse_items_appliance appliance Identity +type V1beta1SecretAssignmentsGetResponse_items_appliance struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identity of the appliance + id *string +} +// NewV1beta1SecretAssignmentsGetResponse_items_appliance instantiates a new V1beta1SecretAssignmentsGetResponse_items_appliance and sets the default values. +func NewV1beta1SecretAssignmentsGetResponse_items_appliance()(*V1beta1SecretAssignmentsGetResponse_items_appliance) { + m := &V1beta1SecretAssignmentsGetResponse_items_appliance{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsGetResponse_items_applianceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsGetResponse_items_applianceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsGetResponse_items_appliance(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsGetResponse_items_appliance) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsGetResponse_items_appliance) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + return res +} +// GetId gets the id property value. Identity of the appliance +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse_items_appliance) GetId()(*string) { + return m.id +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsGetResponse_items_appliance) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsGetResponse_items_appliance) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Identity of the appliance +func (m *V1beta1SecretAssignmentsGetResponse_items_appliance) SetId(value *string)() { + m.id = value +} +type V1beta1SecretAssignmentsGetResponse_items_applianceable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + SetId(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items_escaped_groups.go new file mode 100644 index 0000000..ad5827f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items_escaped_groups.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretAssignmentsGetResponse_items_groups storage Cloud Group Identity +type V1beta1SecretAssignmentsGetResponse_items_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifier of the associated group + id *string + // Name of the associated group + name *string + // URI of the associated group + resourceUri *string +} +// NewV1beta1SecretAssignmentsGetResponse_items_groups instantiates a new V1beta1SecretAssignmentsGetResponse_items_groups and sets the default values. +func NewV1beta1SecretAssignmentsGetResponse_items_groups()(*V1beta1SecretAssignmentsGetResponse_items_groups) { + m := &V1beta1SecretAssignmentsGetResponse_items_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsGetResponse_items_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsGetResponse_items_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsGetResponse_items_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsGetResponse_items_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsGetResponse_items_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + return res +} +// GetId gets the id property value. Identifier of the associated group +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse_items_groups) GetId()(*string) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse_items_groups) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. URI of the associated group +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse_items_groups) GetResourceUri()(*string) { + return m.resourceUri +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsGetResponse_items_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsGetResponse_items_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Identifier of the associated group +func (m *V1beta1SecretAssignmentsGetResponse_items_groups) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1SecretAssignmentsGetResponse_items_groups) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. URI of the associated group +func (m *V1beta1SecretAssignmentsGetResponse_items_groups) SetResourceUri(value *string)() { + m.resourceUri = value +} +type V1beta1SecretAssignmentsGetResponse_items_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items_escaped_secret.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items_escaped_secret.go new file mode 100644 index 0000000..7ad8e40 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_get_response_escaped_items_escaped_secret.go @@ -0,0 +1,169 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretAssignmentsGetResponse_items_secret storage Cloud Resource Reference +type V1beta1SecretAssignmentsGetResponse_items_secret struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifier of the resource + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the resource + name *string + // URI of the resource + resourceUri *string + // Type of the resource + typeEscaped *string +} +// NewV1beta1SecretAssignmentsGetResponse_items_secret instantiates a new V1beta1SecretAssignmentsGetResponse_items_secret and sets the default values. +func NewV1beta1SecretAssignmentsGetResponse_items_secret()(*V1beta1SecretAssignmentsGetResponse_items_secret) { + m := &V1beta1SecretAssignmentsGetResponse_items_secret{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsGetResponse_items_secretFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsGetResponse_items_secretFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsGetResponse_items_secret(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsGetResponse_items_secret) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsGetResponse_items_secret) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. Identifier of the resource +// returns a *UUID when successful +func (m *V1beta1SecretAssignmentsGetResponse_items_secret) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse_items_secret) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. URI of the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse_items_secret) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. Type of the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsGetResponse_items_secret) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsGetResponse_items_secret) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsGetResponse_items_secret) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Identifier of the resource +func (m *V1beta1SecretAssignmentsGetResponse_items_secret) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the resource +func (m *V1beta1SecretAssignmentsGetResponse_items_secret) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. URI of the resource +func (m *V1beta1SecretAssignmentsGetResponse_items_secret) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. Type of the resource +func (m *V1beta1SecretAssignmentsGetResponse_items_secret) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1SecretAssignmentsGetResponse_items_secretable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments400_error.go new file mode 100644 index 0000000..62dd7fa --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretAssignmentsItemSecretAssignments400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretAssignmentsItemSecretAssignments400Error instantiates a new V1beta1SecretAssignmentsItemSecretAssignments400Error and sets the default values. +func NewV1beta1SecretAssignmentsItemSecretAssignments400Error()(*V1beta1SecretAssignmentsItemSecretAssignments400Error) { + m := &V1beta1SecretAssignmentsItemSecretAssignments400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsItemSecretAssignments400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsItemSecretAssignments400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsItemSecretAssignments400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsItemSecretAssignments400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsItemSecretAssignments400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretAssignmentsItemSecretAssignments400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretAssignmentsItemSecretAssignments400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretAssignmentsItemSecretAssignments400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretAssignmentsItemSecretAssignments400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretAssignmentsItemSecretAssignments400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments401_error.go new file mode 100644 index 0000000..9a390b9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretAssignmentsItemSecretAssignments401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretAssignmentsItemSecretAssignments401Error instantiates a new V1beta1SecretAssignmentsItemSecretAssignments401Error and sets the default values. +func NewV1beta1SecretAssignmentsItemSecretAssignments401Error()(*V1beta1SecretAssignmentsItemSecretAssignments401Error) { + m := &V1beta1SecretAssignmentsItemSecretAssignments401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsItemSecretAssignments401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsItemSecretAssignments401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsItemSecretAssignments401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsItemSecretAssignments401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsItemSecretAssignments401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretAssignmentsItemSecretAssignments401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretAssignmentsItemSecretAssignments401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretAssignmentsItemSecretAssignments401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretAssignmentsItemSecretAssignments401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretAssignmentsItemSecretAssignments401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments403_error.go new file mode 100644 index 0000000..85ad3c2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretAssignmentsItemSecretAssignments403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretAssignmentsItemSecretAssignments403Error instantiates a new V1beta1SecretAssignmentsItemSecretAssignments403Error and sets the default values. +func NewV1beta1SecretAssignmentsItemSecretAssignments403Error()(*V1beta1SecretAssignmentsItemSecretAssignments403Error) { + m := &V1beta1SecretAssignmentsItemSecretAssignments403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsItemSecretAssignments403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsItemSecretAssignments403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsItemSecretAssignments403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsItemSecretAssignments403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsItemSecretAssignments403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretAssignmentsItemSecretAssignments403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretAssignmentsItemSecretAssignments403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretAssignmentsItemSecretAssignments403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretAssignmentsItemSecretAssignments403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretAssignmentsItemSecretAssignments403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments404_error.go new file mode 100644 index 0000000..e485281 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretAssignmentsItemSecretAssignments404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretAssignmentsItemSecretAssignments404Error instantiates a new V1beta1SecretAssignmentsItemSecretAssignments404Error and sets the default values. +func NewV1beta1SecretAssignmentsItemSecretAssignments404Error()(*V1beta1SecretAssignmentsItemSecretAssignments404Error) { + m := &V1beta1SecretAssignmentsItemSecretAssignments404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsItemSecretAssignments404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsItemSecretAssignments404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsItemSecretAssignments404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsItemSecretAssignments404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsItemSecretAssignments404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretAssignmentsItemSecretAssignments404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretAssignmentsItemSecretAssignments404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretAssignmentsItemSecretAssignments404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretAssignmentsItemSecretAssignments404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretAssignmentsItemSecretAssignments404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments422_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments422_error.go new file mode 100644 index 0000000..4e1aafd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments422_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretAssignmentsItemSecretAssignments422Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretAssignmentsItemSecretAssignments422Error instantiates a new V1beta1SecretAssignmentsItemSecretAssignments422Error and sets the default values. +func NewV1beta1SecretAssignmentsItemSecretAssignments422Error()(*V1beta1SecretAssignmentsItemSecretAssignments422Error) { + m := &V1beta1SecretAssignmentsItemSecretAssignments422Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsItemSecretAssignments422ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsItemSecretAssignments422ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsItemSecretAssignments422Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments422Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments422Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments422Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments422Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments422Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments422Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments422Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsItemSecretAssignments422Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsItemSecretAssignments422Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretAssignmentsItemSecretAssignments422Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretAssignmentsItemSecretAssignments422Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretAssignmentsItemSecretAssignments422Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretAssignmentsItemSecretAssignments422Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretAssignmentsItemSecretAssignments422Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments500_error.go new file mode 100644 index 0000000..27ffc52 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretAssignmentsItemSecretAssignments500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretAssignmentsItemSecretAssignments500Error instantiates a new V1beta1SecretAssignmentsItemSecretAssignments500Error and sets the default values. +func NewV1beta1SecretAssignmentsItemSecretAssignments500Error()(*V1beta1SecretAssignmentsItemSecretAssignments500Error) { + m := &V1beta1SecretAssignmentsItemSecretAssignments500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsItemSecretAssignments500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsItemSecretAssignments500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsItemSecretAssignments500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsItemSecretAssignments500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsItemSecretAssignments500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretAssignmentsItemSecretAssignments500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretAssignmentsItemSecretAssignments500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretAssignmentsItemSecretAssignments500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretAssignmentsItemSecretAssignments500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretAssignmentsItemSecretAssignments500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments503_error.go new file mode 100644 index 0000000..1669a07 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretAssignmentsItemSecretAssignments503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretAssignmentsItemSecretAssignments503Error instantiates a new V1beta1SecretAssignmentsItemSecretAssignments503Error and sets the default values. +func NewV1beta1SecretAssignmentsItemSecretAssignments503Error()(*V1beta1SecretAssignmentsItemSecretAssignments503Error) { + m := &V1beta1SecretAssignmentsItemSecretAssignments503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsItemSecretAssignments503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsItemSecretAssignments503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsItemSecretAssignments503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignments503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsItemSecretAssignments503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsItemSecretAssignments503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretAssignmentsItemSecretAssignments503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretAssignmentsItemSecretAssignments503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretAssignmentsItemSecretAssignments503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretAssignmentsItemSecretAssignments503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretAssignmentsItemSecretAssignments503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response.go new file mode 100644 index 0000000..b50e231 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response.go @@ -0,0 +1,559 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse assignment Resource Definition +type V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Appliance identifier + appliance V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_applianceable + // Timestamp of the resource creation + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Identifier of the customer owning the resource + customerId *string + // Update generation number + generation *int32 + // Current goal of the assignment + goal *string + // Timestamp of the last goal update + goalUpdatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Groups associated with the resource + groups []V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groupsable + // Identifier of the resource + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Consumer-defined label of the assignment + label *string + // Name of the resource + name *string + // URI of the resource + resourceUri *string + // Secret resource reference + secret V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secretable + // Name of the service originating the resource + service *string + // Current status of the assignment + status *string + // Timestamp of the last status update + statusUpdatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Type of the resource + typeEscaped *string + // Timestamp of the last resource update + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse instantiates a new V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse and sets the default values. +func NewV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse()(*V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) { + m := &V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsItemSecretAssignmentsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsItemSecretAssignmentsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAppliance gets the appliance property value. Appliance identifier +// returns a V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_applianceable when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetAppliance()(V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_applianceable) { + return m.appliance +} +// GetCreatedAt gets the createdAt property value. Timestamp of the resource creation +// returns a *Time when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. Identifier of the customer owning the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["appliance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_applianceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAppliance(val.(V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_applianceable)) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["goal"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetGoal(val) + } + return nil + } + res["goalUpdatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetGoalUpdatedAt(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["label"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLabel(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secretFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecret(val.(V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secretable)) + } + return nil + } + res["service"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetService(val) + } + return nil + } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStatus(val) + } + return nil + } + res["statusUpdatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStatusUpdatedAt(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. Update generation number +// returns a *int32 when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetGeneration()(*int32) { + return m.generation +} +// GetGoal gets the goal property value. Current goal of the assignment +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetGoal()(*string) { + return m.goal +} +// GetGoalUpdatedAt gets the goalUpdatedAt property value. Timestamp of the last goal update +// returns a *Time when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetGoalUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.goalUpdatedAt +} +// GetGroups gets the groups property value. Groups associated with the resource +// returns a []V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groupsable when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetGroups()([]V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groupsable) { + return m.groups +} +// GetId gets the id property value. Identifier of the resource +// returns a *UUID when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetLabel gets the label property value. Consumer-defined label of the assignment +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetLabel()(*string) { + return m.label +} +// GetName gets the name property value. Name of the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. URI of the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSecret gets the secret property value. Secret resource reference +// returns a V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secretable when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetSecret()(V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secretable) { + return m.secret +} +// GetService gets the service property value. Name of the service originating the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetService()(*string) { + return m.service +} +// GetStatus gets the status property value. Current status of the assignment +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetStatus()(*string) { + return m.status +} +// GetStatusUpdatedAt gets the statusUpdatedAt property value. Timestamp of the last status update +// returns a *Time when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetStatusUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.statusUpdatedAt +} +// GetTypeEscaped gets the type property value. Type of the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. Timestamp of the last resource update +// returns a *Time when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("appliance", m.GetAppliance()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("customerId", m.GetCustomerId()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("generation", m.GetGeneration()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("goal", m.GetGoal()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("goalUpdatedAt", m.GetGoalUpdatedAt()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("label", m.GetLabel()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("service", m.GetService()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("status", m.GetStatus()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("statusUpdatedAt", m.GetStatusUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAppliance sets the appliance property value. Appliance identifier +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetAppliance(value V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_applianceable)() { + m.appliance = value +} +// SetCreatedAt sets the createdAt property value. Timestamp of the resource creation +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. Identifier of the customer owning the resource +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetGeneration sets the generation property value. Update generation number +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetGeneration(value *int32)() { + m.generation = value +} +// SetGoal sets the goal property value. Current goal of the assignment +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetGoal(value *string)() { + m.goal = value +} +// SetGoalUpdatedAt sets the goalUpdatedAt property value. Timestamp of the last goal update +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetGoalUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.goalUpdatedAt = value +} +// SetGroups sets the groups property value. Groups associated with the resource +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetGroups(value []V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groupsable)() { + m.groups = value +} +// SetId sets the id property value. Identifier of the resource +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetLabel sets the label property value. Consumer-defined label of the assignment +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetLabel(value *string)() { + m.label = value +} +// SetName sets the name property value. Name of the resource +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. URI of the resource +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSecret sets the secret property value. Secret resource reference +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetSecret(value V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secretable)() { + m.secret = value +} +// SetService sets the service property value. Name of the service originating the resource +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetService(value *string)() { + m.service = value +} +// SetStatus sets the status property value. Current status of the assignment +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetStatus(value *string)() { + m.status = value +} +// SetStatusUpdatedAt sets the statusUpdatedAt property value. Timestamp of the last status update +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetStatusUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.statusUpdatedAt = value +} +// SetTypeEscaped sets the type property value. Type of the resource +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. Timestamp of the last resource update +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1SecretAssignmentsItemSecretAssignmentsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAppliance()(V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_applianceable) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetGeneration()(*int32) + GetGoal()(*string) + GetGoalUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetGroups()([]V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groupsable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLabel()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetSecret()(V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secretable) + GetService()(*string) + GetStatus()(*string) + GetStatusUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetAppliance(value V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_applianceable)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetGeneration(value *int32)() + SetGoal(value *string)() + SetGoalUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetGroups(value []V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groupsable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLabel(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetSecret(value V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secretable)() + SetService(value *string)() + SetStatus(value *string)() + SetStatusUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response_escaped_appliance.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response_escaped_appliance.go new file mode 100644 index 0000000..1d48d12 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response_escaped_appliance.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_appliance appliance Identity +type V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_appliance struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identity of the appliance + id *string +} +// NewV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_appliance instantiates a new V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_appliance and sets the default values. +func NewV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_appliance()(*V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_appliance) { + m := &V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_appliance{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_applianceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_applianceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_appliance(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_appliance) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_appliance) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + return res +} +// GetId gets the id property value. Identity of the appliance +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_appliance) GetId()(*string) { + return m.id +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_appliance) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_appliance) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Identity of the appliance +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_appliance) SetId(value *string)() { + m.id = value +} +type V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_applianceable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + SetId(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response_escaped_groups.go new file mode 100644 index 0000000..35f9752 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response_escaped_groups.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups storage Cloud Group Identity +type V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifier of the associated group + id *string + // Name of the associated group + name *string + // URI of the associated group + resourceUri *string +} +// NewV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups instantiates a new V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups and sets the default values. +func NewV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups()(*V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups) { + m := &V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + return res +} +// GetId gets the id property value. Identifier of the associated group +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups) GetId()(*string) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. URI of the associated group +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups) GetResourceUri()(*string) { + return m.resourceUri +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Identifier of the associated group +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. URI of the associated group +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groups) SetResourceUri(value *string)() { + m.resourceUri = value +} +type V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response_escaped_secret.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response_escaped_secret.go new file mode 100644 index 0000000..6cbaf00 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_get_response_escaped_secret.go @@ -0,0 +1,169 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret storage Cloud Resource Reference +type V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifier of the resource + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the resource + name *string + // URI of the resource + resourceUri *string + // Type of the resource + typeEscaped *string +} +// NewV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret instantiates a new V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret and sets the default values. +func NewV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret()(*V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret) { + m := &V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secretFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secretFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. Identifier of the resource +// returns a *UUID when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. URI of the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. Type of the resource +// returns a *string when successful +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Identifier of the resource +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the resource +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. URI of the resource +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. Type of the resource +func (m *V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secret) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse_secretable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_response.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_response.go new file mode 100644 index 0000000..44d09d9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_item_secret_assignments_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretAssignmentsItemSecretAssignmentsResponse assignment Resource Definition +// Deprecated: This class is obsolete. Use V1beta1SecretAssignmentsItemSecretAssignmentsGetResponseable instead. +type V1beta1SecretAssignmentsItemSecretAssignmentsResponse struct { + V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse +} +// NewV1beta1SecretAssignmentsItemSecretAssignmentsResponse instantiates a new V1beta1SecretAssignmentsItemSecretAssignmentsResponse and sets the default values. +func NewV1beta1SecretAssignmentsItemSecretAssignmentsResponse()(*V1beta1SecretAssignmentsItemSecretAssignmentsResponse) { + m := &V1beta1SecretAssignmentsItemSecretAssignmentsResponse{ + V1beta1SecretAssignmentsItemSecretAssignmentsGetResponse: *NewV1beta1SecretAssignmentsItemSecretAssignmentsGetResponse(), + } + return m +} +// CreateV1beta1SecretAssignmentsItemSecretAssignmentsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsItemSecretAssignmentsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsItemSecretAssignmentsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1SecretAssignmentsItemSecretAssignmentsGetResponseable instead. +type V1beta1SecretAssignmentsItemSecretAssignmentsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1SecretAssignmentsItemSecretAssignmentsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_request_builder.go new file mode 100644 index 0000000..1cad9ea --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_request_builder.go @@ -0,0 +1,152 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" +) + +// V1beta1SecretAssignmentsRequestBuilder builds and executes requests for operations under \data-services\v1beta1\secret-assignments +type V1beta1SecretAssignmentsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1SecretAssignmentsRequestBuilderGetQueryParameters reports the attributes of the assignments owned by the customer. The response can be paged by using the limit and offset query parameters and filtered and sorted by using the filter and sort query parameters. +type V1beta1SecretAssignmentsRequestBuilderGetQueryParameters struct { + // An OData expression to filter responses by attribute. The OData logical operator "eq" is case-sensitive and supported for attributes "applianceId", "secretId", "goal", "service", or "status". The OData function "contains()" is not case-sensitive and supported for attribute "applianceId", "secretId", and "service". The OData logical operator "and" is supported for all attributes. + Filter *string `uriparametername:"filter"` + // The limit query parameter should be used in conjunction with offset for paging within a batched result set. The limit is the maximum number of items to include in the response. Example: offset=30&limit=10 + Limit *int32 `uriparametername:"limit"` + // The offset query parameter should be used in conjunction with limit for paging within a batched result set. The offset is the number of items from the beginning of the batched result set to the first item included in the response. Example: offset=30&limit=10 + Offset *int32 `uriparametername:"offset"` + // A response attribute to sort by, followed by a direction indicator ("asc" or "desc"). The attribute may be one of "applianceId", "secretId", "createdAt", "goal", "id", "label", "service", "status", or "updatedAt". Default: ascending. + Sort *string `uriparametername:"sort"` +} +// V1beta1SecretAssignmentsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SecretAssignmentsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1SecretAssignmentsRequestBuilderGetQueryParameters +} +// ById gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.secretAssignments.item collection +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. +// returns a *V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder when successful +func (m *V1beta1SecretAssignmentsRequestBuilder) ById(id string)(*V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["id"] = id + } + return NewV1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ByIdGuid gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.secretAssignments.item collection +// returns a *V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder when successful +func (m *V1beta1SecretAssignmentsRequestBuilder) ByIdGuid(id i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["id"] = id.String() + return NewV1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1SecretAssignmentsRequestBuilderInternal instantiates a new V1beta1SecretAssignmentsRequestBuilder and sets the default values. +func NewV1beta1SecretAssignmentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SecretAssignmentsRequestBuilder) { + m := &V1beta1SecretAssignmentsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/secret-assignments{?filter*,limit*,offset*,sort*}", pathParameters), + } + return m +} +// NewV1beta1SecretAssignmentsRequestBuilder instantiates a new V1beta1SecretAssignmentsRequestBuilder and sets the default values. +func NewV1beta1SecretAssignmentsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SecretAssignmentsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SecretAssignmentsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get reports the attributes of the assignments owned by the customer. The response can be paged by using the limit and offset query parameters and filtered and sorted by using the filter and sort query parameters. +// Deprecated: This method is obsolete. Use GetAsSecretAssignmentsGetResponse instead. +// returns a V1beta1SecretAssignmentsResponseable when successful +// returns a V1beta1SecretAssignments400Error error when the service returns a 400 status code +// returns a V1beta1SecretAssignments401Error error when the service returns a 401 status code +// returns a V1beta1SecretAssignments403Error error when the service returns a 403 status code +// returns a V1beta1SecretAssignments404Error error when the service returns a 404 status code +// returns a V1beta1SecretAssignments422Error error when the service returns a 422 status code +// returns a V1beta1SecretAssignments500Error error when the service returns a 500 status code +// returns a V1beta1SecretAssignments503Error error when the service returns a 503 status code +func (m *V1beta1SecretAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1SecretAssignmentsRequestBuilderGetRequestConfiguration)(V1beta1SecretAssignmentsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SecretAssignments400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SecretAssignments401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SecretAssignments403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SecretAssignments404ErrorFromDiscriminatorValue, + "422": CreateV1beta1SecretAssignments422ErrorFromDiscriminatorValue, + "500": CreateV1beta1SecretAssignments500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SecretAssignments503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SecretAssignmentsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SecretAssignmentsResponseable), nil +} +// GetAsSecretAssignmentsGetResponse reports the attributes of the assignments owned by the customer. The response can be paged by using the limit and offset query parameters and filtered and sorted by using the filter and sort query parameters. +// returns a V1beta1SecretAssignmentsGetResponseable when successful +// returns a V1beta1SecretAssignments400Error error when the service returns a 400 status code +// returns a V1beta1SecretAssignments401Error error when the service returns a 401 status code +// returns a V1beta1SecretAssignments403Error error when the service returns a 403 status code +// returns a V1beta1SecretAssignments404Error error when the service returns a 404 status code +// returns a V1beta1SecretAssignments422Error error when the service returns a 422 status code +// returns a V1beta1SecretAssignments500Error error when the service returns a 500 status code +// returns a V1beta1SecretAssignments503Error error when the service returns a 503 status code +func (m *V1beta1SecretAssignmentsRequestBuilder) GetAsSecretAssignmentsGetResponse(ctx context.Context, requestConfiguration *V1beta1SecretAssignmentsRequestBuilderGetRequestConfiguration)(V1beta1SecretAssignmentsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SecretAssignments400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SecretAssignments401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SecretAssignments403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SecretAssignments404ErrorFromDiscriminatorValue, + "422": CreateV1beta1SecretAssignments422ErrorFromDiscriminatorValue, + "500": CreateV1beta1SecretAssignments500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SecretAssignments503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SecretAssignmentsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SecretAssignmentsGetResponseable), nil +} +// ToGetRequestInformation reports the attributes of the assignments owned by the customer. The response can be paged by using the limit and offset query parameters and filtered and sorted by using the filter and sort query parameters. +// returns a *RequestInformation when successful +func (m *V1beta1SecretAssignmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1SecretAssignmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1SecretAssignmentsRequestBuilder when successful +func (m *V1beta1SecretAssignmentsRequestBuilder) WithUrl(rawUrl string)(*V1beta1SecretAssignmentsRequestBuilder) { + return NewV1beta1SecretAssignmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_response.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_response.go new file mode 100644 index 0000000..956cf60 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretAssignmentsResponse report Assignments Response +// Deprecated: This class is obsolete. Use V1beta1SecretAssignmentsGetResponseable instead. +type V1beta1SecretAssignmentsResponse struct { + V1beta1SecretAssignmentsGetResponse +} +// NewV1beta1SecretAssignmentsResponse instantiates a new V1beta1SecretAssignmentsResponse and sets the default values. +func NewV1beta1SecretAssignmentsResponse()(*V1beta1SecretAssignmentsResponse) { + m := &V1beta1SecretAssignmentsResponse{ + V1beta1SecretAssignmentsGetResponse: *NewV1beta1SecretAssignmentsGetResponse(), + } + return m +} +// CreateV1beta1SecretAssignmentsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretAssignmentsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretAssignmentsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1SecretAssignmentsGetResponseable instead. +type V1beta1SecretAssignmentsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1SecretAssignmentsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_secret_assignments_item_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_secret_assignments_item_request_builder.go new file mode 100644 index 0000000..912d8bd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secret_assignments_secret_assignments_item_request_builder.go @@ -0,0 +1,112 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder builds and executes requests for operations under \data-services\v1beta1\secret-assignments\{id} +type V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilderInternal instantiates a new V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder and sets the default values. +func NewV1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder) { + m := &V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/secret-assignments/{id}", pathParameters), + } + return m +} +// NewV1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder instantiates a new V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder and sets the default values. +func NewV1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get reports the attributes of the specified assignment. +// Deprecated: This method is obsolete. Use GetAsSecretAssignmentsGetResponse instead. +// returns a V1beta1SecretAssignmentsItemSecretAssignmentsResponseable when successful +// returns a V1beta1SecretAssignmentsItemSecretAssignments400Error error when the service returns a 400 status code +// returns a V1beta1SecretAssignmentsItemSecretAssignments401Error error when the service returns a 401 status code +// returns a V1beta1SecretAssignmentsItemSecretAssignments403Error error when the service returns a 403 status code +// returns a V1beta1SecretAssignmentsItemSecretAssignments404Error error when the service returns a 404 status code +// returns a V1beta1SecretAssignmentsItemSecretAssignments422Error error when the service returns a 422 status code +// returns a V1beta1SecretAssignmentsItemSecretAssignments500Error error when the service returns a 500 status code +// returns a V1beta1SecretAssignmentsItemSecretAssignments503Error error when the service returns a 503 status code +func (m *V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilderGetRequestConfiguration)(V1beta1SecretAssignmentsItemSecretAssignmentsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SecretAssignmentsItemSecretAssignments400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SecretAssignmentsItemSecretAssignments401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SecretAssignmentsItemSecretAssignments403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SecretAssignmentsItemSecretAssignments404ErrorFromDiscriminatorValue, + "422": CreateV1beta1SecretAssignmentsItemSecretAssignments422ErrorFromDiscriminatorValue, + "500": CreateV1beta1SecretAssignmentsItemSecretAssignments500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SecretAssignmentsItemSecretAssignments503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SecretAssignmentsItemSecretAssignmentsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SecretAssignmentsItemSecretAssignmentsResponseable), nil +} +// GetAsSecretAssignmentsGetResponse reports the attributes of the specified assignment. +// returns a V1beta1SecretAssignmentsItemSecretAssignmentsGetResponseable when successful +// returns a V1beta1SecretAssignmentsItemSecretAssignments400Error error when the service returns a 400 status code +// returns a V1beta1SecretAssignmentsItemSecretAssignments401Error error when the service returns a 401 status code +// returns a V1beta1SecretAssignmentsItemSecretAssignments403Error error when the service returns a 403 status code +// returns a V1beta1SecretAssignmentsItemSecretAssignments404Error error when the service returns a 404 status code +// returns a V1beta1SecretAssignmentsItemSecretAssignments422Error error when the service returns a 422 status code +// returns a V1beta1SecretAssignmentsItemSecretAssignments500Error error when the service returns a 500 status code +// returns a V1beta1SecretAssignmentsItemSecretAssignments503Error error when the service returns a 503 status code +func (m *V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder) GetAsSecretAssignmentsGetResponse(ctx context.Context, requestConfiguration *V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilderGetRequestConfiguration)(V1beta1SecretAssignmentsItemSecretAssignmentsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SecretAssignmentsItemSecretAssignments400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SecretAssignmentsItemSecretAssignments401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SecretAssignmentsItemSecretAssignments403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SecretAssignmentsItemSecretAssignments404ErrorFromDiscriminatorValue, + "422": CreateV1beta1SecretAssignmentsItemSecretAssignments422ErrorFromDiscriminatorValue, + "500": CreateV1beta1SecretAssignmentsItemSecretAssignments500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SecretAssignmentsItemSecretAssignments503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SecretAssignmentsItemSecretAssignmentsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SecretAssignmentsItemSecretAssignmentsGetResponseable), nil +} +// ToGetRequestInformation reports the attributes of the specified assignment. +// returns a *RequestInformation when successful +func (m *V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder when successful +func (m *V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder) WithUrl(rawUrl string)(*V1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder) { + return NewV1beta1SecretAssignmentsSecretAssignmentsItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets400_error.go new file mode 100644 index 0000000..c05d0c8 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Secrets400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1Secrets400Error instantiates a new V1beta1Secrets400Error and sets the default values. +func NewV1beta1Secrets400Error()(*V1beta1Secrets400Error) { + m := &V1beta1Secrets400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Secrets400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Secrets400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Secrets400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Secrets400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Secrets400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1Secrets400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1Secrets400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Secrets400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1Secrets400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1Secrets400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Secrets400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Secrets400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1Secrets400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1Secrets400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1Secrets400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1Secrets400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Secrets400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets401_error.go new file mode 100644 index 0000000..d5d760b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Secrets401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1Secrets401Error instantiates a new V1beta1Secrets401Error and sets the default values. +func NewV1beta1Secrets401Error()(*V1beta1Secrets401Error) { + m := &V1beta1Secrets401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Secrets401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Secrets401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Secrets401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Secrets401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Secrets401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1Secrets401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1Secrets401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Secrets401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1Secrets401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1Secrets401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Secrets401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Secrets401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1Secrets401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1Secrets401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1Secrets401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1Secrets401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Secrets401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets403_error.go new file mode 100644 index 0000000..826862a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Secrets403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1Secrets403Error instantiates a new V1beta1Secrets403Error and sets the default values. +func NewV1beta1Secrets403Error()(*V1beta1Secrets403Error) { + m := &V1beta1Secrets403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Secrets403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Secrets403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Secrets403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Secrets403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Secrets403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1Secrets403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1Secrets403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Secrets403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1Secrets403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1Secrets403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Secrets403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Secrets403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1Secrets403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1Secrets403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1Secrets403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1Secrets403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Secrets403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets404_error.go new file mode 100644 index 0000000..82de9bf --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Secrets404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1Secrets404Error instantiates a new V1beta1Secrets404Error and sets the default values. +func NewV1beta1Secrets404Error()(*V1beta1Secrets404Error) { + m := &V1beta1Secrets404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Secrets404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Secrets404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Secrets404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Secrets404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Secrets404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1Secrets404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1Secrets404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Secrets404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1Secrets404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1Secrets404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Secrets404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Secrets404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1Secrets404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1Secrets404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1Secrets404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1Secrets404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Secrets404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets409_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets409_error.go new file mode 100644 index 0000000..c83ac95 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets409_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Secrets409Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1Secrets409Error instantiates a new V1beta1Secrets409Error and sets the default values. +func NewV1beta1Secrets409Error()(*V1beta1Secrets409Error) { + m := &V1beta1Secrets409Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Secrets409ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Secrets409ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Secrets409Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Secrets409Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Secrets409Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1Secrets409Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1Secrets409Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Secrets409Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1Secrets409Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1Secrets409Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Secrets409Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Secrets409Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1Secrets409Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1Secrets409Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1Secrets409Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1Secrets409Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Secrets409Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets412_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets412_error.go new file mode 100644 index 0000000..95851db --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets412_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Secrets412Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1Secrets412Error instantiates a new V1beta1Secrets412Error and sets the default values. +func NewV1beta1Secrets412Error()(*V1beta1Secrets412Error) { + m := &V1beta1Secrets412Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Secrets412ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Secrets412ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Secrets412Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Secrets412Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Secrets412Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1Secrets412Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1Secrets412Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Secrets412Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1Secrets412Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1Secrets412Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Secrets412Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Secrets412Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1Secrets412Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1Secrets412Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1Secrets412Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1Secrets412Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Secrets412Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets422_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets422_error.go new file mode 100644 index 0000000..fe712dd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets422_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Secrets422Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1Secrets422Error instantiates a new V1beta1Secrets422Error and sets the default values. +func NewV1beta1Secrets422Error()(*V1beta1Secrets422Error) { + m := &V1beta1Secrets422Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Secrets422ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Secrets422ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Secrets422Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Secrets422Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Secrets422Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1Secrets422Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1Secrets422Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Secrets422Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1Secrets422Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1Secrets422Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Secrets422Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Secrets422Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1Secrets422Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1Secrets422Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1Secrets422Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1Secrets422Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Secrets422Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets500_error.go new file mode 100644 index 0000000..8979378 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Secrets500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1Secrets500Error instantiates a new V1beta1Secrets500Error and sets the default values. +func NewV1beta1Secrets500Error()(*V1beta1Secrets500Error) { + m := &V1beta1Secrets500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Secrets500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Secrets500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Secrets500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Secrets500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Secrets500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1Secrets500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1Secrets500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Secrets500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1Secrets500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1Secrets500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Secrets500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Secrets500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1Secrets500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1Secrets500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1Secrets500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1Secrets500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Secrets500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets503_error.go new file mode 100644 index 0000000..38f1566 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Secrets503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1Secrets503Error instantiates a new V1beta1Secrets503Error and sets the default values. +func NewV1beta1Secrets503Error()(*V1beta1Secrets503Error) { + m := &V1beta1Secrets503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Secrets503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Secrets503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Secrets503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Secrets503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Secrets503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1Secrets503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1Secrets503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Secrets503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1Secrets503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1Secrets503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Secrets503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Secrets503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1Secrets503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1Secrets503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1Secrets503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1Secrets503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Secrets503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response.go new file mode 100644 index 0000000..f4ff2a4 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response.go @@ -0,0 +1,209 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsGetResponse report Secrets Response +type V1beta1SecretsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Current results page count + count *int32 + // Secret resource definitions + items []V1beta1SecretsGetResponse_itemsable + // Cursor for next results page + next *string + // Offset of current results page + offset *int32 + // Total results count + total *int32 +} +// NewV1beta1SecretsGetResponse instantiates a new V1beta1SecretsGetResponse and sets the default values. +func NewV1beta1SecretsGetResponse()(*V1beta1SecretsGetResponse) { + m := &V1beta1SecretsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Current results page count +// returns a *int32 when successful +func (m *V1beta1SecretsGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SecretsGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SecretsGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SecretsGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["next"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNext(val) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetItems gets the items property value. Secret resource definitions +// returns a []V1beta1SecretsGetResponse_itemsable when successful +func (m *V1beta1SecretsGetResponse) GetItems()([]V1beta1SecretsGetResponse_itemsable) { + return m.items +} +// GetNext gets the next property value. Cursor for next results page +// returns a *string when successful +func (m *V1beta1SecretsGetResponse) GetNext()(*string) { + return m.next +} +// GetOffset gets the offset property value. Offset of current results page +// returns a *int32 when successful +func (m *V1beta1SecretsGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetTotal gets the total property value. Total results count +// returns a *int32 when successful +func (m *V1beta1SecretsGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1SecretsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("next", m.GetNext()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Current results page count +func (m *V1beta1SecretsGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. Secret resource definitions +func (m *V1beta1SecretsGetResponse) SetItems(value []V1beta1SecretsGetResponse_itemsable)() { + m.items = value +} +// SetNext sets the next property value. Cursor for next results page +func (m *V1beta1SecretsGetResponse) SetNext(value *string)() { + m.next = value +} +// SetOffset sets the offset property value. Offset of current results page +func (m *V1beta1SecretsGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetTotal sets the total property value. Total results count +func (m *V1beta1SecretsGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1SecretsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1SecretsGetResponse_itemsable) + GetNext()(*string) + GetOffset()(*int32) + GetTotal()(*int32) + SetCount(value *int32)() + SetItems(value []V1beta1SecretsGetResponse_itemsable)() + SetNext(value *string)() + SetOffset(value *int32)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items.go new file mode 100644 index 0000000..c889c91 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items.go @@ -0,0 +1,617 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsGetResponse_items secret Resource Definition +type V1beta1SecretsGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Count of associated assignment resources + assignmentsCount *int32 + // Resource classifier definition + classifier V1beta1SecretsGetResponse_items_classifierable + // Timestamp of the resource creation + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Identifier of the customer owning the resource + customerId *string + // Resource domain definition + domain V1beta1SecretsGetResponse_items_domainable + // Update generation number + generation *int32 + // Groups associated with the resource + groups []V1beta1SecretsGetResponse_items_groupsable + // Identifier of the resource + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Consumer-defined label of the resource + label *string + // Name of the resource + name *string + // Secret properties conformant policy + policy *string + // Reference of the prototype resource + prototype V1beta1SecretsGetResponse_items_prototypeable + // URI of the resource + resourceUri *string + // Name of the service originating the resource + service *string + // Status of the resource + status *string + // Timestamp of the last status update + statusUpdatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Resource subclassifier definition + subclassifier V1beta1SecretsGetResponse_items_subclassifierable + // Type of the resource + typeEscaped *string + // Timestamp of the last resource update + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1SecretsGetResponse_items instantiates a new V1beta1SecretsGetResponse_items and sets the default values. +func NewV1beta1SecretsGetResponse_items()(*V1beta1SecretsGetResponse_items) { + m := &V1beta1SecretsGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAssignmentsCount gets the assignmentsCount property value. Count of associated assignment resources +// returns a *int32 when successful +func (m *V1beta1SecretsGetResponse_items) GetAssignmentsCount()(*int32) { + return m.assignmentsCount +} +// GetClassifier gets the classifier property value. Resource classifier definition +// returns a V1beta1SecretsGetResponse_items_classifierable when successful +func (m *V1beta1SecretsGetResponse_items) GetClassifier()(V1beta1SecretsGetResponse_items_classifierable) { + return m.classifier +} +// GetCreatedAt gets the createdAt property value. Timestamp of the resource creation +// returns a *Time when successful +func (m *V1beta1SecretsGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. Identifier of the customer owning the resource +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetDomain gets the domain property value. Resource domain definition +// returns a V1beta1SecretsGetResponse_items_domainable when successful +func (m *V1beta1SecretsGetResponse_items) GetDomain()(V1beta1SecretsGetResponse_items_domainable) { + return m.domain +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["assignmentsCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetAssignmentsCount(val) + } + return nil + } + res["classifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsGetResponse_items_classifierFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetClassifier(val.(V1beta1SecretsGetResponse_items_classifierable)) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["domain"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsGetResponse_items_domainFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetDomain(val.(V1beta1SecretsGetResponse_items_domainable)) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SecretsGetResponse_items_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SecretsGetResponse_items_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SecretsGetResponse_items_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["label"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLabel(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["policy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPolicy(val) + } + return nil + } + res["prototype"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsGetResponse_items_prototypeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPrototype(val.(V1beta1SecretsGetResponse_items_prototypeable)) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["service"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetService(val) + } + return nil + } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStatus(val) + } + return nil + } + res["statusUpdatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStatusUpdatedAt(val) + } + return nil + } + res["subclassifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsGetResponse_items_subclassifierFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSubclassifier(val.(V1beta1SecretsGetResponse_items_subclassifierable)) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. Update generation number +// returns a *int32 when successful +func (m *V1beta1SecretsGetResponse_items) GetGeneration()(*int32) { + return m.generation +} +// GetGroups gets the groups property value. Groups associated with the resource +// returns a []V1beta1SecretsGetResponse_items_groupsable when successful +func (m *V1beta1SecretsGetResponse_items) GetGroups()([]V1beta1SecretsGetResponse_items_groupsable) { + return m.groups +} +// GetId gets the id property value. Identifier of the resource +// returns a *UUID when successful +func (m *V1beta1SecretsGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetLabel gets the label property value. Consumer-defined label of the resource +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items) GetLabel()(*string) { + return m.label +} +// GetName gets the name property value. Name of the resource +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items) GetName()(*string) { + return m.name +} +// GetPolicy gets the policy property value. Secret properties conformant policy +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items) GetPolicy()(*string) { + return m.policy +} +// GetPrototype gets the prototype property value. Reference of the prototype resource +// returns a V1beta1SecretsGetResponse_items_prototypeable when successful +func (m *V1beta1SecretsGetResponse_items) GetPrototype()(V1beta1SecretsGetResponse_items_prototypeable) { + return m.prototype +} +// GetResourceUri gets the resourceUri property value. URI of the resource +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetService gets the service property value. Name of the service originating the resource +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items) GetService()(*string) { + return m.service +} +// GetStatus gets the status property value. Status of the resource +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items) GetStatus()(*string) { + return m.status +} +// GetStatusUpdatedAt gets the statusUpdatedAt property value. Timestamp of the last status update +// returns a *Time when successful +func (m *V1beta1SecretsGetResponse_items) GetStatusUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.statusUpdatedAt +} +// GetSubclassifier gets the subclassifier property value. Resource subclassifier definition +// returns a V1beta1SecretsGetResponse_items_subclassifierable when successful +func (m *V1beta1SecretsGetResponse_items) GetSubclassifier()(V1beta1SecretsGetResponse_items_subclassifierable) { + return m.subclassifier +} +// GetTypeEscaped gets the type property value. Type of the resource +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. Timestamp of the last resource update +// returns a *Time when successful +func (m *V1beta1SecretsGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1SecretsGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("assignmentsCount", m.GetAssignmentsCount()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("classifier", m.GetClassifier()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("customerId", m.GetCustomerId()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("domain", m.GetDomain()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("generation", m.GetGeneration()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("label", m.GetLabel()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("policy", m.GetPolicy()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("prototype", m.GetPrototype()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("service", m.GetService()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("status", m.GetStatus()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("statusUpdatedAt", m.GetStatusUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("subclassifier", m.GetSubclassifier()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAssignmentsCount sets the assignmentsCount property value. Count of associated assignment resources +func (m *V1beta1SecretsGetResponse_items) SetAssignmentsCount(value *int32)() { + m.assignmentsCount = value +} +// SetClassifier sets the classifier property value. Resource classifier definition +func (m *V1beta1SecretsGetResponse_items) SetClassifier(value V1beta1SecretsGetResponse_items_classifierable)() { + m.classifier = value +} +// SetCreatedAt sets the createdAt property value. Timestamp of the resource creation +func (m *V1beta1SecretsGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. Identifier of the customer owning the resource +func (m *V1beta1SecretsGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDomain sets the domain property value. Resource domain definition +func (m *V1beta1SecretsGetResponse_items) SetDomain(value V1beta1SecretsGetResponse_items_domainable)() { + m.domain = value +} +// SetGeneration sets the generation property value. Update generation number +func (m *V1beta1SecretsGetResponse_items) SetGeneration(value *int32)() { + m.generation = value +} +// SetGroups sets the groups property value. Groups associated with the resource +func (m *V1beta1SecretsGetResponse_items) SetGroups(value []V1beta1SecretsGetResponse_items_groupsable)() { + m.groups = value +} +// SetId sets the id property value. Identifier of the resource +func (m *V1beta1SecretsGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetLabel sets the label property value. Consumer-defined label of the resource +func (m *V1beta1SecretsGetResponse_items) SetLabel(value *string)() { + m.label = value +} +// SetName sets the name property value. Name of the resource +func (m *V1beta1SecretsGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetPolicy sets the policy property value. Secret properties conformant policy +func (m *V1beta1SecretsGetResponse_items) SetPolicy(value *string)() { + m.policy = value +} +// SetPrototype sets the prototype property value. Reference of the prototype resource +func (m *V1beta1SecretsGetResponse_items) SetPrototype(value V1beta1SecretsGetResponse_items_prototypeable)() { + m.prototype = value +} +// SetResourceUri sets the resourceUri property value. URI of the resource +func (m *V1beta1SecretsGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetService sets the service property value. Name of the service originating the resource +func (m *V1beta1SecretsGetResponse_items) SetService(value *string)() { + m.service = value +} +// SetStatus sets the status property value. Status of the resource +func (m *V1beta1SecretsGetResponse_items) SetStatus(value *string)() { + m.status = value +} +// SetStatusUpdatedAt sets the statusUpdatedAt property value. Timestamp of the last status update +func (m *V1beta1SecretsGetResponse_items) SetStatusUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.statusUpdatedAt = value +} +// SetSubclassifier sets the subclassifier property value. Resource subclassifier definition +func (m *V1beta1SecretsGetResponse_items) SetSubclassifier(value V1beta1SecretsGetResponse_items_subclassifierable)() { + m.subclassifier = value +} +// SetTypeEscaped sets the type property value. Type of the resource +func (m *V1beta1SecretsGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. Timestamp of the last resource update +func (m *V1beta1SecretsGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1SecretsGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAssignmentsCount()(*int32) + GetClassifier()(V1beta1SecretsGetResponse_items_classifierable) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDomain()(V1beta1SecretsGetResponse_items_domainable) + GetGeneration()(*int32) + GetGroups()([]V1beta1SecretsGetResponse_items_groupsable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLabel()(*string) + GetName()(*string) + GetPolicy()(*string) + GetPrototype()(V1beta1SecretsGetResponse_items_prototypeable) + GetResourceUri()(*string) + GetService()(*string) + GetStatus()(*string) + GetStatusUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetSubclassifier()(V1beta1SecretsGetResponse_items_subclassifierable) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetAssignmentsCount(value *int32)() + SetClassifier(value V1beta1SecretsGetResponse_items_classifierable)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDomain(value V1beta1SecretsGetResponse_items_domainable)() + SetGeneration(value *int32)() + SetGroups(value []V1beta1SecretsGetResponse_items_groupsable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLabel(value *string)() + SetName(value *string)() + SetPolicy(value *string)() + SetPrototype(value V1beta1SecretsGetResponse_items_prototypeable)() + SetResourceUri(value *string)() + SetService(value *string)() + SetStatus(value *string)() + SetStatusUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetSubclassifier(value V1beta1SecretsGetResponse_items_subclassifierable)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_classifier.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_classifier.go new file mode 100644 index 0000000..b24d79c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_classifier.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsGetResponse_items_classifier resource Classifier Definition (e.g. SECRET) +type V1beta1SecretsGetResponse_items_classifier struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the resource classifier + name *string +} +// NewV1beta1SecretsGetResponse_items_classifier instantiates a new V1beta1SecretsGetResponse_items_classifier and sets the default values. +func NewV1beta1SecretsGetResponse_items_classifier()(*V1beta1SecretsGetResponse_items_classifier) { + m := &V1beta1SecretsGetResponse_items_classifier{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsGetResponse_items_classifierFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsGetResponse_items_classifierFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsGetResponse_items_classifier(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsGetResponse_items_classifier) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsGetResponse_items_classifier) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource classifier +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items_classifier) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1SecretsGetResponse_items_classifier) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsGetResponse_items_classifier) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. Name of the resource classifier +func (m *V1beta1SecretsGetResponse_items_classifier) SetName(value *string)() { + m.name = value +} +type V1beta1SecretsGetResponse_items_classifierable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_domain.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_domain.go new file mode 100644 index 0000000..d3059f0 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_domain.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsGetResponse_items_domain resource Domain Entity Definition (e.g. CONFIGURATION) +type V1beta1SecretsGetResponse_items_domain struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the resource domain + name *string + // Resource domain properties + properties V1beta1SecretsGetResponse_items_domain_propertiesable +} +// NewV1beta1SecretsGetResponse_items_domain instantiates a new V1beta1SecretsGetResponse_items_domain and sets the default values. +func NewV1beta1SecretsGetResponse_items_domain()(*V1beta1SecretsGetResponse_items_domain) { + m := &V1beta1SecretsGetResponse_items_domain{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsGetResponse_items_domainFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsGetResponse_items_domainFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsGetResponse_items_domain(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsGetResponse_items_domain) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsGetResponse_items_domain) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["properties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsGetResponse_items_domain_propertiesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetProperties(val.(V1beta1SecretsGetResponse_items_domain_propertiesable)) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource domain +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items_domain) GetName()(*string) { + return m.name +} +// GetProperties gets the properties property value. Resource domain properties +// returns a V1beta1SecretsGetResponse_items_domain_propertiesable when successful +func (m *V1beta1SecretsGetResponse_items_domain) GetProperties()(V1beta1SecretsGetResponse_items_domain_propertiesable) { + return m.properties +} +// Serialize serializes information the current object +func (m *V1beta1SecretsGetResponse_items_domain) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("properties", m.GetProperties()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsGetResponse_items_domain) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. Name of the resource domain +func (m *V1beta1SecretsGetResponse_items_domain) SetName(value *string)() { + m.name = value +} +// SetProperties sets the properties property value. Resource domain properties +func (m *V1beta1SecretsGetResponse_items_domain) SetProperties(value V1beta1SecretsGetResponse_items_domain_propertiesable)() { + m.properties = value +} +type V1beta1SecretsGetResponse_items_domainable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetProperties()(V1beta1SecretsGetResponse_items_domain_propertiesable) + SetName(value *string)() + SetProperties(value V1beta1SecretsGetResponse_items_domain_propertiesable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_domain_escaped_properties.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_domain_escaped_properties.go new file mode 100644 index 0000000..13e0c44 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_domain_escaped_properties.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsGetResponse_items_domain_properties resource domain properties +type V1beta1SecretsGetResponse_items_domain_properties struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1SecretsGetResponse_items_domain_properties instantiates a new V1beta1SecretsGetResponse_items_domain_properties and sets the default values. +func NewV1beta1SecretsGetResponse_items_domain_properties()(*V1beta1SecretsGetResponse_items_domain_properties) { + m := &V1beta1SecretsGetResponse_items_domain_properties{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsGetResponse_items_domain_propertiesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsGetResponse_items_domain_propertiesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsGetResponse_items_domain_properties(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsGetResponse_items_domain_properties) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsGetResponse_items_domain_properties) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsGetResponse_items_domain_properties) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsGetResponse_items_domain_properties) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1SecretsGetResponse_items_domain_propertiesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_groups.go new file mode 100644 index 0000000..e68320a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_groups.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsGetResponse_items_groups storage Cloud Group Identity +type V1beta1SecretsGetResponse_items_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifier of the associated group + id *string + // Name of the associated group + name *string + // URI of the associated group + resourceUri *string +} +// NewV1beta1SecretsGetResponse_items_groups instantiates a new V1beta1SecretsGetResponse_items_groups and sets the default values. +func NewV1beta1SecretsGetResponse_items_groups()(*V1beta1SecretsGetResponse_items_groups) { + m := &V1beta1SecretsGetResponse_items_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsGetResponse_items_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsGetResponse_items_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsGetResponse_items_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsGetResponse_items_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsGetResponse_items_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + return res +} +// GetId gets the id property value. Identifier of the associated group +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items_groups) GetId()(*string) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items_groups) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. URI of the associated group +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items_groups) GetResourceUri()(*string) { + return m.resourceUri +} +// Serialize serializes information the current object +func (m *V1beta1SecretsGetResponse_items_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsGetResponse_items_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Identifier of the associated group +func (m *V1beta1SecretsGetResponse_items_groups) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1SecretsGetResponse_items_groups) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. URI of the associated group +func (m *V1beta1SecretsGetResponse_items_groups) SetResourceUri(value *string)() { + m.resourceUri = value +} +type V1beta1SecretsGetResponse_items_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_prototype.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_prototype.go new file mode 100644 index 0000000..c5a6cad --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_prototype.go @@ -0,0 +1,169 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsGetResponse_items_prototype storage Cloud Partial Resource Reference +type V1beta1SecretsGetResponse_items_prototype struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifier of the resource + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the resource + name *string + // URI of the resource + resourceUri *string + // Type of the resource + typeEscaped *string +} +// NewV1beta1SecretsGetResponse_items_prototype instantiates a new V1beta1SecretsGetResponse_items_prototype and sets the default values. +func NewV1beta1SecretsGetResponse_items_prototype()(*V1beta1SecretsGetResponse_items_prototype) { + m := &V1beta1SecretsGetResponse_items_prototype{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsGetResponse_items_prototypeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsGetResponse_items_prototypeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsGetResponse_items_prototype(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsGetResponse_items_prototype) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsGetResponse_items_prototype) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. Identifier of the resource +// returns a *UUID when successful +func (m *V1beta1SecretsGetResponse_items_prototype) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the resource +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items_prototype) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. URI of the resource +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items_prototype) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. Type of the resource +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items_prototype) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1SecretsGetResponse_items_prototype) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsGetResponse_items_prototype) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Identifier of the resource +func (m *V1beta1SecretsGetResponse_items_prototype) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the resource +func (m *V1beta1SecretsGetResponse_items_prototype) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. URI of the resource +func (m *V1beta1SecretsGetResponse_items_prototype) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. Type of the resource +func (m *V1beta1SecretsGetResponse_items_prototype) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1SecretsGetResponse_items_prototypeable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_subclassifier.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_subclassifier.go new file mode 100644 index 0000000..1d416b3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_subclassifier.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsGetResponse_items_subclassifier resource Subclassifier Definition (e.g. BASIC_AUTH) +type V1beta1SecretsGetResponse_items_subclassifier struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the resource subclassifier + name *string + // Resource subclassifier properties + properties V1beta1SecretsGetResponse_items_subclassifier_propertiesable +} +// NewV1beta1SecretsGetResponse_items_subclassifier instantiates a new V1beta1SecretsGetResponse_items_subclassifier and sets the default values. +func NewV1beta1SecretsGetResponse_items_subclassifier()(*V1beta1SecretsGetResponse_items_subclassifier) { + m := &V1beta1SecretsGetResponse_items_subclassifier{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsGetResponse_items_subclassifierFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsGetResponse_items_subclassifierFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsGetResponse_items_subclassifier(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsGetResponse_items_subclassifier) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsGetResponse_items_subclassifier) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["properties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsGetResponse_items_subclassifier_propertiesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetProperties(val.(V1beta1SecretsGetResponse_items_subclassifier_propertiesable)) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource subclassifier +// returns a *string when successful +func (m *V1beta1SecretsGetResponse_items_subclassifier) GetName()(*string) { + return m.name +} +// GetProperties gets the properties property value. Resource subclassifier properties +// returns a V1beta1SecretsGetResponse_items_subclassifier_propertiesable when successful +func (m *V1beta1SecretsGetResponse_items_subclassifier) GetProperties()(V1beta1SecretsGetResponse_items_subclassifier_propertiesable) { + return m.properties +} +// Serialize serializes information the current object +func (m *V1beta1SecretsGetResponse_items_subclassifier) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("properties", m.GetProperties()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsGetResponse_items_subclassifier) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. Name of the resource subclassifier +func (m *V1beta1SecretsGetResponse_items_subclassifier) SetName(value *string)() { + m.name = value +} +// SetProperties sets the properties property value. Resource subclassifier properties +func (m *V1beta1SecretsGetResponse_items_subclassifier) SetProperties(value V1beta1SecretsGetResponse_items_subclassifier_propertiesable)() { + m.properties = value +} +type V1beta1SecretsGetResponse_items_subclassifierable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetProperties()(V1beta1SecretsGetResponse_items_subclassifier_propertiesable) + SetName(value *string)() + SetProperties(value V1beta1SecretsGetResponse_items_subclassifier_propertiesable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_subclassifier_escaped_properties.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_subclassifier_escaped_properties.go new file mode 100644 index 0000000..6f48340 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_get_response_escaped_items_escaped_subclassifier_escaped_properties.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsGetResponse_items_subclassifier_properties resource subclassifier properties +type V1beta1SecretsGetResponse_items_subclassifier_properties struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1SecretsGetResponse_items_subclassifier_properties instantiates a new V1beta1SecretsGetResponse_items_subclassifier_properties and sets the default values. +func NewV1beta1SecretsGetResponse_items_subclassifier_properties()(*V1beta1SecretsGetResponse_items_subclassifier_properties) { + m := &V1beta1SecretsGetResponse_items_subclassifier_properties{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsGetResponse_items_subclassifier_propertiesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsGetResponse_items_subclassifier_propertiesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsGetResponse_items_subclassifier_properties(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsGetResponse_items_subclassifier_properties) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsGetResponse_items_subclassifier_properties) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsGetResponse_items_subclassifier_properties) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsGetResponse_items_subclassifier_properties) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1SecretsGetResponse_items_subclassifier_propertiesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets400_error.go new file mode 100644 index 0000000..f86d784 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretsItemSecrets400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretsItemSecrets400Error instantiates a new V1beta1SecretsItemSecrets400Error and sets the default values. +func NewV1beta1SecretsItemSecrets400Error()(*V1beta1SecretsItemSecrets400Error) { + m := &V1beta1SecretsItemSecrets400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecrets400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecrets400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecrets400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretsItemSecrets400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecrets400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecrets400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretsItemSecrets400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecrets400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecrets400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretsItemSecrets400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretsItemSecrets400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretsItemSecrets400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretsItemSecrets400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretsItemSecrets400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets401_error.go new file mode 100644 index 0000000..ca87cb9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretsItemSecrets401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretsItemSecrets401Error instantiates a new V1beta1SecretsItemSecrets401Error and sets the default values. +func NewV1beta1SecretsItemSecrets401Error()(*V1beta1SecretsItemSecrets401Error) { + m := &V1beta1SecretsItemSecrets401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecrets401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecrets401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecrets401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretsItemSecrets401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecrets401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecrets401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretsItemSecrets401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecrets401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecrets401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretsItemSecrets401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretsItemSecrets401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretsItemSecrets401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretsItemSecrets401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretsItemSecrets401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets403_error.go new file mode 100644 index 0000000..c013118 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretsItemSecrets403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretsItemSecrets403Error instantiates a new V1beta1SecretsItemSecrets403Error and sets the default values. +func NewV1beta1SecretsItemSecrets403Error()(*V1beta1SecretsItemSecrets403Error) { + m := &V1beta1SecretsItemSecrets403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecrets403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecrets403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecrets403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretsItemSecrets403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecrets403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecrets403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretsItemSecrets403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecrets403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecrets403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretsItemSecrets403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretsItemSecrets403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretsItemSecrets403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretsItemSecrets403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretsItemSecrets403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets404_error.go new file mode 100644 index 0000000..da53e2d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretsItemSecrets404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretsItemSecrets404Error instantiates a new V1beta1SecretsItemSecrets404Error and sets the default values. +func NewV1beta1SecretsItemSecrets404Error()(*V1beta1SecretsItemSecrets404Error) { + m := &V1beta1SecretsItemSecrets404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecrets404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecrets404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecrets404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretsItemSecrets404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecrets404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecrets404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretsItemSecrets404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecrets404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecrets404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretsItemSecrets404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretsItemSecrets404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretsItemSecrets404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretsItemSecrets404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretsItemSecrets404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets409_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets409_error.go new file mode 100644 index 0000000..1291536 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets409_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretsItemSecrets409Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretsItemSecrets409Error instantiates a new V1beta1SecretsItemSecrets409Error and sets the default values. +func NewV1beta1SecretsItemSecrets409Error()(*V1beta1SecretsItemSecrets409Error) { + m := &V1beta1SecretsItemSecrets409Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecrets409ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecrets409ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecrets409Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretsItemSecrets409Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecrets409Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets409Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets409Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecrets409Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretsItemSecrets409Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets409Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecrets409Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecrets409Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretsItemSecrets409Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretsItemSecrets409Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretsItemSecrets409Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretsItemSecrets409Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretsItemSecrets409Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets412_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets412_error.go new file mode 100644 index 0000000..87957eb --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets412_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretsItemSecrets412Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretsItemSecrets412Error instantiates a new V1beta1SecretsItemSecrets412Error and sets the default values. +func NewV1beta1SecretsItemSecrets412Error()(*V1beta1SecretsItemSecrets412Error) { + m := &V1beta1SecretsItemSecrets412Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecrets412ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecrets412ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecrets412Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretsItemSecrets412Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecrets412Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets412Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets412Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecrets412Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretsItemSecrets412Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets412Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecrets412Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecrets412Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretsItemSecrets412Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretsItemSecrets412Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretsItemSecrets412Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretsItemSecrets412Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretsItemSecrets412Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets422_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets422_error.go new file mode 100644 index 0000000..2c219eb --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets422_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretsItemSecrets422Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretsItemSecrets422Error instantiates a new V1beta1SecretsItemSecrets422Error and sets the default values. +func NewV1beta1SecretsItemSecrets422Error()(*V1beta1SecretsItemSecrets422Error) { + m := &V1beta1SecretsItemSecrets422Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecrets422ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecrets422ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecrets422Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretsItemSecrets422Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecrets422Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets422Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets422Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecrets422Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretsItemSecrets422Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets422Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecrets422Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecrets422Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretsItemSecrets422Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretsItemSecrets422Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretsItemSecrets422Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretsItemSecrets422Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretsItemSecrets422Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets500_error.go new file mode 100644 index 0000000..4ba3092 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretsItemSecrets500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretsItemSecrets500Error instantiates a new V1beta1SecretsItemSecrets500Error and sets the default values. +func NewV1beta1SecretsItemSecrets500Error()(*V1beta1SecretsItemSecrets500Error) { + m := &V1beta1SecretsItemSecrets500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecrets500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecrets500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecrets500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretsItemSecrets500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecrets500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecrets500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretsItemSecrets500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecrets500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecrets500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretsItemSecrets500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretsItemSecrets500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretsItemSecrets500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretsItemSecrets500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretsItemSecrets500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets503_error.go new file mode 100644 index 0000000..301e3a3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SecretsItemSecrets503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Debug ID + debugId *string + // Error code + errorCode *string + // HTTP status code + httpStatusCode *int32 + // Error message + message *string +} +// NewV1beta1SecretsItemSecrets503Error instantiates a new V1beta1SecretsItemSecrets503Error and sets the default values. +func NewV1beta1SecretsItemSecrets503Error()(*V1beta1SecretsItemSecrets503Error) { + m := &V1beta1SecretsItemSecrets503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecrets503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecrets503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecrets503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SecretsItemSecrets503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecrets503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. Debug ID +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. Error code +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecrets503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. HTTP status code +// returns a *int32 when successful +func (m *V1beta1SecretsItemSecrets503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. Error message +// returns a *string when successful +func (m *V1beta1SecretsItemSecrets503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecrets503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecrets503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. Debug ID +func (m *V1beta1SecretsItemSecrets503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. Error code +func (m *V1beta1SecretsItemSecrets503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. HTTP status code +func (m *V1beta1SecretsItemSecrets503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. Error message +func (m *V1beta1SecretsItemSecrets503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SecretsItemSecrets503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response.go new file mode 100644 index 0000000..ef60ea0 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response.go @@ -0,0 +1,617 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsGetResponse secret Resource Definition +type V1beta1SecretsItemSecretsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Count of associated assignment resources + assignmentsCount *int32 + // Resource classifier definition + classifier V1beta1SecretsItemSecretsGetResponse_classifierable + // Timestamp of the resource creation + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Identifier of the customer owning the resource + customerId *string + // Resource domain definition + domain V1beta1SecretsItemSecretsGetResponse_domainable + // Update generation number + generation *int32 + // Groups associated with the resource + groups []V1beta1SecretsItemSecretsGetResponse_groupsable + // Identifier of the resource + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Consumer-defined label of the resource + label *string + // Name of the resource + name *string + // Secret properties conformant policy + policy *string + // Reference of the prototype resource + prototype V1beta1SecretsItemSecretsGetResponse_prototypeable + // URI of the resource + resourceUri *string + // Name of the service originating the resource + service *string + // Status of the resource + status *string + // Timestamp of the last status update + statusUpdatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Resource subclassifier definition + subclassifier V1beta1SecretsItemSecretsGetResponse_subclassifierable + // Type of the resource + typeEscaped *string + // Timestamp of the last resource update + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1SecretsItemSecretsGetResponse instantiates a new V1beta1SecretsItemSecretsGetResponse and sets the default values. +func NewV1beta1SecretsItemSecretsGetResponse()(*V1beta1SecretsItemSecretsGetResponse) { + m := &V1beta1SecretsItemSecretsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAssignmentsCount gets the assignmentsCount property value. Count of associated assignment resources +// returns a *int32 when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetAssignmentsCount()(*int32) { + return m.assignmentsCount +} +// GetClassifier gets the classifier property value. Resource classifier definition +// returns a V1beta1SecretsItemSecretsGetResponse_classifierable when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetClassifier()(V1beta1SecretsItemSecretsGetResponse_classifierable) { + return m.classifier +} +// GetCreatedAt gets the createdAt property value. Timestamp of the resource creation +// returns a *Time when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. Identifier of the customer owning the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDomain gets the domain property value. Resource domain definition +// returns a V1beta1SecretsItemSecretsGetResponse_domainable when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetDomain()(V1beta1SecretsItemSecretsGetResponse_domainable) { + return m.domain +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["assignmentsCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetAssignmentsCount(val) + } + return nil + } + res["classifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsGetResponse_classifierFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetClassifier(val.(V1beta1SecretsItemSecretsGetResponse_classifierable)) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["domain"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsGetResponse_domainFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetDomain(val.(V1beta1SecretsItemSecretsGetResponse_domainable)) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SecretsItemSecretsGetResponse_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SecretsItemSecretsGetResponse_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SecretsItemSecretsGetResponse_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["label"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLabel(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["policy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPolicy(val) + } + return nil + } + res["prototype"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsGetResponse_prototypeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPrototype(val.(V1beta1SecretsItemSecretsGetResponse_prototypeable)) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["service"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetService(val) + } + return nil + } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStatus(val) + } + return nil + } + res["statusUpdatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStatusUpdatedAt(val) + } + return nil + } + res["subclassifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsGetResponse_subclassifierFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSubclassifier(val.(V1beta1SecretsItemSecretsGetResponse_subclassifierable)) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. Update generation number +// returns a *int32 when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetGeneration()(*int32) { + return m.generation +} +// GetGroups gets the groups property value. Groups associated with the resource +// returns a []V1beta1SecretsItemSecretsGetResponse_groupsable when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetGroups()([]V1beta1SecretsItemSecretsGetResponse_groupsable) { + return m.groups +} +// GetId gets the id property value. Identifier of the resource +// returns a *UUID when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetLabel gets the label property value. Consumer-defined label of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetLabel()(*string) { + return m.label +} +// GetName gets the name property value. Name of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetName()(*string) { + return m.name +} +// GetPolicy gets the policy property value. Secret properties conformant policy +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetPolicy()(*string) { + return m.policy +} +// GetPrototype gets the prototype property value. Reference of the prototype resource +// returns a V1beta1SecretsItemSecretsGetResponse_prototypeable when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetPrototype()(V1beta1SecretsItemSecretsGetResponse_prototypeable) { + return m.prototype +} +// GetResourceUri gets the resourceUri property value. URI of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetService gets the service property value. Name of the service originating the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetService()(*string) { + return m.service +} +// GetStatus gets the status property value. Status of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetStatus()(*string) { + return m.status +} +// GetStatusUpdatedAt gets the statusUpdatedAt property value. Timestamp of the last status update +// returns a *Time when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetStatusUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.statusUpdatedAt +} +// GetSubclassifier gets the subclassifier property value. Resource subclassifier definition +// returns a V1beta1SecretsItemSecretsGetResponse_subclassifierable when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetSubclassifier()(V1beta1SecretsItemSecretsGetResponse_subclassifierable) { + return m.subclassifier +} +// GetTypeEscaped gets the type property value. Type of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. Timestamp of the last resource update +// returns a *Time when successful +func (m *V1beta1SecretsItemSecretsGetResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("assignmentsCount", m.GetAssignmentsCount()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("classifier", m.GetClassifier()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("customerId", m.GetCustomerId()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("domain", m.GetDomain()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("generation", m.GetGeneration()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("label", m.GetLabel()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("policy", m.GetPolicy()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("prototype", m.GetPrototype()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("service", m.GetService()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("status", m.GetStatus()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("statusUpdatedAt", m.GetStatusUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("subclassifier", m.GetSubclassifier()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAssignmentsCount sets the assignmentsCount property value. Count of associated assignment resources +func (m *V1beta1SecretsItemSecretsGetResponse) SetAssignmentsCount(value *int32)() { + m.assignmentsCount = value +} +// SetClassifier sets the classifier property value. Resource classifier definition +func (m *V1beta1SecretsItemSecretsGetResponse) SetClassifier(value V1beta1SecretsItemSecretsGetResponse_classifierable)() { + m.classifier = value +} +// SetCreatedAt sets the createdAt property value. Timestamp of the resource creation +func (m *V1beta1SecretsItemSecretsGetResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. Identifier of the customer owning the resource +func (m *V1beta1SecretsItemSecretsGetResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDomain sets the domain property value. Resource domain definition +func (m *V1beta1SecretsItemSecretsGetResponse) SetDomain(value V1beta1SecretsItemSecretsGetResponse_domainable)() { + m.domain = value +} +// SetGeneration sets the generation property value. Update generation number +func (m *V1beta1SecretsItemSecretsGetResponse) SetGeneration(value *int32)() { + m.generation = value +} +// SetGroups sets the groups property value. Groups associated with the resource +func (m *V1beta1SecretsItemSecretsGetResponse) SetGroups(value []V1beta1SecretsItemSecretsGetResponse_groupsable)() { + m.groups = value +} +// SetId sets the id property value. Identifier of the resource +func (m *V1beta1SecretsItemSecretsGetResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetLabel sets the label property value. Consumer-defined label of the resource +func (m *V1beta1SecretsItemSecretsGetResponse) SetLabel(value *string)() { + m.label = value +} +// SetName sets the name property value. Name of the resource +func (m *V1beta1SecretsItemSecretsGetResponse) SetName(value *string)() { + m.name = value +} +// SetPolicy sets the policy property value. Secret properties conformant policy +func (m *V1beta1SecretsItemSecretsGetResponse) SetPolicy(value *string)() { + m.policy = value +} +// SetPrototype sets the prototype property value. Reference of the prototype resource +func (m *V1beta1SecretsItemSecretsGetResponse) SetPrototype(value V1beta1SecretsItemSecretsGetResponse_prototypeable)() { + m.prototype = value +} +// SetResourceUri sets the resourceUri property value. URI of the resource +func (m *V1beta1SecretsItemSecretsGetResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetService sets the service property value. Name of the service originating the resource +func (m *V1beta1SecretsItemSecretsGetResponse) SetService(value *string)() { + m.service = value +} +// SetStatus sets the status property value. Status of the resource +func (m *V1beta1SecretsItemSecretsGetResponse) SetStatus(value *string)() { + m.status = value +} +// SetStatusUpdatedAt sets the statusUpdatedAt property value. Timestamp of the last status update +func (m *V1beta1SecretsItemSecretsGetResponse) SetStatusUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.statusUpdatedAt = value +} +// SetSubclassifier sets the subclassifier property value. Resource subclassifier definition +func (m *V1beta1SecretsItemSecretsGetResponse) SetSubclassifier(value V1beta1SecretsItemSecretsGetResponse_subclassifierable)() { + m.subclassifier = value +} +// SetTypeEscaped sets the type property value. Type of the resource +func (m *V1beta1SecretsItemSecretsGetResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. Timestamp of the last resource update +func (m *V1beta1SecretsItemSecretsGetResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1SecretsItemSecretsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAssignmentsCount()(*int32) + GetClassifier()(V1beta1SecretsItemSecretsGetResponse_classifierable) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDomain()(V1beta1SecretsItemSecretsGetResponse_domainable) + GetGeneration()(*int32) + GetGroups()([]V1beta1SecretsItemSecretsGetResponse_groupsable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLabel()(*string) + GetName()(*string) + GetPolicy()(*string) + GetPrototype()(V1beta1SecretsItemSecretsGetResponse_prototypeable) + GetResourceUri()(*string) + GetService()(*string) + GetStatus()(*string) + GetStatusUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetSubclassifier()(V1beta1SecretsItemSecretsGetResponse_subclassifierable) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetAssignmentsCount(value *int32)() + SetClassifier(value V1beta1SecretsItemSecretsGetResponse_classifierable)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDomain(value V1beta1SecretsItemSecretsGetResponse_domainable)() + SetGeneration(value *int32)() + SetGroups(value []V1beta1SecretsItemSecretsGetResponse_groupsable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLabel(value *string)() + SetName(value *string)() + SetPolicy(value *string)() + SetPrototype(value V1beta1SecretsItemSecretsGetResponse_prototypeable)() + SetResourceUri(value *string)() + SetService(value *string)() + SetStatus(value *string)() + SetStatusUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetSubclassifier(value V1beta1SecretsItemSecretsGetResponse_subclassifierable)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_classifier.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_classifier.go new file mode 100644 index 0000000..eca1aa5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_classifier.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsGetResponse_classifier resource Classifier Definition (e.g. SECRET) +type V1beta1SecretsItemSecretsGetResponse_classifier struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the resource classifier + name *string +} +// NewV1beta1SecretsItemSecretsGetResponse_classifier instantiates a new V1beta1SecretsItemSecretsGetResponse_classifier and sets the default values. +func NewV1beta1SecretsItemSecretsGetResponse_classifier()(*V1beta1SecretsItemSecretsGetResponse_classifier) { + m := &V1beta1SecretsItemSecretsGetResponse_classifier{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsGetResponse_classifierFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsGetResponse_classifierFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsGetResponse_classifier(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsGetResponse_classifier) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsGetResponse_classifier) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource classifier +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse_classifier) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsGetResponse_classifier) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsGetResponse_classifier) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. Name of the resource classifier +func (m *V1beta1SecretsItemSecretsGetResponse_classifier) SetName(value *string)() { + m.name = value +} +type V1beta1SecretsItemSecretsGetResponse_classifierable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_domain.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_domain.go new file mode 100644 index 0000000..299628d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_domain.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsGetResponse_domain resource Domain Entity Definition (e.g. CONFIGURATION) +type V1beta1SecretsItemSecretsGetResponse_domain struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the resource domain + name *string + // Resource domain properties + properties V1beta1SecretsItemSecretsGetResponse_domain_propertiesable +} +// NewV1beta1SecretsItemSecretsGetResponse_domain instantiates a new V1beta1SecretsItemSecretsGetResponse_domain and sets the default values. +func NewV1beta1SecretsItemSecretsGetResponse_domain()(*V1beta1SecretsItemSecretsGetResponse_domain) { + m := &V1beta1SecretsItemSecretsGetResponse_domain{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsGetResponse_domainFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsGetResponse_domainFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsGetResponse_domain(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsGetResponse_domain) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsGetResponse_domain) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["properties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsGetResponse_domain_propertiesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetProperties(val.(V1beta1SecretsItemSecretsGetResponse_domain_propertiesable)) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource domain +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse_domain) GetName()(*string) { + return m.name +} +// GetProperties gets the properties property value. Resource domain properties +// returns a V1beta1SecretsItemSecretsGetResponse_domain_propertiesable when successful +func (m *V1beta1SecretsItemSecretsGetResponse_domain) GetProperties()(V1beta1SecretsItemSecretsGetResponse_domain_propertiesable) { + return m.properties +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsGetResponse_domain) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("properties", m.GetProperties()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsGetResponse_domain) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. Name of the resource domain +func (m *V1beta1SecretsItemSecretsGetResponse_domain) SetName(value *string)() { + m.name = value +} +// SetProperties sets the properties property value. Resource domain properties +func (m *V1beta1SecretsItemSecretsGetResponse_domain) SetProperties(value V1beta1SecretsItemSecretsGetResponse_domain_propertiesable)() { + m.properties = value +} +type V1beta1SecretsItemSecretsGetResponse_domainable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetProperties()(V1beta1SecretsItemSecretsGetResponse_domain_propertiesable) + SetName(value *string)() + SetProperties(value V1beta1SecretsItemSecretsGetResponse_domain_propertiesable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_domain_escaped_properties.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_domain_escaped_properties.go new file mode 100644 index 0000000..068b832 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_domain_escaped_properties.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsGetResponse_domain_properties resource domain properties +type V1beta1SecretsItemSecretsGetResponse_domain_properties struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1SecretsItemSecretsGetResponse_domain_properties instantiates a new V1beta1SecretsItemSecretsGetResponse_domain_properties and sets the default values. +func NewV1beta1SecretsItemSecretsGetResponse_domain_properties()(*V1beta1SecretsItemSecretsGetResponse_domain_properties) { + m := &V1beta1SecretsItemSecretsGetResponse_domain_properties{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsGetResponse_domain_propertiesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsGetResponse_domain_propertiesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsGetResponse_domain_properties(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsGetResponse_domain_properties) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsGetResponse_domain_properties) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsGetResponse_domain_properties) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsGetResponse_domain_properties) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1SecretsItemSecretsGetResponse_domain_propertiesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_groups.go new file mode 100644 index 0000000..5c85441 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_groups.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsGetResponse_groups storage Cloud Group Identity +type V1beta1SecretsItemSecretsGetResponse_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifier of the associated group + id *string + // Name of the associated group + name *string + // URI of the associated group + resourceUri *string +} +// NewV1beta1SecretsItemSecretsGetResponse_groups instantiates a new V1beta1SecretsItemSecretsGetResponse_groups and sets the default values. +func NewV1beta1SecretsItemSecretsGetResponse_groups()(*V1beta1SecretsItemSecretsGetResponse_groups) { + m := &V1beta1SecretsItemSecretsGetResponse_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsGetResponse_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsGetResponse_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsGetResponse_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsGetResponse_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsGetResponse_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + return res +} +// GetId gets the id property value. Identifier of the associated group +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse_groups) GetId()(*string) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse_groups) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. URI of the associated group +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse_groups) GetResourceUri()(*string) { + return m.resourceUri +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsGetResponse_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsGetResponse_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Identifier of the associated group +func (m *V1beta1SecretsItemSecretsGetResponse_groups) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1SecretsItemSecretsGetResponse_groups) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. URI of the associated group +func (m *V1beta1SecretsItemSecretsGetResponse_groups) SetResourceUri(value *string)() { + m.resourceUri = value +} +type V1beta1SecretsItemSecretsGetResponse_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_prototype.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_prototype.go new file mode 100644 index 0000000..932effd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_prototype.go @@ -0,0 +1,169 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsGetResponse_prototype storage Cloud Partial Resource Reference +type V1beta1SecretsItemSecretsGetResponse_prototype struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifier of the resource + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the resource + name *string + // URI of the resource + resourceUri *string + // Type of the resource + typeEscaped *string +} +// NewV1beta1SecretsItemSecretsGetResponse_prototype instantiates a new V1beta1SecretsItemSecretsGetResponse_prototype and sets the default values. +func NewV1beta1SecretsItemSecretsGetResponse_prototype()(*V1beta1SecretsItemSecretsGetResponse_prototype) { + m := &V1beta1SecretsItemSecretsGetResponse_prototype{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsGetResponse_prototypeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsGetResponse_prototypeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsGetResponse_prototype(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsGetResponse_prototype) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsGetResponse_prototype) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. Identifier of the resource +// returns a *UUID when successful +func (m *V1beta1SecretsItemSecretsGetResponse_prototype) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse_prototype) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. URI of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse_prototype) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. Type of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse_prototype) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsGetResponse_prototype) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsGetResponse_prototype) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Identifier of the resource +func (m *V1beta1SecretsItemSecretsGetResponse_prototype) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the resource +func (m *V1beta1SecretsItemSecretsGetResponse_prototype) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. URI of the resource +func (m *V1beta1SecretsItemSecretsGetResponse_prototype) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. Type of the resource +func (m *V1beta1SecretsItemSecretsGetResponse_prototype) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1SecretsItemSecretsGetResponse_prototypeable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_subclassifier.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_subclassifier.go new file mode 100644 index 0000000..3a2659b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_subclassifier.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsGetResponse_subclassifier resource Subclassifier Definition (e.g. BASIC_AUTH) +type V1beta1SecretsItemSecretsGetResponse_subclassifier struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the resource subclassifier + name *string + // Resource subclassifier properties + properties V1beta1SecretsItemSecretsGetResponse_subclassifier_propertiesable +} +// NewV1beta1SecretsItemSecretsGetResponse_subclassifier instantiates a new V1beta1SecretsItemSecretsGetResponse_subclassifier and sets the default values. +func NewV1beta1SecretsItemSecretsGetResponse_subclassifier()(*V1beta1SecretsItemSecretsGetResponse_subclassifier) { + m := &V1beta1SecretsItemSecretsGetResponse_subclassifier{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsGetResponse_subclassifierFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsGetResponse_subclassifierFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsGetResponse_subclassifier(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsGetResponse_subclassifier) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsGetResponse_subclassifier) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["properties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsGetResponse_subclassifier_propertiesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetProperties(val.(V1beta1SecretsItemSecretsGetResponse_subclassifier_propertiesable)) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource subclassifier +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsGetResponse_subclassifier) GetName()(*string) { + return m.name +} +// GetProperties gets the properties property value. Resource subclassifier properties +// returns a V1beta1SecretsItemSecretsGetResponse_subclassifier_propertiesable when successful +func (m *V1beta1SecretsItemSecretsGetResponse_subclassifier) GetProperties()(V1beta1SecretsItemSecretsGetResponse_subclassifier_propertiesable) { + return m.properties +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsGetResponse_subclassifier) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("properties", m.GetProperties()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsGetResponse_subclassifier) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. Name of the resource subclassifier +func (m *V1beta1SecretsItemSecretsGetResponse_subclassifier) SetName(value *string)() { + m.name = value +} +// SetProperties sets the properties property value. Resource subclassifier properties +func (m *V1beta1SecretsItemSecretsGetResponse_subclassifier) SetProperties(value V1beta1SecretsItemSecretsGetResponse_subclassifier_propertiesable)() { + m.properties = value +} +type V1beta1SecretsItemSecretsGetResponse_subclassifierable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetProperties()(V1beta1SecretsItemSecretsGetResponse_subclassifier_propertiesable) + SetName(value *string)() + SetProperties(value V1beta1SecretsItemSecretsGetResponse_subclassifier_propertiesable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_subclassifier_escaped_properties.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_subclassifier_escaped_properties.go new file mode 100644 index 0000000..b0a613a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_get_response_escaped_subclassifier_escaped_properties.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsGetResponse_subclassifier_properties resource subclassifier properties +type V1beta1SecretsItemSecretsGetResponse_subclassifier_properties struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1SecretsItemSecretsGetResponse_subclassifier_properties instantiates a new V1beta1SecretsItemSecretsGetResponse_subclassifier_properties and sets the default values. +func NewV1beta1SecretsItemSecretsGetResponse_subclassifier_properties()(*V1beta1SecretsItemSecretsGetResponse_subclassifier_properties) { + m := &V1beta1SecretsItemSecretsGetResponse_subclassifier_properties{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsGetResponse_subclassifier_propertiesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsGetResponse_subclassifier_propertiesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsGetResponse_subclassifier_properties(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsGetResponse_subclassifier_properties) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsGetResponse_subclassifier_properties) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsGetResponse_subclassifier_properties) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsGetResponse_subclassifier_properties) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1SecretsItemSecretsGetResponse_subclassifier_propertiesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1.go new file mode 100644 index 0000000..c01c66e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1.go @@ -0,0 +1,460 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1 secret Redefinition +type V1beta1SecretsItemSecretsPatchRequestBodyMember1 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Description for the resource + description *string + // Groups to be associated with the resource + groups []string + // Secret policy identifier + policy *string + // Secret redefinition + secret V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secretable +} +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret composed type wrapper for classes V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10able, V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1able, V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2able, V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3able, V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4able, V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5able, V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6able, V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7able, V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8able, V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9able +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret struct { + // Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1able + v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1 V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1able + // Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10able + v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10 V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10able + // Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2able + v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2 V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2able + // Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3able + v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3 V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3able + // Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4able + v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4 V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4able + // Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5able + v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5 V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5able + // Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6able + v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6 V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6able + // Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7able + v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7 V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7able + // Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8able + v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8 V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8able + // Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9able + v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9 V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9able +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret{ + } + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secretFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secretFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + result := NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret() + if parseNode != nil { + if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1able); ok { + result.SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember1(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10able); ok { + result.SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember10(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2able); ok { + result.SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember2(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3able); ok { + result.SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember3(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4able); ok { + result.SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember4(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5able); ok { + result.SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember5(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6able); ok { + result.SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember6(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7able); ok { + result.SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember7(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8able); ok { + result.SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember8(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9able); ok { + result.SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember9(cast) + } + } + } + return result, nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) +} +// GetIsComposedType determines if the current object is a wrapper around a composed type +// returns a bool when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) GetIsComposedType()(bool) { + return true +} +// GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember1 gets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1able +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1able when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember1()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1able) { + return m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1 +} +// GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember10 gets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10able +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10able when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember10()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10able) { + return m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10 +} +// GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember2 gets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2able +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2able when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember2()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2able) { + return m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2 +} +// GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember3 gets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3able +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3able when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember3()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3able) { + return m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3 +} +// GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember4 gets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4able +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4able when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember4()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4able) { + return m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4 +} +// GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember5 gets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5able +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5able when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember5()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5able) { + return m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5 +} +// GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember6 gets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6able +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6able when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember6()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6able) { + return m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6 +} +// GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember7 gets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7able +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7able when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember7()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7able) { + return m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7 +} +// GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember8 gets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8able +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8able when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember8()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8able) { + return m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8 +} +// GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember9 gets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9able +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9able when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember9()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9able) { + return m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9 +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember1() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember1()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember10() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember10()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember2() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember2()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember3() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember3()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember4() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember4()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember5() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember5()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember6() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember6()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember7() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember7()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember8() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember8()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember9() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember9()) + if err != nil { + return err + } + } + return nil +} +// SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember1 sets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1able +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember1(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1able)() { + m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1 = value +} +// SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember10 sets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10able +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember10(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10able)() { + m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10 = value +} +// SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember2 sets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2able +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember2(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2able)() { + m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2 = value +} +// SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember3 sets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3able +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember3(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3able)() { + m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3 = value +} +// SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember4 sets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4able +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember4(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4able)() { + m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4 = value +} +// SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember5 sets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5able +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember5(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5able)() { + m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5 = value +} +// SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember6 sets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6able +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember6(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6able)() { + m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6 = value +} +// SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember7 sets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7able +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember7(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7able)() { + m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7 = value +} +// SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember8 sets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8able +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember8(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8able)() { + m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8 = value +} +// SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember9 sets the V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9able +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secret) SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember9(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9able)() { + m.v1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9 = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secretable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember1()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1able) + GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember10()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10able) + GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember2()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2able) + GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember3()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3able) + GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember4()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4able) + GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember5()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5able) + GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember6()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6able) + GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember7()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7able) + GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember8()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8able) + GetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember9()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9able) + SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember1(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1able)() + SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember10(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10able)() + SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember2(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2able)() + SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember3(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3able)() + SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember4(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4able)() + SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember5(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5able)() + SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember6(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6able)() + SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember7(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7able)() + SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember8(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8able)() + SetV1beta1SecretsItemSecretsPatchRequestBodyMember1SecretMember9(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9able)() +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1 instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1 and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDescription gets the description property value. Description for the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetGroups(res) + } + return nil + } + res["policy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPolicy(val) + } + return nil + } + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secretFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecret(val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secretable)) + } + return nil + } + return res +} +// GetGroups gets the groups property value. Groups to be associated with the resource +// returns a []string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1) GetGroups()([]string) { + return m.groups +} +// GetPolicy gets the policy property value. Secret policy identifier +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1) GetPolicy()(*string) { + return m.policy +} +// GetSecret gets the secret property value. Secret redefinition +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secretable when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1) GetSecret()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secretable) { + return m.secret +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + err := writer.WriteCollectionOfStringValues("groups", m.GetGroups()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("policy", m.GetPolicy()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDescription sets the description property value. Description for the resource +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1) SetDescription(value *string)() { + m.description = value +} +// SetGroups sets the groups property value. Groups to be associated with the resource +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1) SetGroups(value []string)() { + m.groups = value +} +// SetPolicy sets the policy property value. Secret policy identifier +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1) SetPolicy(value *string)() { + m.policy = value +} +// SetSecret sets the secret property value. Secret redefinition +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1) SetSecret(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secretable)() { + m.secret = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDescription()(*string) + GetGroups()([]string) + GetPolicy()(*string) + GetSecret()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secretable) + SetDescription(value *string)() + SetGroups(value []string)() + SetPolicy(value *string)() + SetSecret(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_SecretsPatchRequestBodyMember1_secretable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member1.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member1.go new file mode 100644 index 0000000..bda9d11 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member1.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1 azure Service Principal client secret redefinition +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Azure Service Principal client secret properties + azureSPClient V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClientable +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1 instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1 and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAzureSPClient gets the azureSPClient property value. Azure Service Principal client secret properties +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClientable when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1) GetAzureSPClient()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClientable) { + return m.azureSPClient +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["azureSPClient"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClientFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAzureSPClient(val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClientable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("azureSPClient", m.GetAzureSPClient()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAzureSPClient sets the azureSPClient property value. Azure Service Principal client secret properties +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1) SetAzureSPClient(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClientable)() { + m.azureSPClient = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAzureSPClient()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClientable) + SetAzureSPClient(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember1_azureSPClientable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member10.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member10.go new file mode 100644 index 0000000..6ca0623 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member10.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10 sSH Key Pair secret redefinition +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // SSH Key Pair secret properties + sshKeypair V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypairable +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10 instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10 and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["sshKeypair"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypairFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSshKeypair(val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypairable)) + } + return nil + } + return res +} +// GetSshKeypair gets the sshKeypair property value. SSH Key Pair secret properties +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypairable when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10) GetSshKeypair()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypairable) { + return m.sshKeypair +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("sshKeypair", m.GetSshKeypair()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetSshKeypair sets the sshKeypair property value. SSH Key Pair secret properties +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10) SetSshKeypair(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypairable)() { + m.sshKeypair = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSshKeypair()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypairable) + SetSshKeypair(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypairable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member10_escaped_ssh_keypair.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member10_escaped_ssh_keypair.go new file mode 100644 index 0000000..be6ae12 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member10_escaped_ssh_keypair.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair sSH Key Pair secret properties +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Private Key (BASE64-encoded) + privateKey *string + // Public Key (BASE64-encoded) + publicKey *string +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypairFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypairFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["privateKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPrivateKey(val) + } + return nil + } + res["publicKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPublicKey(val) + } + return nil + } + return res +} +// GetPrivateKey gets the privateKey property value. Private Key (BASE64-encoded) +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair) GetPrivateKey()(*string) { + return m.privateKey +} +// GetPublicKey gets the publicKey property value. Public Key (BASE64-encoded) +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair) GetPublicKey()(*string) { + return m.publicKey +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("privateKey", m.GetPrivateKey()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("publicKey", m.GetPublicKey()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPrivateKey sets the privateKey property value. Private Key (BASE64-encoded) +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair) SetPrivateKey(value *string)() { + m.privateKey = value +} +// SetPublicKey sets the publicKey property value. Public Key (BASE64-encoded) +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypair) SetPublicKey(value *string)() { + m.publicKey = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember10_sshKeypairable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPrivateKey()(*string) + GetPublicKey()(*string) + SetPrivateKey(value *string)() + SetPublicKey(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member2.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member2.go new file mode 100644 index 0000000..411c9a4 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member2.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2 basic Access Authentication secret redefinition +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Basic Access Authentication secret properties + basicAuth V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuthable +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2 instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2 and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetBasicAuth gets the basicAuth property value. Basic Access Authentication secret properties +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuthable when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2) GetBasicAuth()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuthable) { + return m.basicAuth +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["basicAuth"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuthFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBasicAuth(val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuthable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("basicAuth", m.GetBasicAuth()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetBasicAuth sets the basicAuth property value. Basic Access Authentication secret properties +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2) SetBasicAuth(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuthable)() { + m.basicAuth = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBasicAuth()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuthable) + SetBasicAuth(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuthable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member2_escaped_basic_auth.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member2_escaped_basic_auth.go new file mode 100644 index 0000000..3e1273e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member2_escaped_basic_auth.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth basic Access Authentication secret properties +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Password or passphrase + password *string + // Username or user ID + username *string +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuthFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuthFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPassword(val) + } + return nil + } + res["username"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUsername(val) + } + return nil + } + return res +} +// GetPassword gets the password property value. Password or passphrase +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth) GetPassword()(*string) { + return m.password +} +// GetUsername gets the username property value. Username or user ID +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth) GetUsername()(*string) { + return m.username +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("password", m.GetPassword()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("username", m.GetUsername()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPassword sets the password property value. Password or passphrase +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth) SetPassword(value *string)() { + m.password = value +} +// SetUsername sets the username property value. Username or user ID +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuth) SetUsername(value *string)() { + m.username = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember2_basicAuthable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPassword()(*string) + GetUsername()(*string) + SetPassword(value *string)() + SetUsername(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member3.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member3.go new file mode 100644 index 0000000..e4f0779 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member3.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3 bearer Token Authentication secret redefinition +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Bearer Token Authentication secret properties + bearerAuth V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuthable +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3 instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3 and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetBearerAuth gets the bearerAuth property value. Bearer Token Authentication secret properties +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuthable when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3) GetBearerAuth()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuthable) { + return m.bearerAuth +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["bearerAuth"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuthFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBearerAuth(val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuthable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("bearerAuth", m.GetBearerAuth()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetBearerAuth sets the bearerAuth property value. Bearer Token Authentication secret properties +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3) SetBearerAuth(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuthable)() { + m.bearerAuth = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBearerAuth()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuthable) + SetBearerAuth(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuthable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member3_escaped_bearer_auth.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member3_escaped_bearer_auth.go new file mode 100644 index 0000000..b502a4c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member3_escaped_bearer_auth.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuth bearer Token Authentication secret properties +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuth struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Token (e.g. JWT) + token *string +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuth instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuth and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuth()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuth) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuth{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuthFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuthFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuth(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuth) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuth) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["token"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetToken(val) + } + return nil + } + return res +} +// GetToken gets the token property value. Token (e.g. JWT) +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuth) GetToken()(*string) { + return m.token +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuth) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("token", m.GetToken()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuth) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetToken sets the token property value. Token (e.g. JWT) +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuth) SetToken(value *string)() { + m.token = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember3_bearerAuthable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetToken()(*string) + SetToken(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member4.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member4.go new file mode 100644 index 0000000..f5d26d4 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member4.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4 certificate secret redefinition +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Certificate secret properties + certificate V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificateable +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4 instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4 and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCertificate gets the certificate property value. Certificate secret properties +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificateable when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4) GetCertificate()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificateable) { + return m.certificate +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["certificate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificateFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCertificate(val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificateable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("certificate", m.GetCertificate()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCertificate sets the certificate property value. Certificate secret properties +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4) SetCertificate(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificateable)() { + m.certificate = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCertificate()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificateable) + SetCertificate(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificateable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member4_escaped_certificate.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member4_escaped_certificate.go new file mode 100644 index 0000000..4874fcd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member4_escaped_certificate.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate certificate secret properties +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Distinguished Encoding Rules (DER) (BASE64-encoded) + der *string + // Privacy-Enhanced Mail (PEM) (BASE64-encoded) + pem *string +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificateFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificateFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDer gets the der property value. Distinguished Encoding Rules (DER) (BASE64-encoded) +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate) GetDer()(*string) { + return m.der +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["der"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDer(val) + } + return nil + } + res["pem"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPem(val) + } + return nil + } + return res +} +// GetPem gets the pem property value. Privacy-Enhanced Mail (PEM) (BASE64-encoded) +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate) GetPem()(*string) { + return m.pem +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("der", m.GetDer()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("pem", m.GetPem()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDer sets the der property value. Distinguished Encoding Rules (DER) (BASE64-encoded) +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate) SetDer(value *string)() { + m.der = value +} +// SetPem sets the pem property value. Privacy-Enhanced Mail (PEM) (BASE64-encoded) +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificate) SetPem(value *string)() { + m.pem = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember4_certificateable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDer()(*string) + GetPem()(*string) + SetDer(value *string)() + SetPem(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member5.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member5.go new file mode 100644 index 0000000..2a7f7e6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member5.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5 generic secret redefinition +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Generic secret properties + generic V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_genericable +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5 instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5 and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["generic"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_genericFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetGeneric(val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_genericable)) + } + return nil + } + return res +} +// GetGeneric gets the generic property value. Generic secret properties +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_genericable when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5) GetGeneric()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_genericable) { + return m.generic +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("generic", m.GetGeneric()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetGeneric sets the generic property value. Generic secret properties +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5) SetGeneric(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_genericable)() { + m.generic = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetGeneric()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_genericable) + SetGeneric(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_genericable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member5_escaped_generic.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member5_escaped_generic.go new file mode 100644 index 0000000..b505052 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member5_escaped_generic.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_generic generic secret properties +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_generic struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Generic secret value + secret *string +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_generic instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_generic and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_generic()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_generic) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_generic{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_genericFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_genericFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_generic(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_generic) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_generic) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSecret(val) + } + return nil + } + return res +} +// GetSecret gets the secret property value. Generic secret value +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_generic) GetSecret()(*string) { + return m.secret +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_generic) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_generic) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetSecret sets the secret property value. Generic secret value +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_generic) SetSecret(value *string)() { + m.secret = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember5_genericable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSecret()(*string) + SetSecret(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member6.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member6.go new file mode 100644 index 0000000..eb3f53a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member6.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6 jSON Web Token secret redefinition +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // JSON Web Token secret properties + jsonWebToken V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebTokenable +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6 instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6 and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["jsonWebToken"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebTokenFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetJsonWebToken(val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebTokenable)) + } + return nil + } + return res +} +// GetJsonWebToken gets the jsonWebToken property value. JSON Web Token secret properties +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebTokenable when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6) GetJsonWebToken()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebTokenable) { + return m.jsonWebToken +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("jsonWebToken", m.GetJsonWebToken()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetJsonWebToken sets the jsonWebToken property value. JSON Web Token secret properties +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6) SetJsonWebToken(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebTokenable)() { + m.jsonWebToken = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetJsonWebToken()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebTokenable) + SetJsonWebToken(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember6_jsonWebTokenable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member7.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member7.go new file mode 100644 index 0000000..c125325 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member7.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7 oAuth Client secret redefinition +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // OAuth Client secret properties + oauthClient V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClientable +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7 instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7 and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["oauthClient"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClientFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOauthClient(val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClientable)) + } + return nil + } + return res +} +// GetOauthClient gets the oauthClient property value. OAuth Client secret properties +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClientable when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7) GetOauthClient()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClientable) { + return m.oauthClient +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("oauthClient", m.GetOauthClient()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetOauthClient sets the oauthClient property value. OAuth Client secret properties +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7) SetOauthClient(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClientable)() { + m.oauthClient = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOauthClient()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClientable) + SetOauthClient(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClientable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member7_escaped_oauth_client.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member7_escaped_oauth_client.go new file mode 100644 index 0000000..abd4193 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member7_escaped_oauth_client.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient oAuth Client secret properties +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // OAuth Client ID + clientId *string + // OAuth Client secret + clientSecret *string +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClientFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClientFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetClientId gets the clientId property value. OAuth Client ID +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient) GetClientId()(*string) { + return m.clientId +} +// GetClientSecret gets the clientSecret property value. OAuth Client secret +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient) GetClientSecret()(*string) { + return m.clientSecret +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientId(val) + } + return nil + } + res["clientSecret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientSecret(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("clientId", m.GetClientId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("clientSecret", m.GetClientSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetClientId sets the clientId property value. OAuth Client ID +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient) SetClientId(value *string)() { + m.clientId = value +} +// SetClientSecret sets the clientSecret property value. OAuth Client secret +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClient) SetClientSecret(value *string)() { + m.clientSecret = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember7_oauthClientable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetClientId()(*string) + GetClientSecret()(*string) + SetClientId(value *string)() + SetClientSecret(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member8.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member8.go new file mode 100644 index 0000000..a4714ed --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member8.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8 password secret redefinition +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Password secret properties + password V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_passwordable +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8 instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8 and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_passwordFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPassword(val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_passwordable)) + } + return nil + } + return res +} +// GetPassword gets the password property value. Password secret properties +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_passwordable when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8) GetPassword()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_passwordable) { + return m.password +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("password", m.GetPassword()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPassword sets the password property value. Password secret properties +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8) SetPassword(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_passwordable)() { + m.password = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPassword()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_passwordable) + SetPassword(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_passwordable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member8_escaped_password.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member8_escaped_password.go new file mode 100644 index 0000000..a298899 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member8_escaped_password.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_password password secret properties +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_password struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Password value + password *string +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_password instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_password and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_password()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_password) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_password{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_passwordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_passwordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_password(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_password) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_password) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPassword(val) + } + return nil + } + return res +} +// GetPassword gets the password property value. Password value +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_password) GetPassword()(*string) { + return m.password +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_password) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("password", m.GetPassword()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_password) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPassword sets the password property value. Password value +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_password) SetPassword(value *string)() { + m.password = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember8_passwordable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPassword()(*string) + SetPassword(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member9.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member9.go new file mode 100644 index 0000000..962573b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member9.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9 private Key secret redefinition +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Private Key secret properties + privateKey V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKeyable +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9 instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9 and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["privateKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKeyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPrivateKey(val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKeyable)) + } + return nil + } + return res +} +// GetPrivateKey gets the privateKey property value. Private Key secret properties +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKeyable when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9) GetPrivateKey()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKeyable) { + return m.privateKey +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("privateKey", m.GetPrivateKey()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPrivateKey sets the privateKey property value. Private Key secret properties +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9) SetPrivateKey(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKeyable)() { + m.privateKey = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPrivateKey()(V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKeyable) + SetPrivateKey(value V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKeyable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member9_escaped_private_key.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member9_escaped_private_key.go new file mode 100644 index 0000000..cf8771b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member1_escaped_secret_member9_escaped_private_key.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKey private Key secret properties +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKey struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Private Key (BASE64-encoded) + privateKey *string +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKey instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKey and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKey()(*V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKey) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKey{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKeyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKeyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKey(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKey) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKey) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["privateKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPrivateKey(val) + } + return nil + } + return res +} +// GetPrivateKey gets the privateKey property value. Private Key (BASE64-encoded) +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKey) GetPrivateKey()(*string) { + return m.privateKey +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKey) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("privateKey", m.GetPrivateKey()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKey) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPrivateKey sets the privateKey property value. Private Key (BASE64-encoded) +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKey) SetPrivateKey(value *string)() { + m.privateKey = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember1_secretMember9_privateKeyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPrivateKey()(*string) + SetPrivateKey(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member2.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member2.go new file mode 100644 index 0000000..73f7b2e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_request_body_member2.go @@ -0,0 +1,145 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchRequestBodyMember2 secret Resource Redefinition +type V1beta1SecretsItemSecretsPatchRequestBodyMember2 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Description for the resource + description *string + // Groups to be associated with the resource + groups []string + // Secret policy identifier + policy *string +} +// NewV1beta1SecretsItemSecretsPatchRequestBodyMember2 instantiates a new V1beta1SecretsItemSecretsPatchRequestBodyMember2 and sets the default values. +func NewV1beta1SecretsItemSecretsPatchRequestBodyMember2()(*V1beta1SecretsItemSecretsPatchRequestBodyMember2) { + m := &V1beta1SecretsItemSecretsPatchRequestBodyMember2{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchRequestBodyMember2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchRequestBodyMember2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchRequestBodyMember2(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember2) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDescription gets the description property value. Description for the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember2) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetGroups(res) + } + return nil + } + res["policy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPolicy(val) + } + return nil + } + return res +} +// GetGroups gets the groups property value. Groups to be associated with the resource +// returns a []string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember2) GetGroups()([]string) { + return m.groups +} +// GetPolicy gets the policy property value. Secret policy identifier +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember2) GetPolicy()(*string) { + return m.policy +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + err := writer.WriteCollectionOfStringValues("groups", m.GetGroups()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("policy", m.GetPolicy()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember2) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDescription sets the description property value. Description for the resource +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember2) SetDescription(value *string)() { + m.description = value +} +// SetGroups sets the groups property value. Groups to be associated with the resource +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember2) SetGroups(value []string)() { + m.groups = value +} +// SetPolicy sets the policy property value. Secret policy identifier +func (m *V1beta1SecretsItemSecretsPatchRequestBodyMember2) SetPolicy(value *string)() { + m.policy = value +} +type V1beta1SecretsItemSecretsPatchRequestBodyMember2able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDescription()(*string) + GetGroups()([]string) + GetPolicy()(*string) + SetDescription(value *string)() + SetGroups(value []string)() + SetPolicy(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response.go new file mode 100644 index 0000000..65e054f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response.go @@ -0,0 +1,617 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchResponse secret Resource Definition +type V1beta1SecretsItemSecretsPatchResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Count of associated assignment resources + assignmentsCount *int32 + // Resource classifier definition + classifier V1beta1SecretsItemSecretsPatchResponse_classifierable + // Timestamp of the resource creation + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Identifier of the customer owning the resource + customerId *string + // Resource domain definition + domain V1beta1SecretsItemSecretsPatchResponse_domainable + // Update generation number + generation *int32 + // Groups associated with the resource + groups []V1beta1SecretsItemSecretsPatchResponse_groupsable + // Identifier of the resource + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Consumer-defined label of the resource + label *string + // Name of the resource + name *string + // Secret properties conformant policy + policy *string + // Reference of the prototype resource + prototype V1beta1SecretsItemSecretsPatchResponse_prototypeable + // URI of the resource + resourceUri *string + // Name of the service originating the resource + service *string + // Status of the resource + status *string + // Timestamp of the last status update + statusUpdatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Resource subclassifier definition + subclassifier V1beta1SecretsItemSecretsPatchResponse_subclassifierable + // Type of the resource + typeEscaped *string + // Timestamp of the last resource update + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1SecretsItemSecretsPatchResponse instantiates a new V1beta1SecretsItemSecretsPatchResponse and sets the default values. +func NewV1beta1SecretsItemSecretsPatchResponse()(*V1beta1SecretsItemSecretsPatchResponse) { + m := &V1beta1SecretsItemSecretsPatchResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAssignmentsCount gets the assignmentsCount property value. Count of associated assignment resources +// returns a *int32 when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetAssignmentsCount()(*int32) { + return m.assignmentsCount +} +// GetClassifier gets the classifier property value. Resource classifier definition +// returns a V1beta1SecretsItemSecretsPatchResponse_classifierable when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetClassifier()(V1beta1SecretsItemSecretsPatchResponse_classifierable) { + return m.classifier +} +// GetCreatedAt gets the createdAt property value. Timestamp of the resource creation +// returns a *Time when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. Identifier of the customer owning the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDomain gets the domain property value. Resource domain definition +// returns a V1beta1SecretsItemSecretsPatchResponse_domainable when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetDomain()(V1beta1SecretsItemSecretsPatchResponse_domainable) { + return m.domain +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["assignmentsCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetAssignmentsCount(val) + } + return nil + } + res["classifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchResponse_classifierFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetClassifier(val.(V1beta1SecretsItemSecretsPatchResponse_classifierable)) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["domain"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchResponse_domainFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetDomain(val.(V1beta1SecretsItemSecretsPatchResponse_domainable)) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SecretsItemSecretsPatchResponse_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SecretsItemSecretsPatchResponse_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SecretsItemSecretsPatchResponse_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["label"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLabel(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["policy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPolicy(val) + } + return nil + } + res["prototype"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchResponse_prototypeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPrototype(val.(V1beta1SecretsItemSecretsPatchResponse_prototypeable)) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["service"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetService(val) + } + return nil + } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStatus(val) + } + return nil + } + res["statusUpdatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStatusUpdatedAt(val) + } + return nil + } + res["subclassifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchResponse_subclassifierFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSubclassifier(val.(V1beta1SecretsItemSecretsPatchResponse_subclassifierable)) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. Update generation number +// returns a *int32 when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetGeneration()(*int32) { + return m.generation +} +// GetGroups gets the groups property value. Groups associated with the resource +// returns a []V1beta1SecretsItemSecretsPatchResponse_groupsable when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetGroups()([]V1beta1SecretsItemSecretsPatchResponse_groupsable) { + return m.groups +} +// GetId gets the id property value. Identifier of the resource +// returns a *UUID when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetLabel gets the label property value. Consumer-defined label of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetLabel()(*string) { + return m.label +} +// GetName gets the name property value. Name of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetName()(*string) { + return m.name +} +// GetPolicy gets the policy property value. Secret properties conformant policy +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetPolicy()(*string) { + return m.policy +} +// GetPrototype gets the prototype property value. Reference of the prototype resource +// returns a V1beta1SecretsItemSecretsPatchResponse_prototypeable when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetPrototype()(V1beta1SecretsItemSecretsPatchResponse_prototypeable) { + return m.prototype +} +// GetResourceUri gets the resourceUri property value. URI of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetService gets the service property value. Name of the service originating the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetService()(*string) { + return m.service +} +// GetStatus gets the status property value. Status of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetStatus()(*string) { + return m.status +} +// GetStatusUpdatedAt gets the statusUpdatedAt property value. Timestamp of the last status update +// returns a *Time when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetStatusUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.statusUpdatedAt +} +// GetSubclassifier gets the subclassifier property value. Resource subclassifier definition +// returns a V1beta1SecretsItemSecretsPatchResponse_subclassifierable when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetSubclassifier()(V1beta1SecretsItemSecretsPatchResponse_subclassifierable) { + return m.subclassifier +} +// GetTypeEscaped gets the type property value. Type of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. Timestamp of the last resource update +// returns a *Time when successful +func (m *V1beta1SecretsItemSecretsPatchResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("assignmentsCount", m.GetAssignmentsCount()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("classifier", m.GetClassifier()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("customerId", m.GetCustomerId()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("domain", m.GetDomain()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("generation", m.GetGeneration()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("label", m.GetLabel()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("policy", m.GetPolicy()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("prototype", m.GetPrototype()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("service", m.GetService()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("status", m.GetStatus()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("statusUpdatedAt", m.GetStatusUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("subclassifier", m.GetSubclassifier()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAssignmentsCount sets the assignmentsCount property value. Count of associated assignment resources +func (m *V1beta1SecretsItemSecretsPatchResponse) SetAssignmentsCount(value *int32)() { + m.assignmentsCount = value +} +// SetClassifier sets the classifier property value. Resource classifier definition +func (m *V1beta1SecretsItemSecretsPatchResponse) SetClassifier(value V1beta1SecretsItemSecretsPatchResponse_classifierable)() { + m.classifier = value +} +// SetCreatedAt sets the createdAt property value. Timestamp of the resource creation +func (m *V1beta1SecretsItemSecretsPatchResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. Identifier of the customer owning the resource +func (m *V1beta1SecretsItemSecretsPatchResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDomain sets the domain property value. Resource domain definition +func (m *V1beta1SecretsItemSecretsPatchResponse) SetDomain(value V1beta1SecretsItemSecretsPatchResponse_domainable)() { + m.domain = value +} +// SetGeneration sets the generation property value. Update generation number +func (m *V1beta1SecretsItemSecretsPatchResponse) SetGeneration(value *int32)() { + m.generation = value +} +// SetGroups sets the groups property value. Groups associated with the resource +func (m *V1beta1SecretsItemSecretsPatchResponse) SetGroups(value []V1beta1SecretsItemSecretsPatchResponse_groupsable)() { + m.groups = value +} +// SetId sets the id property value. Identifier of the resource +func (m *V1beta1SecretsItemSecretsPatchResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetLabel sets the label property value. Consumer-defined label of the resource +func (m *V1beta1SecretsItemSecretsPatchResponse) SetLabel(value *string)() { + m.label = value +} +// SetName sets the name property value. Name of the resource +func (m *V1beta1SecretsItemSecretsPatchResponse) SetName(value *string)() { + m.name = value +} +// SetPolicy sets the policy property value. Secret properties conformant policy +func (m *V1beta1SecretsItemSecretsPatchResponse) SetPolicy(value *string)() { + m.policy = value +} +// SetPrototype sets the prototype property value. Reference of the prototype resource +func (m *V1beta1SecretsItemSecretsPatchResponse) SetPrototype(value V1beta1SecretsItemSecretsPatchResponse_prototypeable)() { + m.prototype = value +} +// SetResourceUri sets the resourceUri property value. URI of the resource +func (m *V1beta1SecretsItemSecretsPatchResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetService sets the service property value. Name of the service originating the resource +func (m *V1beta1SecretsItemSecretsPatchResponse) SetService(value *string)() { + m.service = value +} +// SetStatus sets the status property value. Status of the resource +func (m *V1beta1SecretsItemSecretsPatchResponse) SetStatus(value *string)() { + m.status = value +} +// SetStatusUpdatedAt sets the statusUpdatedAt property value. Timestamp of the last status update +func (m *V1beta1SecretsItemSecretsPatchResponse) SetStatusUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.statusUpdatedAt = value +} +// SetSubclassifier sets the subclassifier property value. Resource subclassifier definition +func (m *V1beta1SecretsItemSecretsPatchResponse) SetSubclassifier(value V1beta1SecretsItemSecretsPatchResponse_subclassifierable)() { + m.subclassifier = value +} +// SetTypeEscaped sets the type property value. Type of the resource +func (m *V1beta1SecretsItemSecretsPatchResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. Timestamp of the last resource update +func (m *V1beta1SecretsItemSecretsPatchResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1SecretsItemSecretsPatchResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAssignmentsCount()(*int32) + GetClassifier()(V1beta1SecretsItemSecretsPatchResponse_classifierable) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDomain()(V1beta1SecretsItemSecretsPatchResponse_domainable) + GetGeneration()(*int32) + GetGroups()([]V1beta1SecretsItemSecretsPatchResponse_groupsable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLabel()(*string) + GetName()(*string) + GetPolicy()(*string) + GetPrototype()(V1beta1SecretsItemSecretsPatchResponse_prototypeable) + GetResourceUri()(*string) + GetService()(*string) + GetStatus()(*string) + GetStatusUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetSubclassifier()(V1beta1SecretsItemSecretsPatchResponse_subclassifierable) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetAssignmentsCount(value *int32)() + SetClassifier(value V1beta1SecretsItemSecretsPatchResponse_classifierable)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDomain(value V1beta1SecretsItemSecretsPatchResponse_domainable)() + SetGeneration(value *int32)() + SetGroups(value []V1beta1SecretsItemSecretsPatchResponse_groupsable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLabel(value *string)() + SetName(value *string)() + SetPolicy(value *string)() + SetPrototype(value V1beta1SecretsItemSecretsPatchResponse_prototypeable)() + SetResourceUri(value *string)() + SetService(value *string)() + SetStatus(value *string)() + SetStatusUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetSubclassifier(value V1beta1SecretsItemSecretsPatchResponse_subclassifierable)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_classifier.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_classifier.go new file mode 100644 index 0000000..3132c85 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_classifier.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchResponse_classifier resource Classifier Definition (e.g. SECRET) +type V1beta1SecretsItemSecretsPatchResponse_classifier struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the resource classifier + name *string +} +// NewV1beta1SecretsItemSecretsPatchResponse_classifier instantiates a new V1beta1SecretsItemSecretsPatchResponse_classifier and sets the default values. +func NewV1beta1SecretsItemSecretsPatchResponse_classifier()(*V1beta1SecretsItemSecretsPatchResponse_classifier) { + m := &V1beta1SecretsItemSecretsPatchResponse_classifier{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchResponse_classifierFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchResponse_classifierFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchResponse_classifier(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_classifier) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_classifier) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource classifier +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_classifier) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchResponse_classifier) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchResponse_classifier) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. Name of the resource classifier +func (m *V1beta1SecretsItemSecretsPatchResponse_classifier) SetName(value *string)() { + m.name = value +} +type V1beta1SecretsItemSecretsPatchResponse_classifierable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_domain.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_domain.go new file mode 100644 index 0000000..a0987cc --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_domain.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchResponse_domain resource Domain Entity Definition (e.g. CONFIGURATION) +type V1beta1SecretsItemSecretsPatchResponse_domain struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the resource domain + name *string + // Resource domain properties + properties V1beta1SecretsItemSecretsPatchResponse_domain_propertiesable +} +// NewV1beta1SecretsItemSecretsPatchResponse_domain instantiates a new V1beta1SecretsItemSecretsPatchResponse_domain and sets the default values. +func NewV1beta1SecretsItemSecretsPatchResponse_domain()(*V1beta1SecretsItemSecretsPatchResponse_domain) { + m := &V1beta1SecretsItemSecretsPatchResponse_domain{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchResponse_domainFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchResponse_domainFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchResponse_domain(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_domain) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_domain) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["properties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchResponse_domain_propertiesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetProperties(val.(V1beta1SecretsItemSecretsPatchResponse_domain_propertiesable)) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource domain +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_domain) GetName()(*string) { + return m.name +} +// GetProperties gets the properties property value. Resource domain properties +// returns a V1beta1SecretsItemSecretsPatchResponse_domain_propertiesable when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_domain) GetProperties()(V1beta1SecretsItemSecretsPatchResponse_domain_propertiesable) { + return m.properties +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchResponse_domain) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("properties", m.GetProperties()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchResponse_domain) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. Name of the resource domain +func (m *V1beta1SecretsItemSecretsPatchResponse_domain) SetName(value *string)() { + m.name = value +} +// SetProperties sets the properties property value. Resource domain properties +func (m *V1beta1SecretsItemSecretsPatchResponse_domain) SetProperties(value V1beta1SecretsItemSecretsPatchResponse_domain_propertiesable)() { + m.properties = value +} +type V1beta1SecretsItemSecretsPatchResponse_domainable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetProperties()(V1beta1SecretsItemSecretsPatchResponse_domain_propertiesable) + SetName(value *string)() + SetProperties(value V1beta1SecretsItemSecretsPatchResponse_domain_propertiesable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_domain_escaped_properties.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_domain_escaped_properties.go new file mode 100644 index 0000000..d8e3dd5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_domain_escaped_properties.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchResponse_domain_properties resource domain properties +type V1beta1SecretsItemSecretsPatchResponse_domain_properties struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1SecretsItemSecretsPatchResponse_domain_properties instantiates a new V1beta1SecretsItemSecretsPatchResponse_domain_properties and sets the default values. +func NewV1beta1SecretsItemSecretsPatchResponse_domain_properties()(*V1beta1SecretsItemSecretsPatchResponse_domain_properties) { + m := &V1beta1SecretsItemSecretsPatchResponse_domain_properties{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchResponse_domain_propertiesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchResponse_domain_propertiesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchResponse_domain_properties(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_domain_properties) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_domain_properties) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchResponse_domain_properties) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchResponse_domain_properties) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1SecretsItemSecretsPatchResponse_domain_propertiesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_groups.go new file mode 100644 index 0000000..15fb0d5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_groups.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchResponse_groups storage Cloud Group Identity +type V1beta1SecretsItemSecretsPatchResponse_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifier of the associated group + id *string + // Name of the associated group + name *string + // URI of the associated group + resourceUri *string +} +// NewV1beta1SecretsItemSecretsPatchResponse_groups instantiates a new V1beta1SecretsItemSecretsPatchResponse_groups and sets the default values. +func NewV1beta1SecretsItemSecretsPatchResponse_groups()(*V1beta1SecretsItemSecretsPatchResponse_groups) { + m := &V1beta1SecretsItemSecretsPatchResponse_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchResponse_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchResponse_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchResponse_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + return res +} +// GetId gets the id property value. Identifier of the associated group +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_groups) GetId()(*string) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_groups) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. URI of the associated group +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_groups) GetResourceUri()(*string) { + return m.resourceUri +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchResponse_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchResponse_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Identifier of the associated group +func (m *V1beta1SecretsItemSecretsPatchResponse_groups) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1SecretsItemSecretsPatchResponse_groups) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. URI of the associated group +func (m *V1beta1SecretsItemSecretsPatchResponse_groups) SetResourceUri(value *string)() { + m.resourceUri = value +} +type V1beta1SecretsItemSecretsPatchResponse_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_prototype.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_prototype.go new file mode 100644 index 0000000..c310df6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_prototype.go @@ -0,0 +1,169 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchResponse_prototype storage Cloud Partial Resource Reference +type V1beta1SecretsItemSecretsPatchResponse_prototype struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifier of the resource + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the resource + name *string + // URI of the resource + resourceUri *string + // Type of the resource + typeEscaped *string +} +// NewV1beta1SecretsItemSecretsPatchResponse_prototype instantiates a new V1beta1SecretsItemSecretsPatchResponse_prototype and sets the default values. +func NewV1beta1SecretsItemSecretsPatchResponse_prototype()(*V1beta1SecretsItemSecretsPatchResponse_prototype) { + m := &V1beta1SecretsItemSecretsPatchResponse_prototype{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchResponse_prototypeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchResponse_prototypeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchResponse_prototype(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_prototype) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_prototype) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. Identifier of the resource +// returns a *UUID when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_prototype) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_prototype) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. URI of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_prototype) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. Type of the resource +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_prototype) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchResponse_prototype) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchResponse_prototype) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Identifier of the resource +func (m *V1beta1SecretsItemSecretsPatchResponse_prototype) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the resource +func (m *V1beta1SecretsItemSecretsPatchResponse_prototype) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. URI of the resource +func (m *V1beta1SecretsItemSecretsPatchResponse_prototype) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. Type of the resource +func (m *V1beta1SecretsItemSecretsPatchResponse_prototype) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1SecretsItemSecretsPatchResponse_prototypeable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_subclassifier.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_subclassifier.go new file mode 100644 index 0000000..d5b4f85 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_subclassifier.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchResponse_subclassifier resource Subclassifier Definition (e.g. BASIC_AUTH) +type V1beta1SecretsItemSecretsPatchResponse_subclassifier struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the resource subclassifier + name *string + // Resource subclassifier properties + properties V1beta1SecretsItemSecretsPatchResponse_subclassifier_propertiesable +} +// NewV1beta1SecretsItemSecretsPatchResponse_subclassifier instantiates a new V1beta1SecretsItemSecretsPatchResponse_subclassifier and sets the default values. +func NewV1beta1SecretsItemSecretsPatchResponse_subclassifier()(*V1beta1SecretsItemSecretsPatchResponse_subclassifier) { + m := &V1beta1SecretsItemSecretsPatchResponse_subclassifier{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchResponse_subclassifierFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchResponse_subclassifierFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchResponse_subclassifier(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_subclassifier) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_subclassifier) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["properties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchResponse_subclassifier_propertiesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetProperties(val.(V1beta1SecretsItemSecretsPatchResponse_subclassifier_propertiesable)) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource subclassifier +// returns a *string when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_subclassifier) GetName()(*string) { + return m.name +} +// GetProperties gets the properties property value. Resource subclassifier properties +// returns a V1beta1SecretsItemSecretsPatchResponse_subclassifier_propertiesable when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_subclassifier) GetProperties()(V1beta1SecretsItemSecretsPatchResponse_subclassifier_propertiesable) { + return m.properties +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchResponse_subclassifier) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("properties", m.GetProperties()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchResponse_subclassifier) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. Name of the resource subclassifier +func (m *V1beta1SecretsItemSecretsPatchResponse_subclassifier) SetName(value *string)() { + m.name = value +} +// SetProperties sets the properties property value. Resource subclassifier properties +func (m *V1beta1SecretsItemSecretsPatchResponse_subclassifier) SetProperties(value V1beta1SecretsItemSecretsPatchResponse_subclassifier_propertiesable)() { + m.properties = value +} +type V1beta1SecretsItemSecretsPatchResponse_subclassifierable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetProperties()(V1beta1SecretsItemSecretsPatchResponse_subclassifier_propertiesable) + SetName(value *string)() + SetProperties(value V1beta1SecretsItemSecretsPatchResponse_subclassifier_propertiesable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_subclassifier_escaped_properties.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_subclassifier_escaped_properties.go new file mode 100644 index 0000000..93b33cf --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_patch_response_escaped_subclassifier_escaped_properties.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsPatchResponse_subclassifier_properties resource subclassifier properties +type V1beta1SecretsItemSecretsPatchResponse_subclassifier_properties struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1SecretsItemSecretsPatchResponse_subclassifier_properties instantiates a new V1beta1SecretsItemSecretsPatchResponse_subclassifier_properties and sets the default values. +func NewV1beta1SecretsItemSecretsPatchResponse_subclassifier_properties()(*V1beta1SecretsItemSecretsPatchResponse_subclassifier_properties) { + m := &V1beta1SecretsItemSecretsPatchResponse_subclassifier_properties{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsItemSecretsPatchResponse_subclassifier_propertiesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsPatchResponse_subclassifier_propertiesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsPatchResponse_subclassifier_properties(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_subclassifier_properties) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsItemSecretsPatchResponse_subclassifier_properties) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsItemSecretsPatchResponse_subclassifier_properties) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsItemSecretsPatchResponse_subclassifier_properties) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1SecretsItemSecretsPatchResponse_subclassifier_propertiesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_response.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_response.go new file mode 100644 index 0000000..051e0e8 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_item_secrets_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsItemSecretsResponse secret Resource Definition +// Deprecated: This class is obsolete. Use V1beta1SecretsItemSecretsGetResponseable instead. +type V1beta1SecretsItemSecretsResponse struct { + V1beta1SecretsItemSecretsGetResponse +} +// NewV1beta1SecretsItemSecretsResponse instantiates a new V1beta1SecretsItemSecretsResponse and sets the default values. +func NewV1beta1SecretsItemSecretsResponse()(*V1beta1SecretsItemSecretsResponse) { + m := &V1beta1SecretsItemSecretsResponse{ + V1beta1SecretsItemSecretsGetResponse: *NewV1beta1SecretsItemSecretsGetResponse(), + } + return m +} +// CreateV1beta1SecretsItemSecretsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsItemSecretsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsItemSecretsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1SecretsItemSecretsGetResponseable instead. +type V1beta1SecretsItemSecretsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1SecretsItemSecretsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1.go new file mode 100644 index 0000000..b938355 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1.go @@ -0,0 +1,617 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1 assigned Secret Specification +type V1beta1SecretsPostRequestBodyMember1 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The assignees property + assignees []V1beta1SecretsPostRequestBodyMember1_assigneesable + // Description for the resource + description *string + // Groups to be associated with the resource + groups []string + // Consumer-defined label for the resource + label *string + // Key for resource lifecycle event messages + lifecycleEventKey *string + // Name of the resource + name *string + // Secret policy identifier + policy *string + // Secret properties definition + secret V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secretable + // Name of the service originating the resource + service *string +} +// V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret composed type wrapper for classes V1beta1SecretsPostRequestBodyMember1_secretMember10able, V1beta1SecretsPostRequestBodyMember1_secretMember1able, V1beta1SecretsPostRequestBodyMember1_secretMember2able, V1beta1SecretsPostRequestBodyMember1_secretMember3able, V1beta1SecretsPostRequestBodyMember1_secretMember4able, V1beta1SecretsPostRequestBodyMember1_secretMember5able, V1beta1SecretsPostRequestBodyMember1_secretMember6able, V1beta1SecretsPostRequestBodyMember1_secretMember7able, V1beta1SecretsPostRequestBodyMember1_secretMember8able, V1beta1SecretsPostRequestBodyMember1_secretMember9able +type V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret struct { + // Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember1able + v1beta1SecretsPostRequestBodyMember1_secretMember1 V1beta1SecretsPostRequestBodyMember1_secretMember1able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember10able + v1beta1SecretsPostRequestBodyMember1_secretMember10 V1beta1SecretsPostRequestBodyMember1_secretMember10able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember2able + v1beta1SecretsPostRequestBodyMember1_secretMember2 V1beta1SecretsPostRequestBodyMember1_secretMember2able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember3able + v1beta1SecretsPostRequestBodyMember1_secretMember3 V1beta1SecretsPostRequestBodyMember1_secretMember3able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember4able + v1beta1SecretsPostRequestBodyMember1_secretMember4 V1beta1SecretsPostRequestBodyMember1_secretMember4able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember5able + v1beta1SecretsPostRequestBodyMember1_secretMember5 V1beta1SecretsPostRequestBodyMember1_secretMember5able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember6able + v1beta1SecretsPostRequestBodyMember1_secretMember6 V1beta1SecretsPostRequestBodyMember1_secretMember6able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember7able + v1beta1SecretsPostRequestBodyMember1_secretMember7 V1beta1SecretsPostRequestBodyMember1_secretMember7able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember8able + v1beta1SecretsPostRequestBodyMember1_secretMember8 V1beta1SecretsPostRequestBodyMember1_secretMember8able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember9able + v1beta1SecretsPostRequestBodyMember1_secretMember9 V1beta1SecretsPostRequestBodyMember1_secretMember9able +} +// NewV1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret instantiates a new V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret()(*V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) { + m := &V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret{ + } + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secretFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secretFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + result := NewV1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret() + if parseNode != nil { + if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember1FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember1_secretMember1able); ok { + result.SetV1beta1SecretsPostRequestBodyMember1SecretMember1(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember10FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember1_secretMember10able); ok { + result.SetV1beta1SecretsPostRequestBodyMember1SecretMember10(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember2FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember1_secretMember2able); ok { + result.SetV1beta1SecretsPostRequestBodyMember1SecretMember2(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember3FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember1_secretMember3able); ok { + result.SetV1beta1SecretsPostRequestBodyMember1SecretMember3(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember4FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember1_secretMember4able); ok { + result.SetV1beta1SecretsPostRequestBodyMember1SecretMember4(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember5FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember1_secretMember5able); ok { + result.SetV1beta1SecretsPostRequestBodyMember1SecretMember5(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember6FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember1_secretMember6able); ok { + result.SetV1beta1SecretsPostRequestBodyMember1SecretMember6(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember7FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember1_secretMember7able); ok { + result.SetV1beta1SecretsPostRequestBodyMember1SecretMember7(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember8FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember1_secretMember8able); ok { + result.SetV1beta1SecretsPostRequestBodyMember1SecretMember8(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember9FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember1_secretMember9able); ok { + result.SetV1beta1SecretsPostRequestBodyMember1SecretMember9(cast) + } + } + } + return result, nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) +} +// GetIsComposedType determines if the current object is a wrapper around a composed type +// returns a bool when successful +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) GetIsComposedType()(bool) { + return true +} +// GetV1beta1SecretsPostRequestBodyMember1SecretMember1 gets the V1beta1SecretsPostRequestBodyMember1_secretMember1 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember1able +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember1able when successful +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) GetV1beta1SecretsPostRequestBodyMember1SecretMember1()(V1beta1SecretsPostRequestBodyMember1_secretMember1able) { + return m.v1beta1SecretsPostRequestBodyMember1_secretMember1 +} +// GetV1beta1SecretsPostRequestBodyMember1SecretMember10 gets the V1beta1SecretsPostRequestBodyMember1_secretMember10 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember10able +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember10able when successful +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) GetV1beta1SecretsPostRequestBodyMember1SecretMember10()(V1beta1SecretsPostRequestBodyMember1_secretMember10able) { + return m.v1beta1SecretsPostRequestBodyMember1_secretMember10 +} +// GetV1beta1SecretsPostRequestBodyMember1SecretMember2 gets the V1beta1SecretsPostRequestBodyMember1_secretMember2 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember2able +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember2able when successful +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) GetV1beta1SecretsPostRequestBodyMember1SecretMember2()(V1beta1SecretsPostRequestBodyMember1_secretMember2able) { + return m.v1beta1SecretsPostRequestBodyMember1_secretMember2 +} +// GetV1beta1SecretsPostRequestBodyMember1SecretMember3 gets the V1beta1SecretsPostRequestBodyMember1_secretMember3 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember3able +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember3able when successful +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) GetV1beta1SecretsPostRequestBodyMember1SecretMember3()(V1beta1SecretsPostRequestBodyMember1_secretMember3able) { + return m.v1beta1SecretsPostRequestBodyMember1_secretMember3 +} +// GetV1beta1SecretsPostRequestBodyMember1SecretMember4 gets the V1beta1SecretsPostRequestBodyMember1_secretMember4 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember4able +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember4able when successful +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) GetV1beta1SecretsPostRequestBodyMember1SecretMember4()(V1beta1SecretsPostRequestBodyMember1_secretMember4able) { + return m.v1beta1SecretsPostRequestBodyMember1_secretMember4 +} +// GetV1beta1SecretsPostRequestBodyMember1SecretMember5 gets the V1beta1SecretsPostRequestBodyMember1_secretMember5 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember5able +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember5able when successful +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) GetV1beta1SecretsPostRequestBodyMember1SecretMember5()(V1beta1SecretsPostRequestBodyMember1_secretMember5able) { + return m.v1beta1SecretsPostRequestBodyMember1_secretMember5 +} +// GetV1beta1SecretsPostRequestBodyMember1SecretMember6 gets the V1beta1SecretsPostRequestBodyMember1_secretMember6 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember6able +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember6able when successful +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) GetV1beta1SecretsPostRequestBodyMember1SecretMember6()(V1beta1SecretsPostRequestBodyMember1_secretMember6able) { + return m.v1beta1SecretsPostRequestBodyMember1_secretMember6 +} +// GetV1beta1SecretsPostRequestBodyMember1SecretMember7 gets the V1beta1SecretsPostRequestBodyMember1_secretMember7 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember7able +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember7able when successful +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) GetV1beta1SecretsPostRequestBodyMember1SecretMember7()(V1beta1SecretsPostRequestBodyMember1_secretMember7able) { + return m.v1beta1SecretsPostRequestBodyMember1_secretMember7 +} +// GetV1beta1SecretsPostRequestBodyMember1SecretMember8 gets the V1beta1SecretsPostRequestBodyMember1_secretMember8 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember8able +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember8able when successful +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) GetV1beta1SecretsPostRequestBodyMember1SecretMember8()(V1beta1SecretsPostRequestBodyMember1_secretMember8able) { + return m.v1beta1SecretsPostRequestBodyMember1_secretMember8 +} +// GetV1beta1SecretsPostRequestBodyMember1SecretMember9 gets the V1beta1SecretsPostRequestBodyMember1_secretMember9 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember9able +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember9able when successful +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) GetV1beta1SecretsPostRequestBodyMember1SecretMember9()(V1beta1SecretsPostRequestBodyMember1_secretMember9able) { + return m.v1beta1SecretsPostRequestBodyMember1_secretMember9 +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetV1beta1SecretsPostRequestBodyMember1SecretMember1() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember1SecretMember1()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember1SecretMember10() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember1SecretMember10()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember1SecretMember2() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember1SecretMember2()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember1SecretMember3() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember1SecretMember3()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember1SecretMember4() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember1SecretMember4()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember1SecretMember5() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember1SecretMember5()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember1SecretMember6() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember1SecretMember6()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember1SecretMember7() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember1SecretMember7()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember1SecretMember8() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember1SecretMember8()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember1SecretMember9() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember1SecretMember9()) + if err != nil { + return err + } + } + return nil +} +// SetV1beta1SecretsPostRequestBodyMember1SecretMember1 sets the V1beta1SecretsPostRequestBodyMember1_secretMember1 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember1able +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) SetV1beta1SecretsPostRequestBodyMember1SecretMember1(value V1beta1SecretsPostRequestBodyMember1_secretMember1able)() { + m.v1beta1SecretsPostRequestBodyMember1_secretMember1 = value +} +// SetV1beta1SecretsPostRequestBodyMember1SecretMember10 sets the V1beta1SecretsPostRequestBodyMember1_secretMember10 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember10able +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) SetV1beta1SecretsPostRequestBodyMember1SecretMember10(value V1beta1SecretsPostRequestBodyMember1_secretMember10able)() { + m.v1beta1SecretsPostRequestBodyMember1_secretMember10 = value +} +// SetV1beta1SecretsPostRequestBodyMember1SecretMember2 sets the V1beta1SecretsPostRequestBodyMember1_secretMember2 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember2able +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) SetV1beta1SecretsPostRequestBodyMember1SecretMember2(value V1beta1SecretsPostRequestBodyMember1_secretMember2able)() { + m.v1beta1SecretsPostRequestBodyMember1_secretMember2 = value +} +// SetV1beta1SecretsPostRequestBodyMember1SecretMember3 sets the V1beta1SecretsPostRequestBodyMember1_secretMember3 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember3able +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) SetV1beta1SecretsPostRequestBodyMember1SecretMember3(value V1beta1SecretsPostRequestBodyMember1_secretMember3able)() { + m.v1beta1SecretsPostRequestBodyMember1_secretMember3 = value +} +// SetV1beta1SecretsPostRequestBodyMember1SecretMember4 sets the V1beta1SecretsPostRequestBodyMember1_secretMember4 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember4able +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) SetV1beta1SecretsPostRequestBodyMember1SecretMember4(value V1beta1SecretsPostRequestBodyMember1_secretMember4able)() { + m.v1beta1SecretsPostRequestBodyMember1_secretMember4 = value +} +// SetV1beta1SecretsPostRequestBodyMember1SecretMember5 sets the V1beta1SecretsPostRequestBodyMember1_secretMember5 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember5able +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) SetV1beta1SecretsPostRequestBodyMember1SecretMember5(value V1beta1SecretsPostRequestBodyMember1_secretMember5able)() { + m.v1beta1SecretsPostRequestBodyMember1_secretMember5 = value +} +// SetV1beta1SecretsPostRequestBodyMember1SecretMember6 sets the V1beta1SecretsPostRequestBodyMember1_secretMember6 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember6able +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) SetV1beta1SecretsPostRequestBodyMember1SecretMember6(value V1beta1SecretsPostRequestBodyMember1_secretMember6able)() { + m.v1beta1SecretsPostRequestBodyMember1_secretMember6 = value +} +// SetV1beta1SecretsPostRequestBodyMember1SecretMember7 sets the V1beta1SecretsPostRequestBodyMember1_secretMember7 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember7able +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) SetV1beta1SecretsPostRequestBodyMember1SecretMember7(value V1beta1SecretsPostRequestBodyMember1_secretMember7able)() { + m.v1beta1SecretsPostRequestBodyMember1_secretMember7 = value +} +// SetV1beta1SecretsPostRequestBodyMember1SecretMember8 sets the V1beta1SecretsPostRequestBodyMember1_secretMember8 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember8able +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) SetV1beta1SecretsPostRequestBodyMember1SecretMember8(value V1beta1SecretsPostRequestBodyMember1_secretMember8able)() { + m.v1beta1SecretsPostRequestBodyMember1_secretMember8 = value +} +// SetV1beta1SecretsPostRequestBodyMember1SecretMember9 sets the V1beta1SecretsPostRequestBodyMember1_secretMember9 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1_secretMember9able +func (m *V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secret) SetV1beta1SecretsPostRequestBodyMember1SecretMember9(value V1beta1SecretsPostRequestBodyMember1_secretMember9able)() { + m.v1beta1SecretsPostRequestBodyMember1_secretMember9 = value +} +type V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secretable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetV1beta1SecretsPostRequestBodyMember1SecretMember1()(V1beta1SecretsPostRequestBodyMember1_secretMember1able) + GetV1beta1SecretsPostRequestBodyMember1SecretMember10()(V1beta1SecretsPostRequestBodyMember1_secretMember10able) + GetV1beta1SecretsPostRequestBodyMember1SecretMember2()(V1beta1SecretsPostRequestBodyMember1_secretMember2able) + GetV1beta1SecretsPostRequestBodyMember1SecretMember3()(V1beta1SecretsPostRequestBodyMember1_secretMember3able) + GetV1beta1SecretsPostRequestBodyMember1SecretMember4()(V1beta1SecretsPostRequestBodyMember1_secretMember4able) + GetV1beta1SecretsPostRequestBodyMember1SecretMember5()(V1beta1SecretsPostRequestBodyMember1_secretMember5able) + GetV1beta1SecretsPostRequestBodyMember1SecretMember6()(V1beta1SecretsPostRequestBodyMember1_secretMember6able) + GetV1beta1SecretsPostRequestBodyMember1SecretMember7()(V1beta1SecretsPostRequestBodyMember1_secretMember7able) + GetV1beta1SecretsPostRequestBodyMember1SecretMember8()(V1beta1SecretsPostRequestBodyMember1_secretMember8able) + GetV1beta1SecretsPostRequestBodyMember1SecretMember9()(V1beta1SecretsPostRequestBodyMember1_secretMember9able) + SetV1beta1SecretsPostRequestBodyMember1SecretMember1(value V1beta1SecretsPostRequestBodyMember1_secretMember1able)() + SetV1beta1SecretsPostRequestBodyMember1SecretMember10(value V1beta1SecretsPostRequestBodyMember1_secretMember10able)() + SetV1beta1SecretsPostRequestBodyMember1SecretMember2(value V1beta1SecretsPostRequestBodyMember1_secretMember2able)() + SetV1beta1SecretsPostRequestBodyMember1SecretMember3(value V1beta1SecretsPostRequestBodyMember1_secretMember3able)() + SetV1beta1SecretsPostRequestBodyMember1SecretMember4(value V1beta1SecretsPostRequestBodyMember1_secretMember4able)() + SetV1beta1SecretsPostRequestBodyMember1SecretMember5(value V1beta1SecretsPostRequestBodyMember1_secretMember5able)() + SetV1beta1SecretsPostRequestBodyMember1SecretMember6(value V1beta1SecretsPostRequestBodyMember1_secretMember6able)() + SetV1beta1SecretsPostRequestBodyMember1SecretMember7(value V1beta1SecretsPostRequestBodyMember1_secretMember7able)() + SetV1beta1SecretsPostRequestBodyMember1SecretMember8(value V1beta1SecretsPostRequestBodyMember1_secretMember8able)() + SetV1beta1SecretsPostRequestBodyMember1SecretMember9(value V1beta1SecretsPostRequestBodyMember1_secretMember9able)() +} +// NewV1beta1SecretsPostRequestBodyMember1 instantiates a new V1beta1SecretsPostRequestBodyMember1 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1()(*V1beta1SecretsPostRequestBodyMember1) { + m := &V1beta1SecretsPostRequestBodyMember1{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAssignees gets the assignees property value. The assignees property +// returns a []V1beta1SecretsPostRequestBodyMember1_assigneesable when successful +func (m *V1beta1SecretsPostRequestBodyMember1) GetAssignees()([]V1beta1SecretsPostRequestBodyMember1_assigneesable) { + return m.assignees +} +// GetDescription gets the description property value. Description for the resource +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["assignees"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SecretsPostRequestBodyMember1_assigneesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SecretsPostRequestBodyMember1_assigneesable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SecretsPostRequestBodyMember1_assigneesable) + } + } + m.SetAssignees(res) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetGroups(res) + } + return nil + } + res["label"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLabel(val) + } + return nil + } + res["lifecycleEventKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLifecycleEventKey(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["policy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPolicy(val) + } + return nil + } + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secretFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecret(val.(V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secretable)) + } + return nil + } + res["service"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetService(val) + } + return nil + } + return res +} +// GetGroups gets the groups property value. Groups to be associated with the resource +// returns a []string when successful +func (m *V1beta1SecretsPostRequestBodyMember1) GetGroups()([]string) { + return m.groups +} +// GetLabel gets the label property value. Consumer-defined label for the resource +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1) GetLabel()(*string) { + return m.label +} +// GetLifecycleEventKey gets the lifecycleEventKey property value. Key for resource lifecycle event messages +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1) GetLifecycleEventKey()(*string) { + return m.lifecycleEventKey +} +// GetName gets the name property value. Name of the resource +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1) GetName()(*string) { + return m.name +} +// GetPolicy gets the policy property value. Secret policy identifier +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1) GetPolicy()(*string) { + return m.policy +} +// GetSecret gets the secret property value. Secret properties definition +// returns a V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secretable when successful +func (m *V1beta1SecretsPostRequestBodyMember1) GetSecret()(V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secretable) { + return m.secret +} +// GetService gets the service property value. Name of the service originating the resource +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1) GetService()(*string) { + return m.service +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAssignees() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAssignees())) + for i, v := range m.GetAssignees() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("assignees", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + err := writer.WriteCollectionOfStringValues("groups", m.GetGroups()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("label", m.GetLabel()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("lifecycleEventKey", m.GetLifecycleEventKey()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("policy", m.GetPolicy()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("service", m.GetService()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAssignees sets the assignees property value. The assignees property +func (m *V1beta1SecretsPostRequestBodyMember1) SetAssignees(value []V1beta1SecretsPostRequestBodyMember1_assigneesable)() { + m.assignees = value +} +// SetDescription sets the description property value. Description for the resource +func (m *V1beta1SecretsPostRequestBodyMember1) SetDescription(value *string)() { + m.description = value +} +// SetGroups sets the groups property value. Groups to be associated with the resource +func (m *V1beta1SecretsPostRequestBodyMember1) SetGroups(value []string)() { + m.groups = value +} +// SetLabel sets the label property value. Consumer-defined label for the resource +func (m *V1beta1SecretsPostRequestBodyMember1) SetLabel(value *string)() { + m.label = value +} +// SetLifecycleEventKey sets the lifecycleEventKey property value. Key for resource lifecycle event messages +func (m *V1beta1SecretsPostRequestBodyMember1) SetLifecycleEventKey(value *string)() { + m.lifecycleEventKey = value +} +// SetName sets the name property value. Name of the resource +func (m *V1beta1SecretsPostRequestBodyMember1) SetName(value *string)() { + m.name = value +} +// SetPolicy sets the policy property value. Secret policy identifier +func (m *V1beta1SecretsPostRequestBodyMember1) SetPolicy(value *string)() { + m.policy = value +} +// SetSecret sets the secret property value. Secret properties definition +func (m *V1beta1SecretsPostRequestBodyMember1) SetSecret(value V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secretable)() { + m.secret = value +} +// SetService sets the service property value. Name of the service originating the resource +func (m *V1beta1SecretsPostRequestBodyMember1) SetService(value *string)() { + m.service = value +} +type V1beta1SecretsPostRequestBodyMember1able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAssignees()([]V1beta1SecretsPostRequestBodyMember1_assigneesable) + GetDescription()(*string) + GetGroups()([]string) + GetLabel()(*string) + GetLifecycleEventKey()(*string) + GetName()(*string) + GetPolicy()(*string) + GetSecret()(V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secretable) + GetService()(*string) + SetAssignees(value []V1beta1SecretsPostRequestBodyMember1_assigneesable)() + SetDescription(value *string)() + SetGroups(value []string)() + SetLabel(value *string)() + SetLifecycleEventKey(value *string)() + SetName(value *string)() + SetPolicy(value *string)() + SetSecret(value V1beta1SecretsPostRequestBodyMember1_SecretsPostRequestBodyMember1_secretable)() + SetService(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_assignees.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_assignees.go new file mode 100644 index 0000000..45c4423 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_assignees.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_assignees appliance Identity +type V1beta1SecretsPostRequestBodyMember1_assignees struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identity of the appliance + id *string +} +// NewV1beta1SecretsPostRequestBodyMember1_assignees instantiates a new V1beta1SecretsPostRequestBodyMember1_assignees and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_assignees()(*V1beta1SecretsPostRequestBodyMember1_assignees) { + m := &V1beta1SecretsPostRequestBodyMember1_assignees{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_assigneesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_assigneesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_assignees(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_assignees) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_assignees) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + return res +} +// GetId gets the id property value. Identity of the appliance +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_assignees) GetId()(*string) { + return m.id +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_assignees) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_assignees) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Identity of the appliance +func (m *V1beta1SecretsPostRequestBodyMember1_assignees) SetId(value *string)() { + m.id = value +} +type V1beta1SecretsPostRequestBodyMember1_assigneesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + SetId(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member1.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member1.go new file mode 100644 index 0000000..09ffd61 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member1.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember1 azure Service Principal client secret definition +type V1beta1SecretsPostRequestBodyMember1_secretMember1 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Azure Service Principal client secret properties + azureSPClient V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClientable +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember1 instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember1 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember1()(*V1beta1SecretsPostRequestBodyMember1_secretMember1) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember1{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember1FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember1FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember1(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAzureSPClient gets the azureSPClient property value. Azure Service Principal client secret properties +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClientable when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1) GetAzureSPClient()(V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClientable) { + return m.azureSPClient +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["azureSPClient"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClientFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAzureSPClient(val.(V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClientable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("azureSPClient", m.GetAzureSPClient()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAzureSPClient sets the azureSPClient property value. Azure Service Principal client secret properties +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1) SetAzureSPClient(value V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClientable)() { + m.azureSPClient = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember1able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAzureSPClient()(V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClientable) + SetAzureSPClient(value V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClientable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member10.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member10.go new file mode 100644 index 0000000..2545413 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member10.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember10 sSH Key Pair secret definition +type V1beta1SecretsPostRequestBodyMember1_secretMember10 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // SSH Key Pair secret properties + sshKeypair V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypairable +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember10 instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember10 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember10()(*V1beta1SecretsPostRequestBodyMember1_secretMember10) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember10{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember10FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember10FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember10(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember10) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember10) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["sshKeypair"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypairFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSshKeypair(val.(V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypairable)) + } + return nil + } + return res +} +// GetSshKeypair gets the sshKeypair property value. SSH Key Pair secret properties +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypairable when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember10) GetSshKeypair()(V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypairable) { + return m.sshKeypair +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember10) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("sshKeypair", m.GetSshKeypair()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember10) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetSshKeypair sets the sshKeypair property value. SSH Key Pair secret properties +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember10) SetSshKeypair(value V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypairable)() { + m.sshKeypair = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember10able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSshKeypair()(V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypairable) + SetSshKeypair(value V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypairable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member10_escaped_ssh_keypair.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member10_escaped_ssh_keypair.go new file mode 100644 index 0000000..0a2e3d3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member10_escaped_ssh_keypair.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair sSH Key Pair secret properties +type V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Private Key (BASE64-encoded) + privateKey *string + // Public Key (BASE64-encoded) + publicKey *string +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair()(*V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypairFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypairFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["privateKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPrivateKey(val) + } + return nil + } + res["publicKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPublicKey(val) + } + return nil + } + return res +} +// GetPrivateKey gets the privateKey property value. Private Key (BASE64-encoded) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair) GetPrivateKey()(*string) { + return m.privateKey +} +// GetPublicKey gets the publicKey property value. Public Key (BASE64-encoded) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair) GetPublicKey()(*string) { + return m.publicKey +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("privateKey", m.GetPrivateKey()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("publicKey", m.GetPublicKey()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPrivateKey sets the privateKey property value. Private Key (BASE64-encoded) +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair) SetPrivateKey(value *string)() { + m.privateKey = value +} +// SetPublicKey sets the publicKey property value. Public Key (BASE64-encoded) +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypair) SetPublicKey(value *string)() { + m.publicKey = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember10_sshKeypairable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPrivateKey()(*string) + GetPublicKey()(*string) + SetPrivateKey(value *string)() + SetPublicKey(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member1_escaped_azure_s_p_client.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member1_escaped_azure_s_p_client.go new file mode 100644 index 0000000..934471e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member1_escaped_azure_s_p_client.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient azure Service Principal client secret properties +type V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Azure Service Principal client ID (aka application ID) + clientId *string + // Azure Service Principal client secret + clientSecret *string + // Azure Service Principal tenant ID (aka directory ID) + tenantId *string +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient()(*V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClientFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClientFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetClientId gets the clientId property value. Azure Service Principal client ID (aka application ID) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient) GetClientId()(*string) { + return m.clientId +} +// GetClientSecret gets the clientSecret property value. Azure Service Principal client secret +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient) GetClientSecret()(*string) { + return m.clientSecret +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientId(val) + } + return nil + } + res["clientSecret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientSecret(val) + } + return nil + } + res["tenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTenantId(val) + } + return nil + } + return res +} +// GetTenantId gets the tenantId property value. Azure Service Principal tenant ID (aka directory ID) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient) GetTenantId()(*string) { + return m.tenantId +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("clientId", m.GetClientId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("clientSecret", m.GetClientSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("tenantId", m.GetTenantId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetClientId sets the clientId property value. Azure Service Principal client ID (aka application ID) +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient) SetClientId(value *string)() { + m.clientId = value +} +// SetClientSecret sets the clientSecret property value. Azure Service Principal client secret +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient) SetClientSecret(value *string)() { + m.clientSecret = value +} +// SetTenantId sets the tenantId property value. Azure Service Principal tenant ID (aka directory ID) +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClient) SetTenantId(value *string)() { + m.tenantId = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember1_azureSPClientable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetClientId()(*string) + GetClientSecret()(*string) + GetTenantId()(*string) + SetClientId(value *string)() + SetClientSecret(value *string)() + SetTenantId(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member2.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member2.go new file mode 100644 index 0000000..c8846d6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member2.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember2 basic Access Authentication secret definition +type V1beta1SecretsPostRequestBodyMember1_secretMember2 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Basic Access Authentication secret properties + basicAuth V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuthable +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember2 instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember2 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember2()(*V1beta1SecretsPostRequestBodyMember1_secretMember2) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember2{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember2(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember2) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetBasicAuth gets the basicAuth property value. Basic Access Authentication secret properties +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuthable when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember2) GetBasicAuth()(V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuthable) { + return m.basicAuth +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["basicAuth"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuthFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBasicAuth(val.(V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuthable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("basicAuth", m.GetBasicAuth()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember2) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetBasicAuth sets the basicAuth property value. Basic Access Authentication secret properties +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember2) SetBasicAuth(value V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuthable)() { + m.basicAuth = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember2able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBasicAuth()(V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuthable) + SetBasicAuth(value V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuthable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member2_escaped_basic_auth.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member2_escaped_basic_auth.go new file mode 100644 index 0000000..e1c0e14 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member2_escaped_basic_auth.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth basic Access Authentication secret properties +type V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Password or passphrase + password *string + // Username or user ID + username *string +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth()(*V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuthFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuthFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPassword(val) + } + return nil + } + res["username"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUsername(val) + } + return nil + } + return res +} +// GetPassword gets the password property value. Password or passphrase +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth) GetPassword()(*string) { + return m.password +} +// GetUsername gets the username property value. Username or user ID +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth) GetUsername()(*string) { + return m.username +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("password", m.GetPassword()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("username", m.GetUsername()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPassword sets the password property value. Password or passphrase +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth) SetPassword(value *string)() { + m.password = value +} +// SetUsername sets the username property value. Username or user ID +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuth) SetUsername(value *string)() { + m.username = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember2_basicAuthable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPassword()(*string) + GetUsername()(*string) + SetPassword(value *string)() + SetUsername(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member3.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member3.go new file mode 100644 index 0000000..7fac6d9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member3.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember3 bearer Token Authentication secret definition +type V1beta1SecretsPostRequestBodyMember1_secretMember3 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Bearer Token Authentication secret properties + bearerAuth V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuthable +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember3 instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember3 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember3()(*V1beta1SecretsPostRequestBodyMember1_secretMember3) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember3{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember3FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember3FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember3(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember3) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetBearerAuth gets the bearerAuth property value. Bearer Token Authentication secret properties +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuthable when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember3) GetBearerAuth()(V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuthable) { + return m.bearerAuth +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember3) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["bearerAuth"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuthFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBearerAuth(val.(V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuthable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember3) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("bearerAuth", m.GetBearerAuth()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember3) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetBearerAuth sets the bearerAuth property value. Bearer Token Authentication secret properties +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember3) SetBearerAuth(value V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuthable)() { + m.bearerAuth = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember3able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBearerAuth()(V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuthable) + SetBearerAuth(value V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuthable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member3_escaped_bearer_auth.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member3_escaped_bearer_auth.go new file mode 100644 index 0000000..ebb3576 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member3_escaped_bearer_auth.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuth bearer Token Authentication secret properties +type V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuth struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Token (e.g. JWT) + token *string +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuth instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuth and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuth()(*V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuth) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuth{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuthFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuthFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuth(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuth) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuth) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["token"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetToken(val) + } + return nil + } + return res +} +// GetToken gets the token property value. Token (e.g. JWT) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuth) GetToken()(*string) { + return m.token +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuth) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("token", m.GetToken()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuth) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetToken sets the token property value. Token (e.g. JWT) +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuth) SetToken(value *string)() { + m.token = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember3_bearerAuthable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetToken()(*string) + SetToken(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member4.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member4.go new file mode 100644 index 0000000..bf03b76 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member4.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember4 certificate secret definition +type V1beta1SecretsPostRequestBodyMember1_secretMember4 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Certificate secret properties + certificate V1beta1SecretsPostRequestBodyMember1_secretMember4_certificateable +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember4 instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember4 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember4()(*V1beta1SecretsPostRequestBodyMember1_secretMember4) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember4{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember4FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember4FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember4(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember4) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCertificate gets the certificate property value. Certificate secret properties +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember4_certificateable when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember4) GetCertificate()(V1beta1SecretsPostRequestBodyMember1_secretMember4_certificateable) { + return m.certificate +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember4) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["certificate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember4_certificateFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCertificate(val.(V1beta1SecretsPostRequestBodyMember1_secretMember4_certificateable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember4) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("certificate", m.GetCertificate()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember4) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCertificate sets the certificate property value. Certificate secret properties +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember4) SetCertificate(value V1beta1SecretsPostRequestBodyMember1_secretMember4_certificateable)() { + m.certificate = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember4able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCertificate()(V1beta1SecretsPostRequestBodyMember1_secretMember4_certificateable) + SetCertificate(value V1beta1SecretsPostRequestBodyMember1_secretMember4_certificateable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member4_escaped_certificate.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member4_escaped_certificate.go new file mode 100644 index 0000000..3404f28 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member4_escaped_certificate.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember4_certificate certificate secret properties +type V1beta1SecretsPostRequestBodyMember1_secretMember4_certificate struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Distinguished Encoding Rules (DER) (BASE64-encoded) + der *string + // Privacy-Enhanced Mail (PEM) (BASE64-encoded) + pem *string +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember4_certificate instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember4_certificate and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember4_certificate()(*V1beta1SecretsPostRequestBodyMember1_secretMember4_certificate) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember4_certificate{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember4_certificateFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember4_certificateFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember4_certificate(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember4_certificate) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDer gets the der property value. Distinguished Encoding Rules (DER) (BASE64-encoded) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember4_certificate) GetDer()(*string) { + return m.der +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember4_certificate) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["der"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDer(val) + } + return nil + } + res["pem"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPem(val) + } + return nil + } + return res +} +// GetPem gets the pem property value. Privacy-Enhanced Mail (PEM) (BASE64-encoded) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember4_certificate) GetPem()(*string) { + return m.pem +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember4_certificate) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("der", m.GetDer()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("pem", m.GetPem()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember4_certificate) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDer sets the der property value. Distinguished Encoding Rules (DER) (BASE64-encoded) +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember4_certificate) SetDer(value *string)() { + m.der = value +} +// SetPem sets the pem property value. Privacy-Enhanced Mail (PEM) (BASE64-encoded) +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember4_certificate) SetPem(value *string)() { + m.pem = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember4_certificateable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDer()(*string) + GetPem()(*string) + SetDer(value *string)() + SetPem(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member5.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member5.go new file mode 100644 index 0000000..809bcec --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member5.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember5 generic secret definition +type V1beta1SecretsPostRequestBodyMember1_secretMember5 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Generic secret properties + generic V1beta1SecretsPostRequestBodyMember1_secretMember5_genericable +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember5 instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember5 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember5()(*V1beta1SecretsPostRequestBodyMember1_secretMember5) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember5{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember5FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember5FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember5(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember5) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember5) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["generic"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember5_genericFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetGeneric(val.(V1beta1SecretsPostRequestBodyMember1_secretMember5_genericable)) + } + return nil + } + return res +} +// GetGeneric gets the generic property value. Generic secret properties +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember5_genericable when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember5) GetGeneric()(V1beta1SecretsPostRequestBodyMember1_secretMember5_genericable) { + return m.generic +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember5) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("generic", m.GetGeneric()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember5) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetGeneric sets the generic property value. Generic secret properties +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember5) SetGeneric(value V1beta1SecretsPostRequestBodyMember1_secretMember5_genericable)() { + m.generic = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember5able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetGeneric()(V1beta1SecretsPostRequestBodyMember1_secretMember5_genericable) + SetGeneric(value V1beta1SecretsPostRequestBodyMember1_secretMember5_genericable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member5_escaped_generic.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member5_escaped_generic.go new file mode 100644 index 0000000..a61a44f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member5_escaped_generic.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember5_generic generic secret properties +type V1beta1SecretsPostRequestBodyMember1_secretMember5_generic struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Generic secret value + secret *string +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember5_generic instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember5_generic and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember5_generic()(*V1beta1SecretsPostRequestBodyMember1_secretMember5_generic) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember5_generic{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember5_genericFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember5_genericFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember5_generic(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember5_generic) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember5_generic) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSecret(val) + } + return nil + } + return res +} +// GetSecret gets the secret property value. Generic secret value +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember5_generic) GetSecret()(*string) { + return m.secret +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember5_generic) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember5_generic) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetSecret sets the secret property value. Generic secret value +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember5_generic) SetSecret(value *string)() { + m.secret = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember5_genericable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSecret()(*string) + SetSecret(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member6.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member6.go new file mode 100644 index 0000000..e835767 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member6.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember6 jSON Web Token secret definition +type V1beta1SecretsPostRequestBodyMember1_secretMember6 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // JSON Web Token secret properties + jsonWebToken V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebTokenable +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember6 instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember6 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember6()(*V1beta1SecretsPostRequestBodyMember1_secretMember6) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember6{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember6FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember6FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember6(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember6) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember6) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["jsonWebToken"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebTokenFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetJsonWebToken(val.(V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebTokenable)) + } + return nil + } + return res +} +// GetJsonWebToken gets the jsonWebToken property value. JSON Web Token secret properties +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebTokenable when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember6) GetJsonWebToken()(V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebTokenable) { + return m.jsonWebToken +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember6) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("jsonWebToken", m.GetJsonWebToken()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember6) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetJsonWebToken sets the jsonWebToken property value. JSON Web Token secret properties +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember6) SetJsonWebToken(value V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebTokenable)() { + m.jsonWebToken = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember6able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetJsonWebToken()(V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebTokenable) + SetJsonWebToken(value V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebTokenable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member6_escaped_json_web_token.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member6_escaped_json_web_token.go new file mode 100644 index 0000000..13e59be --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member6_escaped_json_web_token.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebToken jSON Web Token secret properties +type V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebToken struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // JSON Web Token value + token *string +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebToken instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebToken and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebToken()(*V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebToken) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebToken{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebTokenFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebTokenFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebToken(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebToken) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebToken) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["token"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetToken(val) + } + return nil + } + return res +} +// GetToken gets the token property value. JSON Web Token value +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebToken) GetToken()(*string) { + return m.token +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebToken) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("token", m.GetToken()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebToken) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetToken sets the token property value. JSON Web Token value +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebToken) SetToken(value *string)() { + m.token = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember6_jsonWebTokenable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetToken()(*string) + SetToken(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member7.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member7.go new file mode 100644 index 0000000..d05b092 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member7.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember7 oAuth Client secret definition +type V1beta1SecretsPostRequestBodyMember1_secretMember7 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // OAuth Client secret properties + oauthClient V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClientable +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember7 instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember7 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember7()(*V1beta1SecretsPostRequestBodyMember1_secretMember7) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember7{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember7FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember7FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember7(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember7) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember7) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["oauthClient"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClientFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOauthClient(val.(V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClientable)) + } + return nil + } + return res +} +// GetOauthClient gets the oauthClient property value. OAuth Client secret properties +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClientable when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember7) GetOauthClient()(V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClientable) { + return m.oauthClient +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember7) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("oauthClient", m.GetOauthClient()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember7) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetOauthClient sets the oauthClient property value. OAuth Client secret properties +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember7) SetOauthClient(value V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClientable)() { + m.oauthClient = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember7able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOauthClient()(V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClientable) + SetOauthClient(value V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClientable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member7_escaped_oauth_client.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member7_escaped_oauth_client.go new file mode 100644 index 0000000..141d425 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member7_escaped_oauth_client.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient oAuth Client secret properties +type V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // OAuth Client ID + clientId *string + // OAuth Client secret + clientSecret *string +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient()(*V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClientFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClientFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetClientId gets the clientId property value. OAuth Client ID +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient) GetClientId()(*string) { + return m.clientId +} +// GetClientSecret gets the clientSecret property value. OAuth Client secret +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient) GetClientSecret()(*string) { + return m.clientSecret +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientId(val) + } + return nil + } + res["clientSecret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientSecret(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("clientId", m.GetClientId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("clientSecret", m.GetClientSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetClientId sets the clientId property value. OAuth Client ID +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient) SetClientId(value *string)() { + m.clientId = value +} +// SetClientSecret sets the clientSecret property value. OAuth Client secret +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClient) SetClientSecret(value *string)() { + m.clientSecret = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember7_oauthClientable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetClientId()(*string) + GetClientSecret()(*string) + SetClientId(value *string)() + SetClientSecret(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member8.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member8.go new file mode 100644 index 0000000..d105a7b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member8.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember8 password secret definition +type V1beta1SecretsPostRequestBodyMember1_secretMember8 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Password secret properties + password V1beta1SecretsPostRequestBodyMember1_secretMember8_passwordable +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember8 instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember8 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember8()(*V1beta1SecretsPostRequestBodyMember1_secretMember8) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember8{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember8FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember8FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember8(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember8) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember8) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember8_passwordFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPassword(val.(V1beta1SecretsPostRequestBodyMember1_secretMember8_passwordable)) + } + return nil + } + return res +} +// GetPassword gets the password property value. Password secret properties +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember8_passwordable when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember8) GetPassword()(V1beta1SecretsPostRequestBodyMember1_secretMember8_passwordable) { + return m.password +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember8) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("password", m.GetPassword()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember8) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPassword sets the password property value. Password secret properties +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember8) SetPassword(value V1beta1SecretsPostRequestBodyMember1_secretMember8_passwordable)() { + m.password = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember8able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPassword()(V1beta1SecretsPostRequestBodyMember1_secretMember8_passwordable) + SetPassword(value V1beta1SecretsPostRequestBodyMember1_secretMember8_passwordable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member8_escaped_password.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member8_escaped_password.go new file mode 100644 index 0000000..6a6777e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member8_escaped_password.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember8_password password secret properties +type V1beta1SecretsPostRequestBodyMember1_secretMember8_password struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Password value + password *string +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember8_password instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember8_password and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember8_password()(*V1beta1SecretsPostRequestBodyMember1_secretMember8_password) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember8_password{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember8_passwordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember8_passwordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember8_password(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember8_password) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember8_password) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPassword(val) + } + return nil + } + return res +} +// GetPassword gets the password property value. Password value +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember8_password) GetPassword()(*string) { + return m.password +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember8_password) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("password", m.GetPassword()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember8_password) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPassword sets the password property value. Password value +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember8_password) SetPassword(value *string)() { + m.password = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember8_passwordable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPassword()(*string) + SetPassword(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member9.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member9.go new file mode 100644 index 0000000..aa9cd5c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member9.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember9 private Key secret definition +type V1beta1SecretsPostRequestBodyMember1_secretMember9 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Private Key secret properties + privateKey V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKeyable +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember9 instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember9 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember9()(*V1beta1SecretsPostRequestBodyMember1_secretMember9) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember9{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember9FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember9FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember9(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember9) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember9) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["privateKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1_secretMember9_privateKeyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPrivateKey(val.(V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKeyable)) + } + return nil + } + return res +} +// GetPrivateKey gets the privateKey property value. Private Key secret properties +// returns a V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKeyable when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember9) GetPrivateKey()(V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKeyable) { + return m.privateKey +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember9) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("privateKey", m.GetPrivateKey()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember9) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPrivateKey sets the privateKey property value. Private Key secret properties +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember9) SetPrivateKey(value V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKeyable)() { + m.privateKey = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember9able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPrivateKey()(V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKeyable) + SetPrivateKey(value V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKeyable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member9_escaped_private_key.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member9_escaped_private_key.go new file mode 100644 index 0000000..1db5a94 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member1_escaped_secret_member9_escaped_private_key.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKey private Key secret properties +type V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKey struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Private Key (BASE64-encoded) + privateKey *string +} +// NewV1beta1SecretsPostRequestBodyMember1_secretMember9_privateKey instantiates a new V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKey and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember1_secretMember9_privateKey()(*V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKey) { + m := &V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKey{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember1_secretMember9_privateKeyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember1_secretMember9_privateKeyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember1_secretMember9_privateKey(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKey) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKey) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["privateKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPrivateKey(val) + } + return nil + } + return res +} +// GetPrivateKey gets the privateKey property value. Private Key (BASE64-encoded) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKey) GetPrivateKey()(*string) { + return m.privateKey +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKey) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("privateKey", m.GetPrivateKey()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKey) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPrivateKey sets the privateKey property value. Private Key (BASE64-encoded) +func (m *V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKey) SetPrivateKey(value *string)() { + m.privateKey = value +} +type V1beta1SecretsPostRequestBodyMember1_secretMember9_privateKeyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPrivateKey()(*string) + SetPrivateKey(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2.go new file mode 100644 index 0000000..33cfe7f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2.go @@ -0,0 +1,576 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2 secret Specification +type V1beta1SecretsPostRequestBodyMember2 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Description for the resource + description *string + // Groups to be associated with the resource + groups []string + // Consumer-defined label for the resource + label *string + // Key for resource lifecycle event messages + lifecycleEventKey *string + // Name of the resource + name *string + // Secret policy identifier + policy *string + // Secret properties definition + secret V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secretable + // Name of the service originating the resource + service *string +} +// V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret composed type wrapper for classes V1beta1SecretsPostRequestBodyMember2_secretMember10able, V1beta1SecretsPostRequestBodyMember2_secretMember1able, V1beta1SecretsPostRequestBodyMember2_secretMember2able, V1beta1SecretsPostRequestBodyMember2_secretMember3able, V1beta1SecretsPostRequestBodyMember2_secretMember4able, V1beta1SecretsPostRequestBodyMember2_secretMember5able, V1beta1SecretsPostRequestBodyMember2_secretMember6able, V1beta1SecretsPostRequestBodyMember2_secretMember7able, V1beta1SecretsPostRequestBodyMember2_secretMember8able, V1beta1SecretsPostRequestBodyMember2_secretMember9able +type V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret struct { + // Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember1able + v1beta1SecretsPostRequestBodyMember2_secretMember1 V1beta1SecretsPostRequestBodyMember2_secretMember1able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember10able + v1beta1SecretsPostRequestBodyMember2_secretMember10 V1beta1SecretsPostRequestBodyMember2_secretMember10able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember2able + v1beta1SecretsPostRequestBodyMember2_secretMember2 V1beta1SecretsPostRequestBodyMember2_secretMember2able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember3able + v1beta1SecretsPostRequestBodyMember2_secretMember3 V1beta1SecretsPostRequestBodyMember2_secretMember3able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember4able + v1beta1SecretsPostRequestBodyMember2_secretMember4 V1beta1SecretsPostRequestBodyMember2_secretMember4able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember5able + v1beta1SecretsPostRequestBodyMember2_secretMember5 V1beta1SecretsPostRequestBodyMember2_secretMember5able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember6able + v1beta1SecretsPostRequestBodyMember2_secretMember6 V1beta1SecretsPostRequestBodyMember2_secretMember6able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember7able + v1beta1SecretsPostRequestBodyMember2_secretMember7 V1beta1SecretsPostRequestBodyMember2_secretMember7able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember8able + v1beta1SecretsPostRequestBodyMember2_secretMember8 V1beta1SecretsPostRequestBodyMember2_secretMember8able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember9able + v1beta1SecretsPostRequestBodyMember2_secretMember9 V1beta1SecretsPostRequestBodyMember2_secretMember9able +} +// NewV1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret instantiates a new V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret()(*V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) { + m := &V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret{ + } + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secretFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secretFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + result := NewV1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret() + if parseNode != nil { + if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember1FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember2_secretMember1able); ok { + result.SetV1beta1SecretsPostRequestBodyMember2SecretMember1(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember10FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember2_secretMember10able); ok { + result.SetV1beta1SecretsPostRequestBodyMember2SecretMember10(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember2FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember2_secretMember2able); ok { + result.SetV1beta1SecretsPostRequestBodyMember2SecretMember2(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember3FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember2_secretMember3able); ok { + result.SetV1beta1SecretsPostRequestBodyMember2SecretMember3(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember4FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember2_secretMember4able); ok { + result.SetV1beta1SecretsPostRequestBodyMember2SecretMember4(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember5FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember2_secretMember5able); ok { + result.SetV1beta1SecretsPostRequestBodyMember2SecretMember5(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember6FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember2_secretMember6able); ok { + result.SetV1beta1SecretsPostRequestBodyMember2SecretMember6(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember7FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember2_secretMember7able); ok { + result.SetV1beta1SecretsPostRequestBodyMember2SecretMember7(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember8FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember2_secretMember8able); ok { + result.SetV1beta1SecretsPostRequestBodyMember2SecretMember8(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember9FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember2_secretMember9able); ok { + result.SetV1beta1SecretsPostRequestBodyMember2SecretMember9(cast) + } + } + } + return result, nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) +} +// GetIsComposedType determines if the current object is a wrapper around a composed type +// returns a bool when successful +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) GetIsComposedType()(bool) { + return true +} +// GetV1beta1SecretsPostRequestBodyMember2SecretMember1 gets the V1beta1SecretsPostRequestBodyMember2_secretMember1 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember1able +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember1able when successful +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) GetV1beta1SecretsPostRequestBodyMember2SecretMember1()(V1beta1SecretsPostRequestBodyMember2_secretMember1able) { + return m.v1beta1SecretsPostRequestBodyMember2_secretMember1 +} +// GetV1beta1SecretsPostRequestBodyMember2SecretMember10 gets the V1beta1SecretsPostRequestBodyMember2_secretMember10 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember10able +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember10able when successful +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) GetV1beta1SecretsPostRequestBodyMember2SecretMember10()(V1beta1SecretsPostRequestBodyMember2_secretMember10able) { + return m.v1beta1SecretsPostRequestBodyMember2_secretMember10 +} +// GetV1beta1SecretsPostRequestBodyMember2SecretMember2 gets the V1beta1SecretsPostRequestBodyMember2_secretMember2 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember2able +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember2able when successful +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) GetV1beta1SecretsPostRequestBodyMember2SecretMember2()(V1beta1SecretsPostRequestBodyMember2_secretMember2able) { + return m.v1beta1SecretsPostRequestBodyMember2_secretMember2 +} +// GetV1beta1SecretsPostRequestBodyMember2SecretMember3 gets the V1beta1SecretsPostRequestBodyMember2_secretMember3 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember3able +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember3able when successful +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) GetV1beta1SecretsPostRequestBodyMember2SecretMember3()(V1beta1SecretsPostRequestBodyMember2_secretMember3able) { + return m.v1beta1SecretsPostRequestBodyMember2_secretMember3 +} +// GetV1beta1SecretsPostRequestBodyMember2SecretMember4 gets the V1beta1SecretsPostRequestBodyMember2_secretMember4 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember4able +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember4able when successful +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) GetV1beta1SecretsPostRequestBodyMember2SecretMember4()(V1beta1SecretsPostRequestBodyMember2_secretMember4able) { + return m.v1beta1SecretsPostRequestBodyMember2_secretMember4 +} +// GetV1beta1SecretsPostRequestBodyMember2SecretMember5 gets the V1beta1SecretsPostRequestBodyMember2_secretMember5 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember5able +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember5able when successful +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) GetV1beta1SecretsPostRequestBodyMember2SecretMember5()(V1beta1SecretsPostRequestBodyMember2_secretMember5able) { + return m.v1beta1SecretsPostRequestBodyMember2_secretMember5 +} +// GetV1beta1SecretsPostRequestBodyMember2SecretMember6 gets the V1beta1SecretsPostRequestBodyMember2_secretMember6 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember6able +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember6able when successful +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) GetV1beta1SecretsPostRequestBodyMember2SecretMember6()(V1beta1SecretsPostRequestBodyMember2_secretMember6able) { + return m.v1beta1SecretsPostRequestBodyMember2_secretMember6 +} +// GetV1beta1SecretsPostRequestBodyMember2SecretMember7 gets the V1beta1SecretsPostRequestBodyMember2_secretMember7 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember7able +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember7able when successful +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) GetV1beta1SecretsPostRequestBodyMember2SecretMember7()(V1beta1SecretsPostRequestBodyMember2_secretMember7able) { + return m.v1beta1SecretsPostRequestBodyMember2_secretMember7 +} +// GetV1beta1SecretsPostRequestBodyMember2SecretMember8 gets the V1beta1SecretsPostRequestBodyMember2_secretMember8 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember8able +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember8able when successful +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) GetV1beta1SecretsPostRequestBodyMember2SecretMember8()(V1beta1SecretsPostRequestBodyMember2_secretMember8able) { + return m.v1beta1SecretsPostRequestBodyMember2_secretMember8 +} +// GetV1beta1SecretsPostRequestBodyMember2SecretMember9 gets the V1beta1SecretsPostRequestBodyMember2_secretMember9 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember9able +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember9able when successful +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) GetV1beta1SecretsPostRequestBodyMember2SecretMember9()(V1beta1SecretsPostRequestBodyMember2_secretMember9able) { + return m.v1beta1SecretsPostRequestBodyMember2_secretMember9 +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetV1beta1SecretsPostRequestBodyMember2SecretMember1() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember2SecretMember1()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember2SecretMember10() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember2SecretMember10()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember2SecretMember2() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember2SecretMember2()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember2SecretMember3() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember2SecretMember3()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember2SecretMember4() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember2SecretMember4()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember2SecretMember5() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember2SecretMember5()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember2SecretMember6() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember2SecretMember6()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember2SecretMember7() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember2SecretMember7()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember2SecretMember8() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember2SecretMember8()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember2SecretMember9() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember2SecretMember9()) + if err != nil { + return err + } + } + return nil +} +// SetV1beta1SecretsPostRequestBodyMember2SecretMember1 sets the V1beta1SecretsPostRequestBodyMember2_secretMember1 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember1able +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) SetV1beta1SecretsPostRequestBodyMember2SecretMember1(value V1beta1SecretsPostRequestBodyMember2_secretMember1able)() { + m.v1beta1SecretsPostRequestBodyMember2_secretMember1 = value +} +// SetV1beta1SecretsPostRequestBodyMember2SecretMember10 sets the V1beta1SecretsPostRequestBodyMember2_secretMember10 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember10able +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) SetV1beta1SecretsPostRequestBodyMember2SecretMember10(value V1beta1SecretsPostRequestBodyMember2_secretMember10able)() { + m.v1beta1SecretsPostRequestBodyMember2_secretMember10 = value +} +// SetV1beta1SecretsPostRequestBodyMember2SecretMember2 sets the V1beta1SecretsPostRequestBodyMember2_secretMember2 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember2able +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) SetV1beta1SecretsPostRequestBodyMember2SecretMember2(value V1beta1SecretsPostRequestBodyMember2_secretMember2able)() { + m.v1beta1SecretsPostRequestBodyMember2_secretMember2 = value +} +// SetV1beta1SecretsPostRequestBodyMember2SecretMember3 sets the V1beta1SecretsPostRequestBodyMember2_secretMember3 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember3able +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) SetV1beta1SecretsPostRequestBodyMember2SecretMember3(value V1beta1SecretsPostRequestBodyMember2_secretMember3able)() { + m.v1beta1SecretsPostRequestBodyMember2_secretMember3 = value +} +// SetV1beta1SecretsPostRequestBodyMember2SecretMember4 sets the V1beta1SecretsPostRequestBodyMember2_secretMember4 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember4able +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) SetV1beta1SecretsPostRequestBodyMember2SecretMember4(value V1beta1SecretsPostRequestBodyMember2_secretMember4able)() { + m.v1beta1SecretsPostRequestBodyMember2_secretMember4 = value +} +// SetV1beta1SecretsPostRequestBodyMember2SecretMember5 sets the V1beta1SecretsPostRequestBodyMember2_secretMember5 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember5able +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) SetV1beta1SecretsPostRequestBodyMember2SecretMember5(value V1beta1SecretsPostRequestBodyMember2_secretMember5able)() { + m.v1beta1SecretsPostRequestBodyMember2_secretMember5 = value +} +// SetV1beta1SecretsPostRequestBodyMember2SecretMember6 sets the V1beta1SecretsPostRequestBodyMember2_secretMember6 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember6able +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) SetV1beta1SecretsPostRequestBodyMember2SecretMember6(value V1beta1SecretsPostRequestBodyMember2_secretMember6able)() { + m.v1beta1SecretsPostRequestBodyMember2_secretMember6 = value +} +// SetV1beta1SecretsPostRequestBodyMember2SecretMember7 sets the V1beta1SecretsPostRequestBodyMember2_secretMember7 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember7able +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) SetV1beta1SecretsPostRequestBodyMember2SecretMember7(value V1beta1SecretsPostRequestBodyMember2_secretMember7able)() { + m.v1beta1SecretsPostRequestBodyMember2_secretMember7 = value +} +// SetV1beta1SecretsPostRequestBodyMember2SecretMember8 sets the V1beta1SecretsPostRequestBodyMember2_secretMember8 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember8able +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) SetV1beta1SecretsPostRequestBodyMember2SecretMember8(value V1beta1SecretsPostRequestBodyMember2_secretMember8able)() { + m.v1beta1SecretsPostRequestBodyMember2_secretMember8 = value +} +// SetV1beta1SecretsPostRequestBodyMember2SecretMember9 sets the V1beta1SecretsPostRequestBodyMember2_secretMember9 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2_secretMember9able +func (m *V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secret) SetV1beta1SecretsPostRequestBodyMember2SecretMember9(value V1beta1SecretsPostRequestBodyMember2_secretMember9able)() { + m.v1beta1SecretsPostRequestBodyMember2_secretMember9 = value +} +type V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secretable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetV1beta1SecretsPostRequestBodyMember2SecretMember1()(V1beta1SecretsPostRequestBodyMember2_secretMember1able) + GetV1beta1SecretsPostRequestBodyMember2SecretMember10()(V1beta1SecretsPostRequestBodyMember2_secretMember10able) + GetV1beta1SecretsPostRequestBodyMember2SecretMember2()(V1beta1SecretsPostRequestBodyMember2_secretMember2able) + GetV1beta1SecretsPostRequestBodyMember2SecretMember3()(V1beta1SecretsPostRequestBodyMember2_secretMember3able) + GetV1beta1SecretsPostRequestBodyMember2SecretMember4()(V1beta1SecretsPostRequestBodyMember2_secretMember4able) + GetV1beta1SecretsPostRequestBodyMember2SecretMember5()(V1beta1SecretsPostRequestBodyMember2_secretMember5able) + GetV1beta1SecretsPostRequestBodyMember2SecretMember6()(V1beta1SecretsPostRequestBodyMember2_secretMember6able) + GetV1beta1SecretsPostRequestBodyMember2SecretMember7()(V1beta1SecretsPostRequestBodyMember2_secretMember7able) + GetV1beta1SecretsPostRequestBodyMember2SecretMember8()(V1beta1SecretsPostRequestBodyMember2_secretMember8able) + GetV1beta1SecretsPostRequestBodyMember2SecretMember9()(V1beta1SecretsPostRequestBodyMember2_secretMember9able) + SetV1beta1SecretsPostRequestBodyMember2SecretMember1(value V1beta1SecretsPostRequestBodyMember2_secretMember1able)() + SetV1beta1SecretsPostRequestBodyMember2SecretMember10(value V1beta1SecretsPostRequestBodyMember2_secretMember10able)() + SetV1beta1SecretsPostRequestBodyMember2SecretMember2(value V1beta1SecretsPostRequestBodyMember2_secretMember2able)() + SetV1beta1SecretsPostRequestBodyMember2SecretMember3(value V1beta1SecretsPostRequestBodyMember2_secretMember3able)() + SetV1beta1SecretsPostRequestBodyMember2SecretMember4(value V1beta1SecretsPostRequestBodyMember2_secretMember4able)() + SetV1beta1SecretsPostRequestBodyMember2SecretMember5(value V1beta1SecretsPostRequestBodyMember2_secretMember5able)() + SetV1beta1SecretsPostRequestBodyMember2SecretMember6(value V1beta1SecretsPostRequestBodyMember2_secretMember6able)() + SetV1beta1SecretsPostRequestBodyMember2SecretMember7(value V1beta1SecretsPostRequestBodyMember2_secretMember7able)() + SetV1beta1SecretsPostRequestBodyMember2SecretMember8(value V1beta1SecretsPostRequestBodyMember2_secretMember8able)() + SetV1beta1SecretsPostRequestBodyMember2SecretMember9(value V1beta1SecretsPostRequestBodyMember2_secretMember9able)() +} +// NewV1beta1SecretsPostRequestBodyMember2 instantiates a new V1beta1SecretsPostRequestBodyMember2 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2()(*V1beta1SecretsPostRequestBodyMember2) { + m := &V1beta1SecretsPostRequestBodyMember2{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDescription gets the description property value. Description for the resource +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetGroups(res) + } + return nil + } + res["label"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLabel(val) + } + return nil + } + res["lifecycleEventKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLifecycleEventKey(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["policy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPolicy(val) + } + return nil + } + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secretFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecret(val.(V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secretable)) + } + return nil + } + res["service"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetService(val) + } + return nil + } + return res +} +// GetGroups gets the groups property value. Groups to be associated with the resource +// returns a []string when successful +func (m *V1beta1SecretsPostRequestBodyMember2) GetGroups()([]string) { + return m.groups +} +// GetLabel gets the label property value. Consumer-defined label for the resource +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2) GetLabel()(*string) { + return m.label +} +// GetLifecycleEventKey gets the lifecycleEventKey property value. Key for resource lifecycle event messages +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2) GetLifecycleEventKey()(*string) { + return m.lifecycleEventKey +} +// GetName gets the name property value. Name of the resource +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2) GetName()(*string) { + return m.name +} +// GetPolicy gets the policy property value. Secret policy identifier +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2) GetPolicy()(*string) { + return m.policy +} +// GetSecret gets the secret property value. Secret properties definition +// returns a V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secretable when successful +func (m *V1beta1SecretsPostRequestBodyMember2) GetSecret()(V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secretable) { + return m.secret +} +// GetService gets the service property value. Name of the service originating the resource +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2) GetService()(*string) { + return m.service +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + err := writer.WriteCollectionOfStringValues("groups", m.GetGroups()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("label", m.GetLabel()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("lifecycleEventKey", m.GetLifecycleEventKey()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("policy", m.GetPolicy()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("service", m.GetService()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDescription sets the description property value. Description for the resource +func (m *V1beta1SecretsPostRequestBodyMember2) SetDescription(value *string)() { + m.description = value +} +// SetGroups sets the groups property value. Groups to be associated with the resource +func (m *V1beta1SecretsPostRequestBodyMember2) SetGroups(value []string)() { + m.groups = value +} +// SetLabel sets the label property value. Consumer-defined label for the resource +func (m *V1beta1SecretsPostRequestBodyMember2) SetLabel(value *string)() { + m.label = value +} +// SetLifecycleEventKey sets the lifecycleEventKey property value. Key for resource lifecycle event messages +func (m *V1beta1SecretsPostRequestBodyMember2) SetLifecycleEventKey(value *string)() { + m.lifecycleEventKey = value +} +// SetName sets the name property value. Name of the resource +func (m *V1beta1SecretsPostRequestBodyMember2) SetName(value *string)() { + m.name = value +} +// SetPolicy sets the policy property value. Secret policy identifier +func (m *V1beta1SecretsPostRequestBodyMember2) SetPolicy(value *string)() { + m.policy = value +} +// SetSecret sets the secret property value. Secret properties definition +func (m *V1beta1SecretsPostRequestBodyMember2) SetSecret(value V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secretable)() { + m.secret = value +} +// SetService sets the service property value. Name of the service originating the resource +func (m *V1beta1SecretsPostRequestBodyMember2) SetService(value *string)() { + m.service = value +} +type V1beta1SecretsPostRequestBodyMember2able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDescription()(*string) + GetGroups()([]string) + GetLabel()(*string) + GetLifecycleEventKey()(*string) + GetName()(*string) + GetPolicy()(*string) + GetSecret()(V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secretable) + GetService()(*string) + SetDescription(value *string)() + SetGroups(value []string)() + SetLabel(value *string)() + SetLifecycleEventKey(value *string)() + SetName(value *string)() + SetPolicy(value *string)() + SetSecret(value V1beta1SecretsPostRequestBodyMember2_SecretsPostRequestBodyMember2_secretable)() + SetService(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member1.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member1.go new file mode 100644 index 0000000..9b72c43 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member1.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember1 azure Service Principal client secret definition +type V1beta1SecretsPostRequestBodyMember2_secretMember1 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Azure Service Principal client secret properties + azureSPClient V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClientable +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember1 instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember1 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember1()(*V1beta1SecretsPostRequestBodyMember2_secretMember1) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember1{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember1FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember1FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember1(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAzureSPClient gets the azureSPClient property value. Azure Service Principal client secret properties +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClientable when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1) GetAzureSPClient()(V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClientable) { + return m.azureSPClient +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["azureSPClient"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClientFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAzureSPClient(val.(V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClientable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("azureSPClient", m.GetAzureSPClient()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAzureSPClient sets the azureSPClient property value. Azure Service Principal client secret properties +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1) SetAzureSPClient(value V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClientable)() { + m.azureSPClient = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember1able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAzureSPClient()(V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClientable) + SetAzureSPClient(value V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClientable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member10.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member10.go new file mode 100644 index 0000000..ebc3237 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member10.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember10 sSH Key Pair secret definition +type V1beta1SecretsPostRequestBodyMember2_secretMember10 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // SSH Key Pair secret properties + sshKeypair V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypairable +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember10 instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember10 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember10()(*V1beta1SecretsPostRequestBodyMember2_secretMember10) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember10{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember10FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember10FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember10(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember10) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember10) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["sshKeypair"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypairFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSshKeypair(val.(V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypairable)) + } + return nil + } + return res +} +// GetSshKeypair gets the sshKeypair property value. SSH Key Pair secret properties +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypairable when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember10) GetSshKeypair()(V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypairable) { + return m.sshKeypair +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember10) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("sshKeypair", m.GetSshKeypair()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember10) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetSshKeypair sets the sshKeypair property value. SSH Key Pair secret properties +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember10) SetSshKeypair(value V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypairable)() { + m.sshKeypair = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember10able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSshKeypair()(V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypairable) + SetSshKeypair(value V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypairable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member10_escaped_ssh_keypair.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member10_escaped_ssh_keypair.go new file mode 100644 index 0000000..43fa46b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member10_escaped_ssh_keypair.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair sSH Key Pair secret properties +type V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Private Key (BASE64-encoded) + privateKey *string + // Public Key (BASE64-encoded) + publicKey *string +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair()(*V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypairFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypairFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["privateKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPrivateKey(val) + } + return nil + } + res["publicKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPublicKey(val) + } + return nil + } + return res +} +// GetPrivateKey gets the privateKey property value. Private Key (BASE64-encoded) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair) GetPrivateKey()(*string) { + return m.privateKey +} +// GetPublicKey gets the publicKey property value. Public Key (BASE64-encoded) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair) GetPublicKey()(*string) { + return m.publicKey +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("privateKey", m.GetPrivateKey()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("publicKey", m.GetPublicKey()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPrivateKey sets the privateKey property value. Private Key (BASE64-encoded) +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair) SetPrivateKey(value *string)() { + m.privateKey = value +} +// SetPublicKey sets the publicKey property value. Public Key (BASE64-encoded) +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypair) SetPublicKey(value *string)() { + m.publicKey = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember10_sshKeypairable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPrivateKey()(*string) + GetPublicKey()(*string) + SetPrivateKey(value *string)() + SetPublicKey(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member1_escaped_azure_s_p_client.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member1_escaped_azure_s_p_client.go new file mode 100644 index 0000000..8943a0f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member1_escaped_azure_s_p_client.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient azure Service Principal client secret properties +type V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Azure Service Principal client ID (aka application ID) + clientId *string + // Azure Service Principal client secret + clientSecret *string + // Azure Service Principal tenant ID (aka directory ID) + tenantId *string +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient()(*V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClientFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClientFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetClientId gets the clientId property value. Azure Service Principal client ID (aka application ID) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient) GetClientId()(*string) { + return m.clientId +} +// GetClientSecret gets the clientSecret property value. Azure Service Principal client secret +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient) GetClientSecret()(*string) { + return m.clientSecret +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientId(val) + } + return nil + } + res["clientSecret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientSecret(val) + } + return nil + } + res["tenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTenantId(val) + } + return nil + } + return res +} +// GetTenantId gets the tenantId property value. Azure Service Principal tenant ID (aka directory ID) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient) GetTenantId()(*string) { + return m.tenantId +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("clientId", m.GetClientId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("clientSecret", m.GetClientSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("tenantId", m.GetTenantId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetClientId sets the clientId property value. Azure Service Principal client ID (aka application ID) +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient) SetClientId(value *string)() { + m.clientId = value +} +// SetClientSecret sets the clientSecret property value. Azure Service Principal client secret +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient) SetClientSecret(value *string)() { + m.clientSecret = value +} +// SetTenantId sets the tenantId property value. Azure Service Principal tenant ID (aka directory ID) +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClient) SetTenantId(value *string)() { + m.tenantId = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember1_azureSPClientable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetClientId()(*string) + GetClientSecret()(*string) + GetTenantId()(*string) + SetClientId(value *string)() + SetClientSecret(value *string)() + SetTenantId(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member2.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member2.go new file mode 100644 index 0000000..8b42884 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member2.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember2 basic Access Authentication secret definition +type V1beta1SecretsPostRequestBodyMember2_secretMember2 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Basic Access Authentication secret properties + basicAuth V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuthable +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember2 instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember2 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember2()(*V1beta1SecretsPostRequestBodyMember2_secretMember2) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember2{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember2(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember2) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetBasicAuth gets the basicAuth property value. Basic Access Authentication secret properties +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuthable when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember2) GetBasicAuth()(V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuthable) { + return m.basicAuth +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["basicAuth"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuthFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBasicAuth(val.(V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuthable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("basicAuth", m.GetBasicAuth()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember2) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetBasicAuth sets the basicAuth property value. Basic Access Authentication secret properties +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember2) SetBasicAuth(value V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuthable)() { + m.basicAuth = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember2able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBasicAuth()(V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuthable) + SetBasicAuth(value V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuthable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member2_escaped_basic_auth.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member2_escaped_basic_auth.go new file mode 100644 index 0000000..04a2f0c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member2_escaped_basic_auth.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth basic Access Authentication secret properties +type V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Password or passphrase + password *string + // Username or user ID + username *string +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth()(*V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuthFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuthFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPassword(val) + } + return nil + } + res["username"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUsername(val) + } + return nil + } + return res +} +// GetPassword gets the password property value. Password or passphrase +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth) GetPassword()(*string) { + return m.password +} +// GetUsername gets the username property value. Username or user ID +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth) GetUsername()(*string) { + return m.username +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("password", m.GetPassword()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("username", m.GetUsername()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPassword sets the password property value. Password or passphrase +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth) SetPassword(value *string)() { + m.password = value +} +// SetUsername sets the username property value. Username or user ID +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuth) SetUsername(value *string)() { + m.username = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember2_basicAuthable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPassword()(*string) + GetUsername()(*string) + SetPassword(value *string)() + SetUsername(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member3.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member3.go new file mode 100644 index 0000000..a5a6dce --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member3.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember3 bearer Token Authentication secret definition +type V1beta1SecretsPostRequestBodyMember2_secretMember3 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Bearer Token Authentication secret properties + bearerAuth V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuthable +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember3 instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember3 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember3()(*V1beta1SecretsPostRequestBodyMember2_secretMember3) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember3{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember3FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember3FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember3(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember3) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetBearerAuth gets the bearerAuth property value. Bearer Token Authentication secret properties +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuthable when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember3) GetBearerAuth()(V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuthable) { + return m.bearerAuth +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember3) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["bearerAuth"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuthFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBearerAuth(val.(V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuthable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember3) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("bearerAuth", m.GetBearerAuth()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember3) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetBearerAuth sets the bearerAuth property value. Bearer Token Authentication secret properties +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember3) SetBearerAuth(value V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuthable)() { + m.bearerAuth = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember3able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBearerAuth()(V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuthable) + SetBearerAuth(value V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuthable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member3_escaped_bearer_auth.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member3_escaped_bearer_auth.go new file mode 100644 index 0000000..d6a9524 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member3_escaped_bearer_auth.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuth bearer Token Authentication secret properties +type V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuth struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Token (e.g. JWT) + token *string +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuth instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuth and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuth()(*V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuth) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuth{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuthFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuthFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuth(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuth) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuth) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["token"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetToken(val) + } + return nil + } + return res +} +// GetToken gets the token property value. Token (e.g. JWT) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuth) GetToken()(*string) { + return m.token +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuth) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("token", m.GetToken()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuth) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetToken sets the token property value. Token (e.g. JWT) +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuth) SetToken(value *string)() { + m.token = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember3_bearerAuthable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetToken()(*string) + SetToken(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member4.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member4.go new file mode 100644 index 0000000..3174247 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member4.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember4 certificate secret definition +type V1beta1SecretsPostRequestBodyMember2_secretMember4 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Certificate secret properties + certificate V1beta1SecretsPostRequestBodyMember2_secretMember4_certificateable +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember4 instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember4 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember4()(*V1beta1SecretsPostRequestBodyMember2_secretMember4) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember4{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember4FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember4FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember4(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember4) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCertificate gets the certificate property value. Certificate secret properties +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember4_certificateable when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember4) GetCertificate()(V1beta1SecretsPostRequestBodyMember2_secretMember4_certificateable) { + return m.certificate +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember4) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["certificate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember4_certificateFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCertificate(val.(V1beta1SecretsPostRequestBodyMember2_secretMember4_certificateable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember4) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("certificate", m.GetCertificate()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember4) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCertificate sets the certificate property value. Certificate secret properties +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember4) SetCertificate(value V1beta1SecretsPostRequestBodyMember2_secretMember4_certificateable)() { + m.certificate = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember4able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCertificate()(V1beta1SecretsPostRequestBodyMember2_secretMember4_certificateable) + SetCertificate(value V1beta1SecretsPostRequestBodyMember2_secretMember4_certificateable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member4_escaped_certificate.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member4_escaped_certificate.go new file mode 100644 index 0000000..e6a4e1c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member4_escaped_certificate.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember4_certificate certificate secret properties +type V1beta1SecretsPostRequestBodyMember2_secretMember4_certificate struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Distinguished Encoding Rules (DER) (BASE64-encoded) + der *string + // Privacy-Enhanced Mail (PEM) (BASE64-encoded) + pem *string +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember4_certificate instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember4_certificate and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember4_certificate()(*V1beta1SecretsPostRequestBodyMember2_secretMember4_certificate) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember4_certificate{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember4_certificateFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember4_certificateFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember4_certificate(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember4_certificate) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDer gets the der property value. Distinguished Encoding Rules (DER) (BASE64-encoded) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember4_certificate) GetDer()(*string) { + return m.der +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember4_certificate) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["der"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDer(val) + } + return nil + } + res["pem"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPem(val) + } + return nil + } + return res +} +// GetPem gets the pem property value. Privacy-Enhanced Mail (PEM) (BASE64-encoded) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember4_certificate) GetPem()(*string) { + return m.pem +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember4_certificate) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("der", m.GetDer()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("pem", m.GetPem()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember4_certificate) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDer sets the der property value. Distinguished Encoding Rules (DER) (BASE64-encoded) +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember4_certificate) SetDer(value *string)() { + m.der = value +} +// SetPem sets the pem property value. Privacy-Enhanced Mail (PEM) (BASE64-encoded) +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember4_certificate) SetPem(value *string)() { + m.pem = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember4_certificateable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDer()(*string) + GetPem()(*string) + SetDer(value *string)() + SetPem(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member5.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member5.go new file mode 100644 index 0000000..24a8e15 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member5.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember5 generic secret definition +type V1beta1SecretsPostRequestBodyMember2_secretMember5 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Generic secret properties + generic V1beta1SecretsPostRequestBodyMember2_secretMember5_genericable +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember5 instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember5 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember5()(*V1beta1SecretsPostRequestBodyMember2_secretMember5) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember5{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember5FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember5FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember5(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember5) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember5) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["generic"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember5_genericFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetGeneric(val.(V1beta1SecretsPostRequestBodyMember2_secretMember5_genericable)) + } + return nil + } + return res +} +// GetGeneric gets the generic property value. Generic secret properties +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember5_genericable when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember5) GetGeneric()(V1beta1SecretsPostRequestBodyMember2_secretMember5_genericable) { + return m.generic +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember5) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("generic", m.GetGeneric()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember5) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetGeneric sets the generic property value. Generic secret properties +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember5) SetGeneric(value V1beta1SecretsPostRequestBodyMember2_secretMember5_genericable)() { + m.generic = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember5able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetGeneric()(V1beta1SecretsPostRequestBodyMember2_secretMember5_genericable) + SetGeneric(value V1beta1SecretsPostRequestBodyMember2_secretMember5_genericable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member5_escaped_generic.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member5_escaped_generic.go new file mode 100644 index 0000000..d657545 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member5_escaped_generic.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember5_generic generic secret properties +type V1beta1SecretsPostRequestBodyMember2_secretMember5_generic struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Generic secret value + secret *string +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember5_generic instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember5_generic and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember5_generic()(*V1beta1SecretsPostRequestBodyMember2_secretMember5_generic) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember5_generic{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember5_genericFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember5_genericFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember5_generic(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember5_generic) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember5_generic) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSecret(val) + } + return nil + } + return res +} +// GetSecret gets the secret property value. Generic secret value +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember5_generic) GetSecret()(*string) { + return m.secret +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember5_generic) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember5_generic) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetSecret sets the secret property value. Generic secret value +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember5_generic) SetSecret(value *string)() { + m.secret = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember5_genericable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSecret()(*string) + SetSecret(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member6.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member6.go new file mode 100644 index 0000000..f99af4a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member6.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember6 jSON Web Token secret definition +type V1beta1SecretsPostRequestBodyMember2_secretMember6 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // JSON Web Token secret properties + jsonWebToken V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebTokenable +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember6 instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember6 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember6()(*V1beta1SecretsPostRequestBodyMember2_secretMember6) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember6{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember6FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember6FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember6(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember6) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember6) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["jsonWebToken"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebTokenFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetJsonWebToken(val.(V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebTokenable)) + } + return nil + } + return res +} +// GetJsonWebToken gets the jsonWebToken property value. JSON Web Token secret properties +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebTokenable when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember6) GetJsonWebToken()(V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebTokenable) { + return m.jsonWebToken +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember6) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("jsonWebToken", m.GetJsonWebToken()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember6) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetJsonWebToken sets the jsonWebToken property value. JSON Web Token secret properties +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember6) SetJsonWebToken(value V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebTokenable)() { + m.jsonWebToken = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember6able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetJsonWebToken()(V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebTokenable) + SetJsonWebToken(value V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebTokenable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member6_escaped_json_web_token.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member6_escaped_json_web_token.go new file mode 100644 index 0000000..c3c94a5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member6_escaped_json_web_token.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebToken jSON Web Token secret properties +type V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebToken struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // JSON Web Token value + token *string +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebToken instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebToken and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebToken()(*V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebToken) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebToken{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebTokenFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebTokenFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebToken(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebToken) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebToken) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["token"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetToken(val) + } + return nil + } + return res +} +// GetToken gets the token property value. JSON Web Token value +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebToken) GetToken()(*string) { + return m.token +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebToken) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("token", m.GetToken()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebToken) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetToken sets the token property value. JSON Web Token value +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebToken) SetToken(value *string)() { + m.token = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember6_jsonWebTokenable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetToken()(*string) + SetToken(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member7.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member7.go new file mode 100644 index 0000000..6a598e5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member7.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember7 oAuth Client secret definition +type V1beta1SecretsPostRequestBodyMember2_secretMember7 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // OAuth Client secret properties + oauthClient V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClientable +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember7 instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember7 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember7()(*V1beta1SecretsPostRequestBodyMember2_secretMember7) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember7{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember7FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember7FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember7(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember7) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember7) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["oauthClient"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClientFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOauthClient(val.(V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClientable)) + } + return nil + } + return res +} +// GetOauthClient gets the oauthClient property value. OAuth Client secret properties +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClientable when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember7) GetOauthClient()(V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClientable) { + return m.oauthClient +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember7) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("oauthClient", m.GetOauthClient()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember7) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetOauthClient sets the oauthClient property value. OAuth Client secret properties +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember7) SetOauthClient(value V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClientable)() { + m.oauthClient = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember7able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOauthClient()(V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClientable) + SetOauthClient(value V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClientable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member7_escaped_oauth_client.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member7_escaped_oauth_client.go new file mode 100644 index 0000000..f9deda6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member7_escaped_oauth_client.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient oAuth Client secret properties +type V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // OAuth Client ID + clientId *string + // OAuth Client secret + clientSecret *string +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient()(*V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClientFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClientFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetClientId gets the clientId property value. OAuth Client ID +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient) GetClientId()(*string) { + return m.clientId +} +// GetClientSecret gets the clientSecret property value. OAuth Client secret +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient) GetClientSecret()(*string) { + return m.clientSecret +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientId(val) + } + return nil + } + res["clientSecret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientSecret(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("clientId", m.GetClientId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("clientSecret", m.GetClientSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetClientId sets the clientId property value. OAuth Client ID +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient) SetClientId(value *string)() { + m.clientId = value +} +// SetClientSecret sets the clientSecret property value. OAuth Client secret +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClient) SetClientSecret(value *string)() { + m.clientSecret = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember7_oauthClientable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetClientId()(*string) + GetClientSecret()(*string) + SetClientId(value *string)() + SetClientSecret(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member8.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member8.go new file mode 100644 index 0000000..2da7479 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member8.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember8 password secret definition +type V1beta1SecretsPostRequestBodyMember2_secretMember8 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Password secret properties + password V1beta1SecretsPostRequestBodyMember2_secretMember8_passwordable +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember8 instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember8 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember8()(*V1beta1SecretsPostRequestBodyMember2_secretMember8) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember8{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember8FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember8FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember8(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember8) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember8) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember8_passwordFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPassword(val.(V1beta1SecretsPostRequestBodyMember2_secretMember8_passwordable)) + } + return nil + } + return res +} +// GetPassword gets the password property value. Password secret properties +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember8_passwordable when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember8) GetPassword()(V1beta1SecretsPostRequestBodyMember2_secretMember8_passwordable) { + return m.password +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember8) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("password", m.GetPassword()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember8) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPassword sets the password property value. Password secret properties +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember8) SetPassword(value V1beta1SecretsPostRequestBodyMember2_secretMember8_passwordable)() { + m.password = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember8able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPassword()(V1beta1SecretsPostRequestBodyMember2_secretMember8_passwordable) + SetPassword(value V1beta1SecretsPostRequestBodyMember2_secretMember8_passwordable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member8_escaped_password.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member8_escaped_password.go new file mode 100644 index 0000000..27310a6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member8_escaped_password.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember8_password password secret properties +type V1beta1SecretsPostRequestBodyMember2_secretMember8_password struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Password value + password *string +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember8_password instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember8_password and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember8_password()(*V1beta1SecretsPostRequestBodyMember2_secretMember8_password) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember8_password{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember8_passwordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember8_passwordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember8_password(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember8_password) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember8_password) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPassword(val) + } + return nil + } + return res +} +// GetPassword gets the password property value. Password value +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember8_password) GetPassword()(*string) { + return m.password +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember8_password) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("password", m.GetPassword()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember8_password) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPassword sets the password property value. Password value +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember8_password) SetPassword(value *string)() { + m.password = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember8_passwordable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPassword()(*string) + SetPassword(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member9.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member9.go new file mode 100644 index 0000000..2ff7a32 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member9.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember9 private Key secret definition +type V1beta1SecretsPostRequestBodyMember2_secretMember9 struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Private Key secret properties + privateKey V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKeyable +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember9 instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember9 and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember9()(*V1beta1SecretsPostRequestBodyMember2_secretMember9) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember9{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember9FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember9FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember9(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember9) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember9) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["privateKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2_secretMember9_privateKeyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPrivateKey(val.(V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKeyable)) + } + return nil + } + return res +} +// GetPrivateKey gets the privateKey property value. Private Key secret properties +// returns a V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKeyable when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember9) GetPrivateKey()(V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKeyable) { + return m.privateKey +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember9) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("privateKey", m.GetPrivateKey()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember9) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPrivateKey sets the privateKey property value. Private Key secret properties +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember9) SetPrivateKey(value V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKeyable)() { + m.privateKey = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember9able interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPrivateKey()(V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKeyable) + SetPrivateKey(value V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKeyable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member9_escaped_private_key.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member9_escaped_private_key.go new file mode 100644 index 0000000..6372970 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_request_body_member2_escaped_secret_member9_escaped_private_key.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKey private Key secret properties +type V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKey struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Private Key (BASE64-encoded) + privateKey *string +} +// NewV1beta1SecretsPostRequestBodyMember2_secretMember9_privateKey instantiates a new V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKey and sets the default values. +func NewV1beta1SecretsPostRequestBodyMember2_secretMember9_privateKey()(*V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKey) { + m := &V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKey{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostRequestBodyMember2_secretMember9_privateKeyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostRequestBodyMember2_secretMember9_privateKeyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostRequestBodyMember2_secretMember9_privateKey(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKey) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKey) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["privateKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPrivateKey(val) + } + return nil + } + return res +} +// GetPrivateKey gets the privateKey property value. Private Key (BASE64-encoded) +// returns a *string when successful +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKey) GetPrivateKey()(*string) { + return m.privateKey +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKey) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("privateKey", m.GetPrivateKey()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKey) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetPrivateKey sets the privateKey property value. Private Key (BASE64-encoded) +func (m *V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKey) SetPrivateKey(value *string)() { + m.privateKey = value +} +type V1beta1SecretsPostRequestBodyMember2_secretMember9_privateKeyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPrivateKey()(*string) + SetPrivateKey(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response.go new file mode 100644 index 0000000..56591f2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response.go @@ -0,0 +1,617 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostResponse secret Resource Definition +type V1beta1SecretsPostResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Count of associated assignment resources + assignmentsCount *int32 + // Resource classifier definition + classifier V1beta1SecretsPostResponse_classifierable + // Timestamp of the resource creation + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Identifier of the customer owning the resource + customerId *string + // Resource domain definition + domain V1beta1SecretsPostResponse_domainable + // Update generation number + generation *int32 + // Groups associated with the resource + groups []V1beta1SecretsPostResponse_groupsable + // Identifier of the resource + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Consumer-defined label of the resource + label *string + // Name of the resource + name *string + // Secret properties conformant policy + policy *string + // Reference of the prototype resource + prototype V1beta1SecretsPostResponse_prototypeable + // URI of the resource + resourceUri *string + // Name of the service originating the resource + service *string + // Status of the resource + status *string + // Timestamp of the last status update + statusUpdatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Resource subclassifier definition + subclassifier V1beta1SecretsPostResponse_subclassifierable + // Type of the resource + typeEscaped *string + // Timestamp of the last resource update + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1SecretsPostResponse instantiates a new V1beta1SecretsPostResponse and sets the default values. +func NewV1beta1SecretsPostResponse()(*V1beta1SecretsPostResponse) { + m := &V1beta1SecretsPostResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAssignmentsCount gets the assignmentsCount property value. Count of associated assignment resources +// returns a *int32 when successful +func (m *V1beta1SecretsPostResponse) GetAssignmentsCount()(*int32) { + return m.assignmentsCount +} +// GetClassifier gets the classifier property value. Resource classifier definition +// returns a V1beta1SecretsPostResponse_classifierable when successful +func (m *V1beta1SecretsPostResponse) GetClassifier()(V1beta1SecretsPostResponse_classifierable) { + return m.classifier +} +// GetCreatedAt gets the createdAt property value. Timestamp of the resource creation +// returns a *Time when successful +func (m *V1beta1SecretsPostResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. Identifier of the customer owning the resource +// returns a *string when successful +func (m *V1beta1SecretsPostResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDomain gets the domain property value. Resource domain definition +// returns a V1beta1SecretsPostResponse_domainable when successful +func (m *V1beta1SecretsPostResponse) GetDomain()(V1beta1SecretsPostResponse_domainable) { + return m.domain +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["assignmentsCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetAssignmentsCount(val) + } + return nil + } + res["classifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostResponse_classifierFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetClassifier(val.(V1beta1SecretsPostResponse_classifierable)) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["domain"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostResponse_domainFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetDomain(val.(V1beta1SecretsPostResponse_domainable)) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SecretsPostResponse_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SecretsPostResponse_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SecretsPostResponse_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["label"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLabel(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["policy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPolicy(val) + } + return nil + } + res["prototype"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostResponse_prototypeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPrototype(val.(V1beta1SecretsPostResponse_prototypeable)) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["service"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetService(val) + } + return nil + } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStatus(val) + } + return nil + } + res["statusUpdatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStatusUpdatedAt(val) + } + return nil + } + res["subclassifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostResponse_subclassifierFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSubclassifier(val.(V1beta1SecretsPostResponse_subclassifierable)) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. Update generation number +// returns a *int32 when successful +func (m *V1beta1SecretsPostResponse) GetGeneration()(*int32) { + return m.generation +} +// GetGroups gets the groups property value. Groups associated with the resource +// returns a []V1beta1SecretsPostResponse_groupsable when successful +func (m *V1beta1SecretsPostResponse) GetGroups()([]V1beta1SecretsPostResponse_groupsable) { + return m.groups +} +// GetId gets the id property value. Identifier of the resource +// returns a *UUID when successful +func (m *V1beta1SecretsPostResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetLabel gets the label property value. Consumer-defined label of the resource +// returns a *string when successful +func (m *V1beta1SecretsPostResponse) GetLabel()(*string) { + return m.label +} +// GetName gets the name property value. Name of the resource +// returns a *string when successful +func (m *V1beta1SecretsPostResponse) GetName()(*string) { + return m.name +} +// GetPolicy gets the policy property value. Secret properties conformant policy +// returns a *string when successful +func (m *V1beta1SecretsPostResponse) GetPolicy()(*string) { + return m.policy +} +// GetPrototype gets the prototype property value. Reference of the prototype resource +// returns a V1beta1SecretsPostResponse_prototypeable when successful +func (m *V1beta1SecretsPostResponse) GetPrototype()(V1beta1SecretsPostResponse_prototypeable) { + return m.prototype +} +// GetResourceUri gets the resourceUri property value. URI of the resource +// returns a *string when successful +func (m *V1beta1SecretsPostResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetService gets the service property value. Name of the service originating the resource +// returns a *string when successful +func (m *V1beta1SecretsPostResponse) GetService()(*string) { + return m.service +} +// GetStatus gets the status property value. Status of the resource +// returns a *string when successful +func (m *V1beta1SecretsPostResponse) GetStatus()(*string) { + return m.status +} +// GetStatusUpdatedAt gets the statusUpdatedAt property value. Timestamp of the last status update +// returns a *Time when successful +func (m *V1beta1SecretsPostResponse) GetStatusUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.statusUpdatedAt +} +// GetSubclassifier gets the subclassifier property value. Resource subclassifier definition +// returns a V1beta1SecretsPostResponse_subclassifierable when successful +func (m *V1beta1SecretsPostResponse) GetSubclassifier()(V1beta1SecretsPostResponse_subclassifierable) { + return m.subclassifier +} +// GetTypeEscaped gets the type property value. Type of the resource +// returns a *string when successful +func (m *V1beta1SecretsPostResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. Timestamp of the last resource update +// returns a *Time when successful +func (m *V1beta1SecretsPostResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("assignmentsCount", m.GetAssignmentsCount()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("classifier", m.GetClassifier()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("customerId", m.GetCustomerId()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("domain", m.GetDomain()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("generation", m.GetGeneration()) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("label", m.GetLabel()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("policy", m.GetPolicy()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("prototype", m.GetPrototype()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("service", m.GetService()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("status", m.GetStatus()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("statusUpdatedAt", m.GetStatusUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("subclassifier", m.GetSubclassifier()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAssignmentsCount sets the assignmentsCount property value. Count of associated assignment resources +func (m *V1beta1SecretsPostResponse) SetAssignmentsCount(value *int32)() { + m.assignmentsCount = value +} +// SetClassifier sets the classifier property value. Resource classifier definition +func (m *V1beta1SecretsPostResponse) SetClassifier(value V1beta1SecretsPostResponse_classifierable)() { + m.classifier = value +} +// SetCreatedAt sets the createdAt property value. Timestamp of the resource creation +func (m *V1beta1SecretsPostResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. Identifier of the customer owning the resource +func (m *V1beta1SecretsPostResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDomain sets the domain property value. Resource domain definition +func (m *V1beta1SecretsPostResponse) SetDomain(value V1beta1SecretsPostResponse_domainable)() { + m.domain = value +} +// SetGeneration sets the generation property value. Update generation number +func (m *V1beta1SecretsPostResponse) SetGeneration(value *int32)() { + m.generation = value +} +// SetGroups sets the groups property value. Groups associated with the resource +func (m *V1beta1SecretsPostResponse) SetGroups(value []V1beta1SecretsPostResponse_groupsable)() { + m.groups = value +} +// SetId sets the id property value. Identifier of the resource +func (m *V1beta1SecretsPostResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetLabel sets the label property value. Consumer-defined label of the resource +func (m *V1beta1SecretsPostResponse) SetLabel(value *string)() { + m.label = value +} +// SetName sets the name property value. Name of the resource +func (m *V1beta1SecretsPostResponse) SetName(value *string)() { + m.name = value +} +// SetPolicy sets the policy property value. Secret properties conformant policy +func (m *V1beta1SecretsPostResponse) SetPolicy(value *string)() { + m.policy = value +} +// SetPrototype sets the prototype property value. Reference of the prototype resource +func (m *V1beta1SecretsPostResponse) SetPrototype(value V1beta1SecretsPostResponse_prototypeable)() { + m.prototype = value +} +// SetResourceUri sets the resourceUri property value. URI of the resource +func (m *V1beta1SecretsPostResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetService sets the service property value. Name of the service originating the resource +func (m *V1beta1SecretsPostResponse) SetService(value *string)() { + m.service = value +} +// SetStatus sets the status property value. Status of the resource +func (m *V1beta1SecretsPostResponse) SetStatus(value *string)() { + m.status = value +} +// SetStatusUpdatedAt sets the statusUpdatedAt property value. Timestamp of the last status update +func (m *V1beta1SecretsPostResponse) SetStatusUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.statusUpdatedAt = value +} +// SetSubclassifier sets the subclassifier property value. Resource subclassifier definition +func (m *V1beta1SecretsPostResponse) SetSubclassifier(value V1beta1SecretsPostResponse_subclassifierable)() { + m.subclassifier = value +} +// SetTypeEscaped sets the type property value. Type of the resource +func (m *V1beta1SecretsPostResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. Timestamp of the last resource update +func (m *V1beta1SecretsPostResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1SecretsPostResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAssignmentsCount()(*int32) + GetClassifier()(V1beta1SecretsPostResponse_classifierable) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDomain()(V1beta1SecretsPostResponse_domainable) + GetGeneration()(*int32) + GetGroups()([]V1beta1SecretsPostResponse_groupsable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLabel()(*string) + GetName()(*string) + GetPolicy()(*string) + GetPrototype()(V1beta1SecretsPostResponse_prototypeable) + GetResourceUri()(*string) + GetService()(*string) + GetStatus()(*string) + GetStatusUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetSubclassifier()(V1beta1SecretsPostResponse_subclassifierable) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetAssignmentsCount(value *int32)() + SetClassifier(value V1beta1SecretsPostResponse_classifierable)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDomain(value V1beta1SecretsPostResponse_domainable)() + SetGeneration(value *int32)() + SetGroups(value []V1beta1SecretsPostResponse_groupsable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLabel(value *string)() + SetName(value *string)() + SetPolicy(value *string)() + SetPrototype(value V1beta1SecretsPostResponse_prototypeable)() + SetResourceUri(value *string)() + SetService(value *string)() + SetStatus(value *string)() + SetStatusUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetSubclassifier(value V1beta1SecretsPostResponse_subclassifierable)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_classifier.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_classifier.go new file mode 100644 index 0000000..975e358 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_classifier.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostResponse_classifier resource Classifier Definition (e.g. SECRET) +type V1beta1SecretsPostResponse_classifier struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the resource classifier + name *string +} +// NewV1beta1SecretsPostResponse_classifier instantiates a new V1beta1SecretsPostResponse_classifier and sets the default values. +func NewV1beta1SecretsPostResponse_classifier()(*V1beta1SecretsPostResponse_classifier) { + m := &V1beta1SecretsPostResponse_classifier{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostResponse_classifierFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostResponse_classifierFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostResponse_classifier(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostResponse_classifier) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostResponse_classifier) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource classifier +// returns a *string when successful +func (m *V1beta1SecretsPostResponse_classifier) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostResponse_classifier) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostResponse_classifier) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. Name of the resource classifier +func (m *V1beta1SecretsPostResponse_classifier) SetName(value *string)() { + m.name = value +} +type V1beta1SecretsPostResponse_classifierable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_domain.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_domain.go new file mode 100644 index 0000000..21d387c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_domain.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostResponse_domain resource Domain Entity Definition (e.g. CONFIGURATION) +type V1beta1SecretsPostResponse_domain struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the resource domain + name *string + // Resource domain properties + properties V1beta1SecretsPostResponse_domain_propertiesable +} +// NewV1beta1SecretsPostResponse_domain instantiates a new V1beta1SecretsPostResponse_domain and sets the default values. +func NewV1beta1SecretsPostResponse_domain()(*V1beta1SecretsPostResponse_domain) { + m := &V1beta1SecretsPostResponse_domain{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostResponse_domainFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostResponse_domainFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostResponse_domain(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostResponse_domain) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostResponse_domain) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["properties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostResponse_domain_propertiesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetProperties(val.(V1beta1SecretsPostResponse_domain_propertiesable)) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource domain +// returns a *string when successful +func (m *V1beta1SecretsPostResponse_domain) GetName()(*string) { + return m.name +} +// GetProperties gets the properties property value. Resource domain properties +// returns a V1beta1SecretsPostResponse_domain_propertiesable when successful +func (m *V1beta1SecretsPostResponse_domain) GetProperties()(V1beta1SecretsPostResponse_domain_propertiesable) { + return m.properties +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostResponse_domain) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("properties", m.GetProperties()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostResponse_domain) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. Name of the resource domain +func (m *V1beta1SecretsPostResponse_domain) SetName(value *string)() { + m.name = value +} +// SetProperties sets the properties property value. Resource domain properties +func (m *V1beta1SecretsPostResponse_domain) SetProperties(value V1beta1SecretsPostResponse_domain_propertiesable)() { + m.properties = value +} +type V1beta1SecretsPostResponse_domainable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetProperties()(V1beta1SecretsPostResponse_domain_propertiesable) + SetName(value *string)() + SetProperties(value V1beta1SecretsPostResponse_domain_propertiesable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_domain_escaped_properties.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_domain_escaped_properties.go new file mode 100644 index 0000000..60988cd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_domain_escaped_properties.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostResponse_domain_properties resource domain properties +type V1beta1SecretsPostResponse_domain_properties struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1SecretsPostResponse_domain_properties instantiates a new V1beta1SecretsPostResponse_domain_properties and sets the default values. +func NewV1beta1SecretsPostResponse_domain_properties()(*V1beta1SecretsPostResponse_domain_properties) { + m := &V1beta1SecretsPostResponse_domain_properties{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostResponse_domain_propertiesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostResponse_domain_propertiesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostResponse_domain_properties(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostResponse_domain_properties) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostResponse_domain_properties) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostResponse_domain_properties) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostResponse_domain_properties) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1SecretsPostResponse_domain_propertiesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_groups.go new file mode 100644 index 0000000..aedc12e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_groups.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostResponse_groups storage Cloud Group Identity +type V1beta1SecretsPostResponse_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifier of the associated group + id *string + // Name of the associated group + name *string + // URI of the associated group + resourceUri *string +} +// NewV1beta1SecretsPostResponse_groups instantiates a new V1beta1SecretsPostResponse_groups and sets the default values. +func NewV1beta1SecretsPostResponse_groups()(*V1beta1SecretsPostResponse_groups) { + m := &V1beta1SecretsPostResponse_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostResponse_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostResponse_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostResponse_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostResponse_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostResponse_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + return res +} +// GetId gets the id property value. Identifier of the associated group +// returns a *string when successful +func (m *V1beta1SecretsPostResponse_groups) GetId()(*string) { + return m.id +} +// GetName gets the name property value. Name of the associated group +// returns a *string when successful +func (m *V1beta1SecretsPostResponse_groups) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. URI of the associated group +// returns a *string when successful +func (m *V1beta1SecretsPostResponse_groups) GetResourceUri()(*string) { + return m.resourceUri +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostResponse_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostResponse_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Identifier of the associated group +func (m *V1beta1SecretsPostResponse_groups) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. Name of the associated group +func (m *V1beta1SecretsPostResponse_groups) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. URI of the associated group +func (m *V1beta1SecretsPostResponse_groups) SetResourceUri(value *string)() { + m.resourceUri = value +} +type V1beta1SecretsPostResponse_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_prototype.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_prototype.go new file mode 100644 index 0000000..1650b8b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_prototype.go @@ -0,0 +1,169 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostResponse_prototype storage Cloud Partial Resource Reference +type V1beta1SecretsPostResponse_prototype struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifier of the resource + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Name of the resource + name *string + // URI of the resource + resourceUri *string + // Type of the resource + typeEscaped *string +} +// NewV1beta1SecretsPostResponse_prototype instantiates a new V1beta1SecretsPostResponse_prototype and sets the default values. +func NewV1beta1SecretsPostResponse_prototype()(*V1beta1SecretsPostResponse_prototype) { + m := &V1beta1SecretsPostResponse_prototype{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostResponse_prototypeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostResponse_prototypeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostResponse_prototype(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostResponse_prototype) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostResponse_prototype) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. Identifier of the resource +// returns a *UUID when successful +func (m *V1beta1SecretsPostResponse_prototype) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. Name of the resource +// returns a *string when successful +func (m *V1beta1SecretsPostResponse_prototype) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. URI of the resource +// returns a *string when successful +func (m *V1beta1SecretsPostResponse_prototype) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. Type of the resource +// returns a *string when successful +func (m *V1beta1SecretsPostResponse_prototype) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostResponse_prototype) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostResponse_prototype) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. Identifier of the resource +func (m *V1beta1SecretsPostResponse_prototype) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. Name of the resource +func (m *V1beta1SecretsPostResponse_prototype) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. URI of the resource +func (m *V1beta1SecretsPostResponse_prototype) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. Type of the resource +func (m *V1beta1SecretsPostResponse_prototype) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1SecretsPostResponse_prototypeable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_subclassifier.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_subclassifier.go new file mode 100644 index 0000000..455fd60 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_subclassifier.go @@ -0,0 +1,110 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostResponse_subclassifier resource Subclassifier Definition (e.g. BASIC_AUTH) +type V1beta1SecretsPostResponse_subclassifier struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Name of the resource subclassifier + name *string + // Resource subclassifier properties + properties V1beta1SecretsPostResponse_subclassifier_propertiesable +} +// NewV1beta1SecretsPostResponse_subclassifier instantiates a new V1beta1SecretsPostResponse_subclassifier and sets the default values. +func NewV1beta1SecretsPostResponse_subclassifier()(*V1beta1SecretsPostResponse_subclassifier) { + m := &V1beta1SecretsPostResponse_subclassifier{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostResponse_subclassifierFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostResponse_subclassifierFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostResponse_subclassifier(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostResponse_subclassifier) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostResponse_subclassifier) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["properties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SecretsPostResponse_subclassifier_propertiesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetProperties(val.(V1beta1SecretsPostResponse_subclassifier_propertiesable)) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource subclassifier +// returns a *string when successful +func (m *V1beta1SecretsPostResponse_subclassifier) GetName()(*string) { + return m.name +} +// GetProperties gets the properties property value. Resource subclassifier properties +// returns a V1beta1SecretsPostResponse_subclassifier_propertiesable when successful +func (m *V1beta1SecretsPostResponse_subclassifier) GetProperties()(V1beta1SecretsPostResponse_subclassifier_propertiesable) { + return m.properties +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostResponse_subclassifier) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("properties", m.GetProperties()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostResponse_subclassifier) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetName sets the name property value. Name of the resource subclassifier +func (m *V1beta1SecretsPostResponse_subclassifier) SetName(value *string)() { + m.name = value +} +// SetProperties sets the properties property value. Resource subclassifier properties +func (m *V1beta1SecretsPostResponse_subclassifier) SetProperties(value V1beta1SecretsPostResponse_subclassifier_propertiesable)() { + m.properties = value +} +type V1beta1SecretsPostResponse_subclassifierable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetName()(*string) + GetProperties()(V1beta1SecretsPostResponse_subclassifier_propertiesable) + SetName(value *string)() + SetProperties(value V1beta1SecretsPostResponse_subclassifier_propertiesable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_subclassifier_escaped_properties.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_subclassifier_escaped_properties.go new file mode 100644 index 0000000..bdeda8d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_post_response_escaped_subclassifier_escaped_properties.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsPostResponse_subclassifier_properties resource subclassifier properties +type V1beta1SecretsPostResponse_subclassifier_properties struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1SecretsPostResponse_subclassifier_properties instantiates a new V1beta1SecretsPostResponse_subclassifier_properties and sets the default values. +func NewV1beta1SecretsPostResponse_subclassifier_properties()(*V1beta1SecretsPostResponse_subclassifier_properties) { + m := &V1beta1SecretsPostResponse_subclassifier_properties{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SecretsPostResponse_subclassifier_propertiesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsPostResponse_subclassifier_propertiesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsPostResponse_subclassifier_properties(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SecretsPostResponse_subclassifier_properties) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SecretsPostResponse_subclassifier_properties) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1SecretsPostResponse_subclassifier_properties) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SecretsPostResponse_subclassifier_properties) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1SecretsPostResponse_subclassifier_propertiesable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_request_builder.go new file mode 100644 index 0000000..71aeb30 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_request_builder.go @@ -0,0 +1,334 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsRequestBuilder builds and executes requests for operations under \data-services\v1beta1\secrets +type V1beta1SecretsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// SecretsPostRequestBody composed type wrapper for classes V1beta1SecretsPostRequestBodyMember1able, V1beta1SecretsPostRequestBodyMember2able +type SecretsPostRequestBody struct { + // Composed type representation for type V1beta1SecretsPostRequestBodyMember1able + v1beta1SecretsPostRequestBodyMember1 V1beta1SecretsPostRequestBodyMember1able + // Composed type representation for type V1beta1SecretsPostRequestBodyMember2able + v1beta1SecretsPostRequestBodyMember2 V1beta1SecretsPostRequestBodyMember2able +} +// NewSecretsPostRequestBody instantiates a new SecretsPostRequestBody and sets the default values. +func NewSecretsPostRequestBody()(*SecretsPostRequestBody) { + m := &SecretsPostRequestBody{ + } + return m +} +// CreateSecretsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateSecretsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + result := NewSecretsPostRequestBody() + if parseNode != nil { + if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember1FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember1able); ok { + result.SetV1beta1SecretsPostRequestBodyMember1(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsPostRequestBodyMember2FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsPostRequestBodyMember2able); ok { + result.SetV1beta1SecretsPostRequestBodyMember2(cast) + } + } + } + return result, nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *SecretsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) +} +// GetIsComposedType determines if the current object is a wrapper around a composed type +// returns a bool when successful +func (m *SecretsPostRequestBody) GetIsComposedType()(bool) { + return true +} +// GetV1beta1SecretsPostRequestBodyMember1 gets the V1beta1SecretsPostRequestBodyMember1 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1able +// returns a V1beta1SecretsPostRequestBodyMember1able when successful +func (m *SecretsPostRequestBody) GetV1beta1SecretsPostRequestBodyMember1()(V1beta1SecretsPostRequestBodyMember1able) { + return m.v1beta1SecretsPostRequestBodyMember1 +} +// GetV1beta1SecretsPostRequestBodyMember2 gets the V1beta1SecretsPostRequestBodyMember2 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2able +// returns a V1beta1SecretsPostRequestBodyMember2able when successful +func (m *SecretsPostRequestBody) GetV1beta1SecretsPostRequestBodyMember2()(V1beta1SecretsPostRequestBodyMember2able) { + return m.v1beta1SecretsPostRequestBodyMember2 +} +// Serialize serializes information the current object +func (m *SecretsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetV1beta1SecretsPostRequestBodyMember1() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember1()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsPostRequestBodyMember2() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsPostRequestBodyMember2()) + if err != nil { + return err + } + } + return nil +} +// SetV1beta1SecretsPostRequestBodyMember1 sets the V1beta1SecretsPostRequestBodyMember1 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember1able +func (m *SecretsPostRequestBody) SetV1beta1SecretsPostRequestBodyMember1(value V1beta1SecretsPostRequestBodyMember1able)() { + m.v1beta1SecretsPostRequestBodyMember1 = value +} +// SetV1beta1SecretsPostRequestBodyMember2 sets the V1beta1SecretsPostRequestBodyMember2 property value. Composed type representation for type V1beta1SecretsPostRequestBodyMember2able +func (m *SecretsPostRequestBody) SetV1beta1SecretsPostRequestBodyMember2(value V1beta1SecretsPostRequestBodyMember2able)() { + m.v1beta1SecretsPostRequestBodyMember2 = value +} +// V1beta1SecretsRequestBuilderGetQueryParameters reports the attributes and properties of the secrets owned by the customer. The response can be paged by using the limit and offset query parameters and filtered and sorted by using the filter and sort query parameters. +type V1beta1SecretsRequestBuilderGetQueryParameters struct { + // An OData expression to filter responses by attribute. The OData logical operator "eq" is case-sensitive and supported for attributes "classifier", "label", "name", "policy", "prototype", "service", "status", and "subclassifier". The OData function "contains()" is not case-sensitive and supported for attributes "label", "name", "policy", and "service". The OData logical operator "and" is supported for all attributes. + Filter *string `uriparametername:"filter"` + // The limit query parameter should be used in conjunction with offset for paging within a batched result set. The limit is the maximum number of items to include in the response. Example: offset=30&limit=10 + Limit *int32 `uriparametername:"limit"` + // The offset query parameter should be used in conjunction with limit for paging within a batched result set. The offset is the number of items from the beginning of the batched result set to the first item included in the response. Example: offset=30&limit=10 + Offset *int32 `uriparametername:"offset"` + // A response attribute to sort by, followed by a direction indicator ("asc" or "desc"). The attribute may be one of "assignmentsCount", "classifier", "createdAt", "createdBy", "id", "label", "lastUpdatedBy", "name", "policy", "prototype", "service", "status", "subclassifier", or "updatedAt". Default: ascending. + Sort *string `uriparametername:"sort"` +} +// V1beta1SecretsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SecretsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1SecretsRequestBuilderGetQueryParameters +} +// V1beta1SecretsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SecretsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +type SecretsPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetV1beta1SecretsPostRequestBodyMember1()(V1beta1SecretsPostRequestBodyMember1able) + GetV1beta1SecretsPostRequestBodyMember2()(V1beta1SecretsPostRequestBodyMember2able) + SetV1beta1SecretsPostRequestBodyMember1(value V1beta1SecretsPostRequestBodyMember1able)() + SetV1beta1SecretsPostRequestBodyMember2(value V1beta1SecretsPostRequestBodyMember2able)() +} +// ById gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.secrets.item collection +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. +// returns a *V1beta1SecretsSecretsItemRequestBuilder when successful +func (m *V1beta1SecretsRequestBuilder) ById(id string)(*V1beta1SecretsSecretsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["id"] = id + } + return NewV1beta1SecretsSecretsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ByIdGuid gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.secrets.item collection +// returns a *V1beta1SecretsSecretsItemRequestBuilder when successful +func (m *V1beta1SecretsRequestBuilder) ByIdGuid(id i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*V1beta1SecretsSecretsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["id"] = id.String() + return NewV1beta1SecretsSecretsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1SecretsRequestBuilderInternal instantiates a new V1beta1SecretsRequestBuilder and sets the default values. +func NewV1beta1SecretsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SecretsRequestBuilder) { + m := &V1beta1SecretsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/secrets{?filter*,limit*,offset*,sort*}", pathParameters), + } + return m +} +// NewV1beta1SecretsRequestBuilder instantiates a new V1beta1SecretsRequestBuilder and sets the default values. +func NewV1beta1SecretsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SecretsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SecretsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get reports the attributes and properties of the secrets owned by the customer. The response can be paged by using the limit and offset query parameters and filtered and sorted by using the filter and sort query parameters. +// Deprecated: This method is obsolete. Use GetAsSecretsGetResponse instead. +// returns a V1beta1SecretsResponseable when successful +// returns a V1beta1Secrets400Error error when the service returns a 400 status code +// returns a V1beta1Secrets401Error error when the service returns a 401 status code +// returns a V1beta1Secrets403Error error when the service returns a 403 status code +// returns a V1beta1Secrets404Error error when the service returns a 404 status code +// returns a V1beta1Secrets422Error error when the service returns a 422 status code +// returns a V1beta1Secrets500Error error when the service returns a 500 status code +// returns a V1beta1Secrets503Error error when the service returns a 503 status code +func (m *V1beta1SecretsRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1SecretsRequestBuilderGetRequestConfiguration)(V1beta1SecretsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Secrets400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Secrets401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Secrets403ErrorFromDiscriminatorValue, + "404": CreateV1beta1Secrets404ErrorFromDiscriminatorValue, + "422": CreateV1beta1Secrets422ErrorFromDiscriminatorValue, + "500": CreateV1beta1Secrets500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Secrets503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SecretsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SecretsResponseable), nil +} +// GetAsSecretsGetResponse reports the attributes and properties of the secrets owned by the customer. The response can be paged by using the limit and offset query parameters and filtered and sorted by using the filter and sort query parameters. +// returns a V1beta1SecretsGetResponseable when successful +// returns a V1beta1Secrets400Error error when the service returns a 400 status code +// returns a V1beta1Secrets401Error error when the service returns a 401 status code +// returns a V1beta1Secrets403Error error when the service returns a 403 status code +// returns a V1beta1Secrets404Error error when the service returns a 404 status code +// returns a V1beta1Secrets422Error error when the service returns a 422 status code +// returns a V1beta1Secrets500Error error when the service returns a 500 status code +// returns a V1beta1Secrets503Error error when the service returns a 503 status code +func (m *V1beta1SecretsRequestBuilder) GetAsSecretsGetResponse(ctx context.Context, requestConfiguration *V1beta1SecretsRequestBuilderGetRequestConfiguration)(V1beta1SecretsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Secrets400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Secrets401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Secrets403ErrorFromDiscriminatorValue, + "404": CreateV1beta1Secrets404ErrorFromDiscriminatorValue, + "422": CreateV1beta1Secrets422ErrorFromDiscriminatorValue, + "500": CreateV1beta1Secrets500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Secrets503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SecretsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SecretsGetResponseable), nil +} +// Post adds a new secret using the provided specification. +// Deprecated: This method is obsolete. Use PostAsSecretsPostResponse instead. +// returns a V1beta1SecretsResponseable when successful +// returns a V1beta1Secrets400Error error when the service returns a 400 status code +// returns a V1beta1Secrets401Error error when the service returns a 401 status code +// returns a V1beta1Secrets403Error error when the service returns a 403 status code +// returns a V1beta1Secrets404Error error when the service returns a 404 status code +// returns a V1beta1Secrets409Error error when the service returns a 409 status code +// returns a V1beta1Secrets412Error error when the service returns a 412 status code +// returns a V1beta1Secrets422Error error when the service returns a 422 status code +// returns a V1beta1Secrets500Error error when the service returns a 500 status code +// returns a V1beta1Secrets503Error error when the service returns a 503 status code +func (m *V1beta1SecretsRequestBuilder) Post(ctx context.Context, body SecretsPostRequestBodyable, requestConfiguration *V1beta1SecretsRequestBuilderPostRequestConfiguration)(V1beta1SecretsResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Secrets400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Secrets401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Secrets403ErrorFromDiscriminatorValue, + "404": CreateV1beta1Secrets404ErrorFromDiscriminatorValue, + "409": CreateV1beta1Secrets409ErrorFromDiscriminatorValue, + "412": CreateV1beta1Secrets412ErrorFromDiscriminatorValue, + "422": CreateV1beta1Secrets422ErrorFromDiscriminatorValue, + "500": CreateV1beta1Secrets500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Secrets503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SecretsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SecretsResponseable), nil +} +// PostAsSecretsPostResponse adds a new secret using the provided specification. +// returns a V1beta1SecretsPostResponseable when successful +// returns a V1beta1Secrets400Error error when the service returns a 400 status code +// returns a V1beta1Secrets401Error error when the service returns a 401 status code +// returns a V1beta1Secrets403Error error when the service returns a 403 status code +// returns a V1beta1Secrets404Error error when the service returns a 404 status code +// returns a V1beta1Secrets409Error error when the service returns a 409 status code +// returns a V1beta1Secrets412Error error when the service returns a 412 status code +// returns a V1beta1Secrets422Error error when the service returns a 422 status code +// returns a V1beta1Secrets500Error error when the service returns a 500 status code +// returns a V1beta1Secrets503Error error when the service returns a 503 status code +func (m *V1beta1SecretsRequestBuilder) PostAsSecretsPostResponse(ctx context.Context, body SecretsPostRequestBodyable, requestConfiguration *V1beta1SecretsRequestBuilderPostRequestConfiguration)(V1beta1SecretsPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Secrets400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Secrets401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Secrets403ErrorFromDiscriminatorValue, + "404": CreateV1beta1Secrets404ErrorFromDiscriminatorValue, + "409": CreateV1beta1Secrets409ErrorFromDiscriminatorValue, + "412": CreateV1beta1Secrets412ErrorFromDiscriminatorValue, + "422": CreateV1beta1Secrets422ErrorFromDiscriminatorValue, + "500": CreateV1beta1Secrets500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Secrets503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SecretsPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SecretsPostResponseable), nil +} +// ToGetRequestInformation reports the attributes and properties of the secrets owned by the customer. The response can be paged by using the limit and offset query parameters and filtered and sorted by using the filter and sort query parameters. +// returns a *RequestInformation when successful +func (m *V1beta1SecretsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1SecretsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation adds a new secret using the provided specification. +// returns a *RequestInformation when successful +func (m *V1beta1SecretsRequestBuilder) ToPostRequestInformation(ctx context.Context, body SecretsPostRequestBodyable, requestConfiguration *V1beta1SecretsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1SecretsRequestBuilder when successful +func (m *V1beta1SecretsRequestBuilder) WithUrl(rawUrl string)(*V1beta1SecretsRequestBuilder) { + return NewV1beta1SecretsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_response.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_response.go new file mode 100644 index 0000000..9bb5231 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsResponse report Secrets Response +// Deprecated: This class is obsolete. Use V1beta1SecretsGetResponseable instead. +type V1beta1SecretsResponse struct { + V1beta1SecretsGetResponse +} +// NewV1beta1SecretsResponse instantiates a new V1beta1SecretsResponse and sets the default values. +func NewV1beta1SecretsResponse()(*V1beta1SecretsResponse) { + m := &V1beta1SecretsResponse{ + V1beta1SecretsGetResponse: *NewV1beta1SecretsGetResponse(), + } + return m +} +// CreateV1beta1SecretsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SecretsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SecretsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1SecretsGetResponseable instead. +type V1beta1SecretsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1SecretsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_secrets_secrets_item_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_secrets_secrets_item_request_builder.go new file mode 100644 index 0000000..ff73156 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_secrets_secrets_item_request_builder.go @@ -0,0 +1,354 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SecretsSecretsItemRequestBuilder builds and executes requests for operations under \data-services\v1beta1\secrets\{id} +type V1beta1SecretsSecretsItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// SecretsPatchRequestBody composed type wrapper for classes V1beta1SecretsItemSecretsPatchRequestBodyMember1able, V1beta1SecretsItemSecretsPatchRequestBodyMember2able +type SecretsPatchRequestBody struct { + // Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1able + v1beta1SecretsItemSecretsPatchRequestBodyMember1 V1beta1SecretsItemSecretsPatchRequestBodyMember1able + // Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember2able + v1beta1SecretsItemSecretsPatchRequestBodyMember2 V1beta1SecretsItemSecretsPatchRequestBodyMember2able +} +// NewSecretsPatchRequestBody instantiates a new SecretsPatchRequestBody and sets the default values. +func NewSecretsPatchRequestBody()(*SecretsPatchRequestBody) { + m := &SecretsPatchRequestBody{ + } + return m +} +// CreateSecretsPatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateSecretsPatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + result := NewSecretsPatchRequestBody() + if parseNode != nil { + if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember1FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsItemSecretsPatchRequestBodyMember1able); ok { + result.SetV1beta1SecretsItemSecretsPatchRequestBodyMember1(cast) + } + } else if val, err := parseNode.GetObjectValue(CreateV1beta1SecretsItemSecretsPatchRequestBodyMember2FromDiscriminatorValue); val != nil { + if err != nil { + return nil, err + } + if cast, ok := val.(V1beta1SecretsItemSecretsPatchRequestBodyMember2able); ok { + result.SetV1beta1SecretsItemSecretsPatchRequestBodyMember2(cast) + } + } + } + return result, nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *SecretsPatchRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) +} +// GetIsComposedType determines if the current object is a wrapper around a composed type +// returns a bool when successful +func (m *SecretsPatchRequestBody) GetIsComposedType()(bool) { + return true +} +// GetV1beta1SecretsItemSecretsPatchRequestBodyMember1 gets the V1beta1SecretsItemSecretsPatchRequestBodyMember1 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1able +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember1able when successful +func (m *SecretsPatchRequestBody) GetV1beta1SecretsItemSecretsPatchRequestBodyMember1()(V1beta1SecretsItemSecretsPatchRequestBodyMember1able) { + return m.v1beta1SecretsItemSecretsPatchRequestBodyMember1 +} +// GetV1beta1SecretsItemSecretsPatchRequestBodyMember2 gets the V1beta1SecretsItemSecretsPatchRequestBodyMember2 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember2able +// returns a V1beta1SecretsItemSecretsPatchRequestBodyMember2able when successful +func (m *SecretsPatchRequestBody) GetV1beta1SecretsItemSecretsPatchRequestBodyMember2()(V1beta1SecretsItemSecretsPatchRequestBodyMember2able) { + return m.v1beta1SecretsItemSecretsPatchRequestBodyMember2 +} +// Serialize serializes information the current object +func (m *SecretsPatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember1()) + if err != nil { + return err + } + } else if m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember2() != nil { + err := writer.WriteObjectValue("", m.GetV1beta1SecretsItemSecretsPatchRequestBodyMember2()) + if err != nil { + return err + } + } + return nil +} +// SetV1beta1SecretsItemSecretsPatchRequestBodyMember1 sets the V1beta1SecretsItemSecretsPatchRequestBodyMember1 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember1able +func (m *SecretsPatchRequestBody) SetV1beta1SecretsItemSecretsPatchRequestBodyMember1(value V1beta1SecretsItemSecretsPatchRequestBodyMember1able)() { + m.v1beta1SecretsItemSecretsPatchRequestBodyMember1 = value +} +// SetV1beta1SecretsItemSecretsPatchRequestBodyMember2 sets the V1beta1SecretsItemSecretsPatchRequestBodyMember2 property value. Composed type representation for type V1beta1SecretsItemSecretsPatchRequestBodyMember2able +func (m *SecretsPatchRequestBody) SetV1beta1SecretsItemSecretsPatchRequestBodyMember2(value V1beta1SecretsItemSecretsPatchRequestBodyMember2able)() { + m.v1beta1SecretsItemSecretsPatchRequestBodyMember2 = value +} +// V1beta1SecretsSecretsItemRequestBuilderDeleteQueryParameters removes the specified secret. All associated assignments will also be removed. +type V1beta1SecretsSecretsItemRequestBuilderDeleteQueryParameters struct { + // Enable delete-lock safety checking + Safe *bool `uriparametername:"safe"` +} +// V1beta1SecretsSecretsItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SecretsSecretsItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1SecretsSecretsItemRequestBuilderDeleteQueryParameters +} +// V1beta1SecretsSecretsItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SecretsSecretsItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// V1beta1SecretsSecretsItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SecretsSecretsItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +type SecretsPatchRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetV1beta1SecretsItemSecretsPatchRequestBodyMember1()(V1beta1SecretsItemSecretsPatchRequestBodyMember1able) + GetV1beta1SecretsItemSecretsPatchRequestBodyMember2()(V1beta1SecretsItemSecretsPatchRequestBodyMember2able) + SetV1beta1SecretsItemSecretsPatchRequestBodyMember1(value V1beta1SecretsItemSecretsPatchRequestBodyMember1able)() + SetV1beta1SecretsItemSecretsPatchRequestBodyMember2(value V1beta1SecretsItemSecretsPatchRequestBodyMember2able)() +} +// NewV1beta1SecretsSecretsItemRequestBuilderInternal instantiates a new V1beta1SecretsSecretsItemRequestBuilder and sets the default values. +func NewV1beta1SecretsSecretsItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SecretsSecretsItemRequestBuilder) { + m := &V1beta1SecretsSecretsItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/secrets/{id}{?safe*}", pathParameters), + } + return m +} +// NewV1beta1SecretsSecretsItemRequestBuilder instantiates a new V1beta1SecretsSecretsItemRequestBuilder and sets the default values. +func NewV1beta1SecretsSecretsItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SecretsSecretsItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SecretsSecretsItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete removes the specified secret. All associated assignments will also be removed. +// returns a V1beta1SecretsItemSecrets400Error error when the service returns a 400 status code +// returns a V1beta1SecretsItemSecrets401Error error when the service returns a 401 status code +// returns a V1beta1SecretsItemSecrets403Error error when the service returns a 403 status code +// returns a V1beta1SecretsItemSecrets404Error error when the service returns a 404 status code +// returns a V1beta1SecretsItemSecrets409Error error when the service returns a 409 status code +// returns a V1beta1SecretsItemSecrets412Error error when the service returns a 412 status code +// returns a V1beta1SecretsItemSecrets422Error error when the service returns a 422 status code +// returns a V1beta1SecretsItemSecrets500Error error when the service returns a 500 status code +// returns a V1beta1SecretsItemSecrets503Error error when the service returns a 503 status code +func (m *V1beta1SecretsSecretsItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *V1beta1SecretsSecretsItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SecretsItemSecrets400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SecretsItemSecrets401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SecretsItemSecrets403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SecretsItemSecrets404ErrorFromDiscriminatorValue, + "409": CreateV1beta1SecretsItemSecrets409ErrorFromDiscriminatorValue, + "412": CreateV1beta1SecretsItemSecrets412ErrorFromDiscriminatorValue, + "422": CreateV1beta1SecretsItemSecrets422ErrorFromDiscriminatorValue, + "500": CreateV1beta1SecretsItemSecrets500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SecretsItemSecrets503ErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get reports the attributes and properties of the specified secret. +// Deprecated: This method is obsolete. Use GetAsSecretsGetResponse instead. +// returns a V1beta1SecretsItemSecretsResponseable when successful +// returns a V1beta1SecretsItemSecrets400Error error when the service returns a 400 status code +// returns a V1beta1SecretsItemSecrets401Error error when the service returns a 401 status code +// returns a V1beta1SecretsItemSecrets403Error error when the service returns a 403 status code +// returns a V1beta1SecretsItemSecrets404Error error when the service returns a 404 status code +// returns a V1beta1SecretsItemSecrets422Error error when the service returns a 422 status code +// returns a V1beta1SecretsItemSecrets500Error error when the service returns a 500 status code +// returns a V1beta1SecretsItemSecrets503Error error when the service returns a 503 status code +func (m *V1beta1SecretsSecretsItemRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1SecretsSecretsItemRequestBuilderGetRequestConfiguration)(V1beta1SecretsItemSecretsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SecretsItemSecrets400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SecretsItemSecrets401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SecretsItemSecrets403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SecretsItemSecrets404ErrorFromDiscriminatorValue, + "422": CreateV1beta1SecretsItemSecrets422ErrorFromDiscriminatorValue, + "500": CreateV1beta1SecretsItemSecrets500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SecretsItemSecrets503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SecretsItemSecretsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SecretsItemSecretsResponseable), nil +} +// GetAsSecretsGetResponse reports the attributes and properties of the specified secret. +// returns a V1beta1SecretsItemSecretsGetResponseable when successful +// returns a V1beta1SecretsItemSecrets400Error error when the service returns a 400 status code +// returns a V1beta1SecretsItemSecrets401Error error when the service returns a 401 status code +// returns a V1beta1SecretsItemSecrets403Error error when the service returns a 403 status code +// returns a V1beta1SecretsItemSecrets404Error error when the service returns a 404 status code +// returns a V1beta1SecretsItemSecrets422Error error when the service returns a 422 status code +// returns a V1beta1SecretsItemSecrets500Error error when the service returns a 500 status code +// returns a V1beta1SecretsItemSecrets503Error error when the service returns a 503 status code +func (m *V1beta1SecretsSecretsItemRequestBuilder) GetAsSecretsGetResponse(ctx context.Context, requestConfiguration *V1beta1SecretsSecretsItemRequestBuilderGetRequestConfiguration)(V1beta1SecretsItemSecretsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SecretsItemSecrets400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SecretsItemSecrets401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SecretsItemSecrets403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SecretsItemSecrets404ErrorFromDiscriminatorValue, + "422": CreateV1beta1SecretsItemSecrets422ErrorFromDiscriminatorValue, + "500": CreateV1beta1SecretsItemSecrets500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SecretsItemSecrets503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SecretsItemSecretsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SecretsItemSecretsGetResponseable), nil +} +// Patch changes an existing secret using the provided redefinition. +// Deprecated: This method is obsolete. Use PatchAsSecretsPatchResponse instead. +// returns a V1beta1SecretsItemSecretsResponseable when successful +// returns a V1beta1SecretsItemSecrets400Error error when the service returns a 400 status code +// returns a V1beta1SecretsItemSecrets401Error error when the service returns a 401 status code +// returns a V1beta1SecretsItemSecrets403Error error when the service returns a 403 status code +// returns a V1beta1SecretsItemSecrets404Error error when the service returns a 404 status code +// returns a V1beta1SecretsItemSecrets409Error error when the service returns a 409 status code +// returns a V1beta1SecretsItemSecrets412Error error when the service returns a 412 status code +// returns a V1beta1SecretsItemSecrets422Error error when the service returns a 422 status code +// returns a V1beta1SecretsItemSecrets500Error error when the service returns a 500 status code +// returns a V1beta1SecretsItemSecrets503Error error when the service returns a 503 status code +func (m *V1beta1SecretsSecretsItemRequestBuilder) Patch(ctx context.Context, body SecretsPatchRequestBodyable, requestConfiguration *V1beta1SecretsSecretsItemRequestBuilderPatchRequestConfiguration)(V1beta1SecretsItemSecretsResponseable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SecretsItemSecrets400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SecretsItemSecrets401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SecretsItemSecrets403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SecretsItemSecrets404ErrorFromDiscriminatorValue, + "409": CreateV1beta1SecretsItemSecrets409ErrorFromDiscriminatorValue, + "412": CreateV1beta1SecretsItemSecrets412ErrorFromDiscriminatorValue, + "422": CreateV1beta1SecretsItemSecrets422ErrorFromDiscriminatorValue, + "500": CreateV1beta1SecretsItemSecrets500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SecretsItemSecrets503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SecretsItemSecretsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SecretsItemSecretsResponseable), nil +} +// PatchAsSecretsPatchResponse changes an existing secret using the provided redefinition. +// returns a V1beta1SecretsItemSecretsPatchResponseable when successful +// returns a V1beta1SecretsItemSecrets400Error error when the service returns a 400 status code +// returns a V1beta1SecretsItemSecrets401Error error when the service returns a 401 status code +// returns a V1beta1SecretsItemSecrets403Error error when the service returns a 403 status code +// returns a V1beta1SecretsItemSecrets404Error error when the service returns a 404 status code +// returns a V1beta1SecretsItemSecrets409Error error when the service returns a 409 status code +// returns a V1beta1SecretsItemSecrets412Error error when the service returns a 412 status code +// returns a V1beta1SecretsItemSecrets422Error error when the service returns a 422 status code +// returns a V1beta1SecretsItemSecrets500Error error when the service returns a 500 status code +// returns a V1beta1SecretsItemSecrets503Error error when the service returns a 503 status code +func (m *V1beta1SecretsSecretsItemRequestBuilder) PatchAsSecretsPatchResponse(ctx context.Context, body SecretsPatchRequestBodyable, requestConfiguration *V1beta1SecretsSecretsItemRequestBuilderPatchRequestConfiguration)(V1beta1SecretsItemSecretsPatchResponseable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SecretsItemSecrets400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SecretsItemSecrets401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SecretsItemSecrets403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SecretsItemSecrets404ErrorFromDiscriminatorValue, + "409": CreateV1beta1SecretsItemSecrets409ErrorFromDiscriminatorValue, + "412": CreateV1beta1SecretsItemSecrets412ErrorFromDiscriminatorValue, + "422": CreateV1beta1SecretsItemSecrets422ErrorFromDiscriminatorValue, + "500": CreateV1beta1SecretsItemSecrets500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SecretsItemSecrets503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SecretsItemSecretsPatchResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SecretsItemSecretsPatchResponseable), nil +} +// ToDeleteRequestInformation removes the specified secret. All associated assignments will also be removed. +// returns a *RequestInformation when successful +func (m *V1beta1SecretsSecretsItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *V1beta1SecretsSecretsItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation reports the attributes and properties of the specified secret. +// returns a *RequestInformation when successful +func (m *V1beta1SecretsSecretsItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1SecretsSecretsItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation changes an existing secret using the provided redefinition. +// returns a *RequestInformation when successful +func (m *V1beta1SecretsSecretsItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body SecretsPatchRequestBodyable, requestConfiguration *V1beta1SecretsSecretsItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1SecretsSecretsItemRequestBuilder when successful +func (m *V1beta1SecretsSecretsItemRequestBuilder) WithUrl(rawUrl string)(*V1beta1SecretsSecretsItemRequestBuilder) { + return NewV1beta1SecretsSecretsItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_settings400_error.go new file mode 100644 index 0000000..d2f2934 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Settings400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Settings400Error instantiates a new V1beta1Settings400Error and sets the default values. +func NewV1beta1Settings400Error()(*V1beta1Settings400Error) { + m := &V1beta1Settings400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Settings400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Settings400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Settings400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Settings400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Settings400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Settings400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Settings400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Settings400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Settings400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Settings400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Settings400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Settings400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Settings400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Settings400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Settings400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Settings400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Settings400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_settings401_error.go new file mode 100644 index 0000000..8f29463 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Settings401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Settings401Error instantiates a new V1beta1Settings401Error and sets the default values. +func NewV1beta1Settings401Error()(*V1beta1Settings401Error) { + m := &V1beta1Settings401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Settings401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Settings401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Settings401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Settings401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Settings401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Settings401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Settings401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Settings401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Settings401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Settings401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Settings401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Settings401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Settings401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Settings401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Settings401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Settings401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Settings401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_settings403_error.go new file mode 100644 index 0000000..1d57f70 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Settings403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Settings403Error instantiates a new V1beta1Settings403Error and sets the default values. +func NewV1beta1Settings403Error()(*V1beta1Settings403Error) { + m := &V1beta1Settings403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Settings403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Settings403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Settings403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Settings403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Settings403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Settings403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Settings403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Settings403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Settings403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Settings403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Settings403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Settings403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Settings403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Settings403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Settings403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Settings403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Settings403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_settings404_error.go new file mode 100644 index 0000000..f5af7dd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Settings404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Settings404Error instantiates a new V1beta1Settings404Error and sets the default values. +func NewV1beta1Settings404Error()(*V1beta1Settings404Error) { + m := &V1beta1Settings404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Settings404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Settings404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Settings404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Settings404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Settings404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Settings404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Settings404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Settings404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Settings404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Settings404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Settings404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Settings404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Settings404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Settings404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Settings404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Settings404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Settings404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings422_error.go b/internal/sdk/dataservices/dataservices/v1beta1_settings422_error.go new file mode 100644 index 0000000..10057a2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings422_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Settings422Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Settings422Error instantiates a new V1beta1Settings422Error and sets the default values. +func NewV1beta1Settings422Error()(*V1beta1Settings422Error) { + m := &V1beta1Settings422Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Settings422ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Settings422ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Settings422Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Settings422Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Settings422Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Settings422Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Settings422Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Settings422Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Settings422Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Settings422Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Settings422Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Settings422Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Settings422Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Settings422Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Settings422Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Settings422Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Settings422Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_settings500_error.go new file mode 100644 index 0000000..f36c0b7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Settings500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Settings500Error instantiates a new V1beta1Settings500Error and sets the default values. +func NewV1beta1Settings500Error()(*V1beta1Settings500Error) { + m := &V1beta1Settings500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Settings500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Settings500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Settings500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Settings500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Settings500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Settings500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Settings500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Settings500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Settings500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Settings500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Settings500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Settings500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Settings500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Settings500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Settings500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Settings500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Settings500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_settings503_error.go new file mode 100644 index 0000000..da14d8e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Settings503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1Settings503Error instantiates a new V1beta1Settings503Error and sets the default values. +func NewV1beta1Settings503Error()(*V1beta1Settings503Error) { + m := &V1beta1Settings503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Settings503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Settings503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Settings503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Settings503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Settings503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1Settings503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1Settings503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Settings503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1Settings503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1Settings503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1Settings503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Settings503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1Settings503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1Settings503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1Settings503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1Settings503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1Settings503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_get_response.go new file mode 100644 index 0000000..1cb30a0 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_get_response.go @@ -0,0 +1,179 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SettingsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Number of items in this response. + count *int32 + // The items property + items []V1beta1SettingsGetResponse_itemsable + // The offset query parameter from the request. + offset *int32 + // Total number of items matching the filter parameter in the request. + total *int32 +} +// NewV1beta1SettingsGetResponse instantiates a new V1beta1SettingsGetResponse and sets the default values. +func NewV1beta1SettingsGetResponse()(*V1beta1SettingsGetResponse) { + m := &V1beta1SettingsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SettingsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SettingsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SettingsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SettingsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Number of items in this response. +// returns a *int32 when successful +func (m *V1beta1SettingsGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SettingsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SettingsGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SettingsGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SettingsGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetItems gets the items property value. The items property +// returns a []V1beta1SettingsGetResponse_itemsable when successful +func (m *V1beta1SettingsGetResponse) GetItems()([]V1beta1SettingsGetResponse_itemsable) { + return m.items +} +// GetOffset gets the offset property value. The offset query parameter from the request. +// returns a *int32 when successful +func (m *V1beta1SettingsGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetTotal gets the total property value. Total number of items matching the filter parameter in the request. +// returns a *int32 when successful +func (m *V1beta1SettingsGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1SettingsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SettingsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Number of items in this response. +func (m *V1beta1SettingsGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. The items property +func (m *V1beta1SettingsGetResponse) SetItems(value []V1beta1SettingsGetResponse_itemsable)() { + m.items = value +} +// SetOffset sets the offset property value. The offset query parameter from the request. +func (m *V1beta1SettingsGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetTotal sets the total property value. Total number of items matching the filter parameter in the request. +func (m *V1beta1SettingsGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1SettingsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1SettingsGetResponse_itemsable) + GetOffset()(*int32) + GetTotal()(*int32) + SetCount(value *int32)() + SetItems(value []V1beta1SettingsGetResponse_itemsable)() + SetOffset(value *int32)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_get_response_escaped_items.go new file mode 100644 index 0000000..0bef08b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_get_response_escaped_items.go @@ -0,0 +1,487 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SettingsGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The URI for console screen that displays this resource + consoleUri *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Value of the setting + currentValue *string + // The customer application identifier + customerId *string + // Description of the setting + description *string + // Name of the application to be displayed in UI + externalApplicationName *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Time when this setting was last updated for this account. RFC 3339 + lastUpdatedAt *string + // UserId of the user who last updated this setting for this account + lastUpdatedBy *string + // A system specified name for the resource. + name *string + // Next possible value of the setting, which is updated by the workflow + nextValue *string + // A JSON array (stored as string) containing possible values of this setting + possibleValues *string + // The self reference for this resource. + resourceUri *string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1SettingsGetResponse_items instantiates a new V1beta1SettingsGetResponse_items and sets the default values. +func NewV1beta1SettingsGetResponse_items()(*V1beta1SettingsGetResponse_items) { + m := &V1beta1SettingsGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SettingsGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SettingsGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SettingsGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SettingsGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetConsoleUri gets the consoleUri property value. The URI for console screen that displays this resource +// returns a *string when successful +func (m *V1beta1SettingsGetResponse_items) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1SettingsGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCurrentValue gets the currentValue property value. Value of the setting +// returns a *string when successful +func (m *V1beta1SettingsGetResponse_items) GetCurrentValue()(*string) { + return m.currentValue +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1SettingsGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetDescription gets the description property value. Description of the setting +// returns a *string when successful +func (m *V1beta1SettingsGetResponse_items) GetDescription()(*string) { + return m.description +} +// GetExternalApplicationName gets the externalApplicationName property value. Name of the application to be displayed in UI +// returns a *string when successful +func (m *V1beta1SettingsGetResponse_items) GetExternalApplicationName()(*string) { + return m.externalApplicationName +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SettingsGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["currentValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCurrentValue(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["externalApplicationName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExternalApplicationName(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["lastUpdatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdatedAt(val) + } + return nil + } + res["lastUpdatedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdatedBy(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["nextValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNextValue(val) + } + return nil + } + res["possibleValues"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPossibleValues(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1SettingsGetResponse_items) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1SettingsGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetLastUpdatedAt gets the lastUpdatedAt property value. Time when this setting was last updated for this account. RFC 3339 +// returns a *string when successful +func (m *V1beta1SettingsGetResponse_items) GetLastUpdatedAt()(*string) { + return m.lastUpdatedAt +} +// GetLastUpdatedBy gets the lastUpdatedBy property value. UserId of the user who last updated this setting for this account +// returns a *string when successful +func (m *V1beta1SettingsGetResponse_items) GetLastUpdatedBy()(*string) { + return m.lastUpdatedBy +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1SettingsGetResponse_items) GetName()(*string) { + return m.name +} +// GetNextValue gets the nextValue property value. Next possible value of the setting, which is updated by the workflow +// returns a *string when successful +func (m *V1beta1SettingsGetResponse_items) GetNextValue()(*string) { + return m.nextValue +} +// GetPossibleValues gets the possibleValues property value. A JSON array (stored as string) containing possible values of this setting +// returns a *string when successful +func (m *V1beta1SettingsGetResponse_items) GetPossibleValues()(*string) { + return m.possibleValues +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1SettingsGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1SettingsGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1SettingsGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1SettingsGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("currentValue", m.GetCurrentValue()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("externalApplicationName", m.GetExternalApplicationName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("lastUpdatedAt", m.GetLastUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("lastUpdatedBy", m.GetLastUpdatedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("nextValue", m.GetNextValue()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("possibleValues", m.GetPossibleValues()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SettingsGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetConsoleUri sets the consoleUri property value. The URI for console screen that displays this resource +func (m *V1beta1SettingsGetResponse_items) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1SettingsGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCurrentValue sets the currentValue property value. Value of the setting +func (m *V1beta1SettingsGetResponse_items) SetCurrentValue(value *string)() { + m.currentValue = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1SettingsGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDescription sets the description property value. Description of the setting +func (m *V1beta1SettingsGetResponse_items) SetDescription(value *string)() { + m.description = value +} +// SetExternalApplicationName sets the externalApplicationName property value. Name of the application to be displayed in UI +func (m *V1beta1SettingsGetResponse_items) SetExternalApplicationName(value *string)() { + m.externalApplicationName = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1SettingsGetResponse_items) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1SettingsGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetLastUpdatedAt sets the lastUpdatedAt property value. Time when this setting was last updated for this account. RFC 3339 +func (m *V1beta1SettingsGetResponse_items) SetLastUpdatedAt(value *string)() { + m.lastUpdatedAt = value +} +// SetLastUpdatedBy sets the lastUpdatedBy property value. UserId of the user who last updated this setting for this account +func (m *V1beta1SettingsGetResponse_items) SetLastUpdatedBy(value *string)() { + m.lastUpdatedBy = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1SettingsGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetNextValue sets the nextValue property value. Next possible value of the setting, which is updated by the workflow +func (m *V1beta1SettingsGetResponse_items) SetNextValue(value *string)() { + m.nextValue = value +} +// SetPossibleValues sets the possibleValues property value. A JSON array (stored as string) containing possible values of this setting +func (m *V1beta1SettingsGetResponse_items) SetPossibleValues(value *string)() { + m.possibleValues = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1SettingsGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1SettingsGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1SettingsGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1SettingsGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCurrentValue()(*string) + GetCustomerId()(*string) + GetDescription()(*string) + GetExternalApplicationName()(*string) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLastUpdatedAt()(*string) + GetLastUpdatedBy()(*string) + GetName()(*string) + GetNextValue()(*string) + GetPossibleValues()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCurrentValue(value *string)() + SetCustomerId(value *string)() + SetDescription(value *string)() + SetExternalApplicationName(value *string)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLastUpdatedAt(value *string)() + SetLastUpdatedBy(value *string)() + SetName(value *string)() + SetNextValue(value *string)() + SetPossibleValues(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings400_error.go new file mode 100644 index 0000000..5a07e47 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SettingsItemSettings400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SettingsItemSettings400Error instantiates a new V1beta1SettingsItemSettings400Error and sets the default values. +func NewV1beta1SettingsItemSettings400Error()(*V1beta1SettingsItemSettings400Error) { + m := &V1beta1SettingsItemSettings400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SettingsItemSettings400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SettingsItemSettings400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SettingsItemSettings400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SettingsItemSettings400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SettingsItemSettings400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SettingsItemSettings400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SettingsItemSettings400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SettingsItemSettings400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SettingsItemSettings400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SettingsItemSettings400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SettingsItemSettings400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SettingsItemSettings400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SettingsItemSettings400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SettingsItemSettings400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SettingsItemSettings400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SettingsItemSettings400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SettingsItemSettings400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings401_error.go new file mode 100644 index 0000000..1d6be17 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SettingsItemSettings401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SettingsItemSettings401Error instantiates a new V1beta1SettingsItemSettings401Error and sets the default values. +func NewV1beta1SettingsItemSettings401Error()(*V1beta1SettingsItemSettings401Error) { + m := &V1beta1SettingsItemSettings401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SettingsItemSettings401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SettingsItemSettings401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SettingsItemSettings401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SettingsItemSettings401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SettingsItemSettings401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SettingsItemSettings401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SettingsItemSettings401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SettingsItemSettings401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SettingsItemSettings401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SettingsItemSettings401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SettingsItemSettings401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SettingsItemSettings401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SettingsItemSettings401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SettingsItemSettings401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SettingsItemSettings401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SettingsItemSettings401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SettingsItemSettings401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings403_error.go new file mode 100644 index 0000000..3c7eef0 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SettingsItemSettings403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SettingsItemSettings403Error instantiates a new V1beta1SettingsItemSettings403Error and sets the default values. +func NewV1beta1SettingsItemSettings403Error()(*V1beta1SettingsItemSettings403Error) { + m := &V1beta1SettingsItemSettings403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SettingsItemSettings403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SettingsItemSettings403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SettingsItemSettings403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SettingsItemSettings403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SettingsItemSettings403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SettingsItemSettings403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SettingsItemSettings403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SettingsItemSettings403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SettingsItemSettings403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SettingsItemSettings403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SettingsItemSettings403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SettingsItemSettings403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SettingsItemSettings403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SettingsItemSettings403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SettingsItemSettings403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SettingsItemSettings403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SettingsItemSettings403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings404_error.go new file mode 100644 index 0000000..870c455 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SettingsItemSettings404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SettingsItemSettings404Error instantiates a new V1beta1SettingsItemSettings404Error and sets the default values. +func NewV1beta1SettingsItemSettings404Error()(*V1beta1SettingsItemSettings404Error) { + m := &V1beta1SettingsItemSettings404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SettingsItemSettings404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SettingsItemSettings404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SettingsItemSettings404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SettingsItemSettings404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SettingsItemSettings404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SettingsItemSettings404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SettingsItemSettings404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SettingsItemSettings404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SettingsItemSettings404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SettingsItemSettings404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SettingsItemSettings404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SettingsItemSettings404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SettingsItemSettings404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SettingsItemSettings404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SettingsItemSettings404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SettingsItemSettings404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SettingsItemSettings404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings412_error.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings412_error.go new file mode 100644 index 0000000..bacfc58 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings412_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SettingsItemSettings412Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SettingsItemSettings412Error instantiates a new V1beta1SettingsItemSettings412Error and sets the default values. +func NewV1beta1SettingsItemSettings412Error()(*V1beta1SettingsItemSettings412Error) { + m := &V1beta1SettingsItemSettings412Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SettingsItemSettings412ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SettingsItemSettings412ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SettingsItemSettings412Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SettingsItemSettings412Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SettingsItemSettings412Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SettingsItemSettings412Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SettingsItemSettings412Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SettingsItemSettings412Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SettingsItemSettings412Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SettingsItemSettings412Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SettingsItemSettings412Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SettingsItemSettings412Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SettingsItemSettings412Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SettingsItemSettings412Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SettingsItemSettings412Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SettingsItemSettings412Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SettingsItemSettings412Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings422_error.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings422_error.go new file mode 100644 index 0000000..2fdbab2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings422_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SettingsItemSettings422Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SettingsItemSettings422Error instantiates a new V1beta1SettingsItemSettings422Error and sets the default values. +func NewV1beta1SettingsItemSettings422Error()(*V1beta1SettingsItemSettings422Error) { + m := &V1beta1SettingsItemSettings422Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SettingsItemSettings422ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SettingsItemSettings422ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SettingsItemSettings422Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SettingsItemSettings422Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SettingsItemSettings422Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SettingsItemSettings422Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SettingsItemSettings422Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SettingsItemSettings422Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SettingsItemSettings422Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SettingsItemSettings422Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SettingsItemSettings422Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SettingsItemSettings422Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SettingsItemSettings422Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SettingsItemSettings422Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SettingsItemSettings422Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SettingsItemSettings422Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SettingsItemSettings422Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings500_error.go new file mode 100644 index 0000000..e1e8295 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SettingsItemSettings500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SettingsItemSettings500Error instantiates a new V1beta1SettingsItemSettings500Error and sets the default values. +func NewV1beta1SettingsItemSettings500Error()(*V1beta1SettingsItemSettings500Error) { + m := &V1beta1SettingsItemSettings500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SettingsItemSettings500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SettingsItemSettings500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SettingsItemSettings500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SettingsItemSettings500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SettingsItemSettings500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SettingsItemSettings500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SettingsItemSettings500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SettingsItemSettings500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SettingsItemSettings500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SettingsItemSettings500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SettingsItemSettings500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SettingsItemSettings500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SettingsItemSettings500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SettingsItemSettings500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SettingsItemSettings500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SettingsItemSettings500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SettingsItemSettings500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings503_error.go new file mode 100644 index 0000000..350687c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SettingsItemSettings503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SettingsItemSettings503Error instantiates a new V1beta1SettingsItemSettings503Error and sets the default values. +func NewV1beta1SettingsItemSettings503Error()(*V1beta1SettingsItemSettings503Error) { + m := &V1beta1SettingsItemSettings503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SettingsItemSettings503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SettingsItemSettings503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SettingsItemSettings503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SettingsItemSettings503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SettingsItemSettings503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SettingsItemSettings503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SettingsItemSettings503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SettingsItemSettings503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SettingsItemSettings503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SettingsItemSettings503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SettingsItemSettings503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SettingsItemSettings503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SettingsItemSettings503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SettingsItemSettings503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SettingsItemSettings503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SettingsItemSettings503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SettingsItemSettings503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_get_response.go new file mode 100644 index 0000000..9cada5f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_get_response.go @@ -0,0 +1,487 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SettingsItemSettingsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The URI for console screen that displays this resource + consoleUri *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Value of the setting + currentValue *string + // The customer application identifier + customerId *string + // Description of the setting + description *string + // Name of the application to be displayed in UI + externalApplicationName *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Time when this setting was last updated for this account. RFC 3339 + lastUpdatedAt *string + // UserId of the user who last updated this setting for this account + lastUpdatedBy *string + // A system specified name for the resource. + name *string + // Next possible value of the setting, which is updated by the workflow + nextValue *string + // A JSON array (stored as string) containing possible values of this setting + possibleValues *string + // The self reference for this resource. + resourceUri *string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1SettingsItemSettingsGetResponse instantiates a new V1beta1SettingsItemSettingsGetResponse and sets the default values. +func NewV1beta1SettingsItemSettingsGetResponse()(*V1beta1SettingsItemSettingsGetResponse) { + m := &V1beta1SettingsItemSettingsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SettingsItemSettingsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SettingsItemSettingsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SettingsItemSettingsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetConsoleUri gets the consoleUri property value. The URI for console screen that displays this resource +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCurrentValue gets the currentValue property value. Value of the setting +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetCurrentValue()(*string) { + return m.currentValue +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDescription gets the description property value. Description of the setting +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetDescription()(*string) { + return m.description +} +// GetExternalApplicationName gets the externalApplicationName property value. Name of the application to be displayed in UI +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetExternalApplicationName()(*string) { + return m.externalApplicationName +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["currentValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCurrentValue(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["externalApplicationName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExternalApplicationName(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["lastUpdatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdatedAt(val) + } + return nil + } + res["lastUpdatedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdatedBy(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["nextValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNextValue(val) + } + return nil + } + res["possibleValues"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPossibleValues(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetLastUpdatedAt gets the lastUpdatedAt property value. Time when this setting was last updated for this account. RFC 3339 +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetLastUpdatedAt()(*string) { + return m.lastUpdatedAt +} +// GetLastUpdatedBy gets the lastUpdatedBy property value. UserId of the user who last updated this setting for this account +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetLastUpdatedBy()(*string) { + return m.lastUpdatedBy +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetName()(*string) { + return m.name +} +// GetNextValue gets the nextValue property value. Next possible value of the setting, which is updated by the workflow +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetNextValue()(*string) { + return m.nextValue +} +// GetPossibleValues gets the possibleValues property value. A JSON array (stored as string) containing possible values of this setting +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetPossibleValues()(*string) { + return m.possibleValues +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1SettingsItemSettingsGetResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1SettingsItemSettingsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("currentValue", m.GetCurrentValue()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("externalApplicationName", m.GetExternalApplicationName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("lastUpdatedAt", m.GetLastUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("lastUpdatedBy", m.GetLastUpdatedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("nextValue", m.GetNextValue()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("possibleValues", m.GetPossibleValues()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SettingsItemSettingsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetConsoleUri sets the consoleUri property value. The URI for console screen that displays this resource +func (m *V1beta1SettingsItemSettingsGetResponse) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1SettingsItemSettingsGetResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCurrentValue sets the currentValue property value. Value of the setting +func (m *V1beta1SettingsItemSettingsGetResponse) SetCurrentValue(value *string)() { + m.currentValue = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1SettingsItemSettingsGetResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDescription sets the description property value. Description of the setting +func (m *V1beta1SettingsItemSettingsGetResponse) SetDescription(value *string)() { + m.description = value +} +// SetExternalApplicationName sets the externalApplicationName property value. Name of the application to be displayed in UI +func (m *V1beta1SettingsItemSettingsGetResponse) SetExternalApplicationName(value *string)() { + m.externalApplicationName = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1SettingsItemSettingsGetResponse) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1SettingsItemSettingsGetResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetLastUpdatedAt sets the lastUpdatedAt property value. Time when this setting was last updated for this account. RFC 3339 +func (m *V1beta1SettingsItemSettingsGetResponse) SetLastUpdatedAt(value *string)() { + m.lastUpdatedAt = value +} +// SetLastUpdatedBy sets the lastUpdatedBy property value. UserId of the user who last updated this setting for this account +func (m *V1beta1SettingsItemSettingsGetResponse) SetLastUpdatedBy(value *string)() { + m.lastUpdatedBy = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1SettingsItemSettingsGetResponse) SetName(value *string)() { + m.name = value +} +// SetNextValue sets the nextValue property value. Next possible value of the setting, which is updated by the workflow +func (m *V1beta1SettingsItemSettingsGetResponse) SetNextValue(value *string)() { + m.nextValue = value +} +// SetPossibleValues sets the possibleValues property value. A JSON array (stored as string) containing possible values of this setting +func (m *V1beta1SettingsItemSettingsGetResponse) SetPossibleValues(value *string)() { + m.possibleValues = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1SettingsItemSettingsGetResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1SettingsItemSettingsGetResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1SettingsItemSettingsGetResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1SettingsItemSettingsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCurrentValue()(*string) + GetCustomerId()(*string) + GetDescription()(*string) + GetExternalApplicationName()(*string) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLastUpdatedAt()(*string) + GetLastUpdatedBy()(*string) + GetName()(*string) + GetNextValue()(*string) + GetPossibleValues()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCurrentValue(value *string)() + SetCustomerId(value *string)() + SetDescription(value *string)() + SetExternalApplicationName(value *string)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLastUpdatedAt(value *string)() + SetLastUpdatedBy(value *string)() + SetName(value *string)() + SetNextValue(value *string)() + SetPossibleValues(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_patch_request_body.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_patch_request_body.go new file mode 100644 index 0000000..4f9f8b1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_patch_request_body.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SettingsItemSettingsPatchRequestBody struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // New value of the Value setting + currentValue *string +} +// NewV1beta1SettingsItemSettingsPatchRequestBody instantiates a new V1beta1SettingsItemSettingsPatchRequestBody and sets the default values. +func NewV1beta1SettingsItemSettingsPatchRequestBody()(*V1beta1SettingsItemSettingsPatchRequestBody) { + m := &V1beta1SettingsItemSettingsPatchRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SettingsItemSettingsPatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SettingsItemSettingsPatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SettingsItemSettingsPatchRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SettingsItemSettingsPatchRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCurrentValue gets the currentValue property value. New value of the Value setting +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsPatchRequestBody) GetCurrentValue()(*string) { + return m.currentValue +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SettingsItemSettingsPatchRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["currentValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCurrentValue(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1SettingsItemSettingsPatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("currentValue", m.GetCurrentValue()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SettingsItemSettingsPatchRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCurrentValue sets the currentValue property value. New value of the Value setting +func (m *V1beta1SettingsItemSettingsPatchRequestBody) SetCurrentValue(value *string)() { + m.currentValue = value +} +type V1beta1SettingsItemSettingsPatchRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCurrentValue()(*string) + SetCurrentValue(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_patch_response.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_patch_response.go new file mode 100644 index 0000000..5b3c052 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_patch_response.go @@ -0,0 +1,487 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SettingsItemSettingsPatchResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The URI for console screen that displays this resource + consoleUri *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // Value of the setting + currentValue *string + // The customer application identifier + customerId *string + // Description of the setting + description *string + // Name of the application to be displayed in UI + externalApplicationName *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Time when this setting was last updated for this account. RFC 3339 + lastUpdatedAt *string + // UserId of the user who last updated this setting for this account + lastUpdatedBy *string + // A system specified name for the resource. + name *string + // Next possible value of the setting, which is updated by the workflow + nextValue *string + // A JSON array (stored as string) containing possible values of this setting + possibleValues *string + // The self reference for this resource. + resourceUri *string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1SettingsItemSettingsPatchResponse instantiates a new V1beta1SettingsItemSettingsPatchResponse and sets the default values. +func NewV1beta1SettingsItemSettingsPatchResponse()(*V1beta1SettingsItemSettingsPatchResponse) { + m := &V1beta1SettingsItemSettingsPatchResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SettingsItemSettingsPatchResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SettingsItemSettingsPatchResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SettingsItemSettingsPatchResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetConsoleUri gets the consoleUri property value. The URI for console screen that displays this resource +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCurrentValue gets the currentValue property value. Value of the setting +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetCurrentValue()(*string) { + return m.currentValue +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDescription gets the description property value. Description of the setting +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetDescription()(*string) { + return m.description +} +// GetExternalApplicationName gets the externalApplicationName property value. Name of the application to be displayed in UI +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetExternalApplicationName()(*string) { + return m.externalApplicationName +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["currentValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCurrentValue(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["externalApplicationName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetExternalApplicationName(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["lastUpdatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdatedAt(val) + } + return nil + } + res["lastUpdatedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdatedBy(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["nextValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNextValue(val) + } + return nil + } + res["possibleValues"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPossibleValues(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetLastUpdatedAt gets the lastUpdatedAt property value. Time when this setting was last updated for this account. RFC 3339 +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetLastUpdatedAt()(*string) { + return m.lastUpdatedAt +} +// GetLastUpdatedBy gets the lastUpdatedBy property value. UserId of the user who last updated this setting for this account +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetLastUpdatedBy()(*string) { + return m.lastUpdatedBy +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetName()(*string) { + return m.name +} +// GetNextValue gets the nextValue property value. Next possible value of the setting, which is updated by the workflow +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetNextValue()(*string) { + return m.nextValue +} +// GetPossibleValues gets the possibleValues property value. A JSON array (stored as string) containing possible values of this setting +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetPossibleValues()(*string) { + return m.possibleValues +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1SettingsItemSettingsPatchResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1SettingsItemSettingsPatchResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("consoleUri", m.GetConsoleUri()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("currentValue", m.GetCurrentValue()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("externalApplicationName", m.GetExternalApplicationName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("lastUpdatedAt", m.GetLastUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("lastUpdatedBy", m.GetLastUpdatedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("nextValue", m.GetNextValue()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("possibleValues", m.GetPossibleValues()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SettingsItemSettingsPatchResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetConsoleUri sets the consoleUri property value. The URI for console screen that displays this resource +func (m *V1beta1SettingsItemSettingsPatchResponse) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1SettingsItemSettingsPatchResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCurrentValue sets the currentValue property value. Value of the setting +func (m *V1beta1SettingsItemSettingsPatchResponse) SetCurrentValue(value *string)() { + m.currentValue = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1SettingsItemSettingsPatchResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDescription sets the description property value. Description of the setting +func (m *V1beta1SettingsItemSettingsPatchResponse) SetDescription(value *string)() { + m.description = value +} +// SetExternalApplicationName sets the externalApplicationName property value. Name of the application to be displayed in UI +func (m *V1beta1SettingsItemSettingsPatchResponse) SetExternalApplicationName(value *string)() { + m.externalApplicationName = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1SettingsItemSettingsPatchResponse) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1SettingsItemSettingsPatchResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetLastUpdatedAt sets the lastUpdatedAt property value. Time when this setting was last updated for this account. RFC 3339 +func (m *V1beta1SettingsItemSettingsPatchResponse) SetLastUpdatedAt(value *string)() { + m.lastUpdatedAt = value +} +// SetLastUpdatedBy sets the lastUpdatedBy property value. UserId of the user who last updated this setting for this account +func (m *V1beta1SettingsItemSettingsPatchResponse) SetLastUpdatedBy(value *string)() { + m.lastUpdatedBy = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1SettingsItemSettingsPatchResponse) SetName(value *string)() { + m.name = value +} +// SetNextValue sets the nextValue property value. Next possible value of the setting, which is updated by the workflow +func (m *V1beta1SettingsItemSettingsPatchResponse) SetNextValue(value *string)() { + m.nextValue = value +} +// SetPossibleValues sets the possibleValues property value. A JSON array (stored as string) containing possible values of this setting +func (m *V1beta1SettingsItemSettingsPatchResponse) SetPossibleValues(value *string)() { + m.possibleValues = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1SettingsItemSettingsPatchResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1SettingsItemSettingsPatchResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1SettingsItemSettingsPatchResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1SettingsItemSettingsPatchResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCurrentValue()(*string) + GetCustomerId()(*string) + GetDescription()(*string) + GetExternalApplicationName()(*string) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLastUpdatedAt()(*string) + GetLastUpdatedBy()(*string) + GetName()(*string) + GetNextValue()(*string) + GetPossibleValues()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCurrentValue(value *string)() + SetCustomerId(value *string)() + SetDescription(value *string)() + SetExternalApplicationName(value *string)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLastUpdatedAt(value *string)() + SetLastUpdatedBy(value *string)() + SetName(value *string)() + SetNextValue(value *string)() + SetPossibleValues(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_response.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_response.go new file mode 100644 index 0000000..2216629 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_item_settings_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1SettingsItemSettingsGetResponseable instead. +type V1beta1SettingsItemSettingsResponse struct { + V1beta1SettingsItemSettingsGetResponse +} +// NewV1beta1SettingsItemSettingsResponse instantiates a new V1beta1SettingsItemSettingsResponse and sets the default values. +func NewV1beta1SettingsItemSettingsResponse()(*V1beta1SettingsItemSettingsResponse) { + m := &V1beta1SettingsItemSettingsResponse{ + V1beta1SettingsItemSettingsGetResponse: *NewV1beta1SettingsItemSettingsGetResponse(), + } + return m +} +// CreateV1beta1SettingsItemSettingsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SettingsItemSettingsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SettingsItemSettingsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1SettingsItemSettingsGetResponseable instead. +type V1beta1SettingsItemSettingsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1SettingsItemSettingsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_request_builder.go new file mode 100644 index 0000000..3101f4e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_request_builder.go @@ -0,0 +1,154 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" +) + +// V1beta1SettingsRequestBuilder builds and executes requests for operations under \data-services\v1beta1\settings +type V1beta1SettingsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1SettingsRequestBuilderGetQueryParameters returns all settings values for the current account +type V1beta1SettingsRequestBuilderGetQueryParameters struct { + // The expression to use for filtering responses. You can filter on the following properties: customerId, id, name, possibleValues, currentValue, settingDescription, lastUpdatedBy, lastUpdatedAt, externalApplicationName. You can combine multiple comparison operators using AND. The comparisons supported are the following:“eq” : Valid for number, boolean and string properties.“gt” : Valid for number or string timestamp properties.“lt” : Valid for number or string timestamp properties“in” : Valid for an array of stringsSyntax:“eq” : filter= eq {host:port}/data-services/v1beta1/settings?filter= eq “gt” : filter= gt {host:port}/data-services/v1beta1/settings?filter= gt “lt” : filter= lt {host:port}/data-services/v1beta1/settings?filter= lt “in” : filter= in {host:port}/data-services/v1beta1/settings?filter= in * Use AND to filter on multiple properties: {host:port}/data-services/v1beta1/settings?filter= eq and lt * To filter multiple values on one property e.g. filter=name in ('foo','bar') {host:port}/data-services/v1beta1/settings?filter=foo%bar%20in%20severityExamples:GET /data-services/v1beta1/settings?filter=name eq 'SETTINGNAME'GET /data-services/v1beta1/settings?filter=name eq 'SETTINGNAME' and lastUpdatedBy eq 'CREATED'GET /data-services/v1beta1/settings?filter=relatedObjectType in ('NIMBLE-VOLUME')Filters are supported on following attributes:customerId,id,name,possibleValues,currentValue,settingDescription,lastUpdatedBy,lastUpdatedAt,externalApplicationName + Filter *string `uriparametername:"filter"` + // Use limit in conjunction with offset for paging. The limit is the maximum number of items to include in the response. + Limit *int32 `uriparametername:"limit"` + // Use offset in conjunction with limit for paging. The offset is the number of items from the beginning of the result set to the first item included in the response. + Offset *int32 `uriparametername:"offset"` + // A comma-separated list of properties to include in response. If this is omitted, all properties are returned. + Select *string `uriparametername:"select"` + // The property to sort by followed by a direction indicator ("asc" or "desc"). If no direction indicator is specified the default order is ascending. + Sort *string `uriparametername:"sort"` +} +// V1beta1SettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SettingsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1SettingsRequestBuilderGetQueryParameters +} +// ById gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.settings.item collection +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. +// returns a *V1beta1SettingsSettingsItemRequestBuilder when successful +func (m *V1beta1SettingsRequestBuilder) ById(id string)(*V1beta1SettingsSettingsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["id"] = id + } + return NewV1beta1SettingsSettingsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ByIdGuid gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.settings.item collection +// returns a *V1beta1SettingsSettingsItemRequestBuilder when successful +func (m *V1beta1SettingsRequestBuilder) ByIdGuid(id i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*V1beta1SettingsSettingsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["id"] = id.String() + return NewV1beta1SettingsSettingsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1SettingsRequestBuilderInternal instantiates a new V1beta1SettingsRequestBuilder and sets the default values. +func NewV1beta1SettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SettingsRequestBuilder) { + m := &V1beta1SettingsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/settings{?filter*,limit*,offset*,select*,sort*}", pathParameters), + } + return m +} +// NewV1beta1SettingsRequestBuilder instantiates a new V1beta1SettingsRequestBuilder and sets the default values. +func NewV1beta1SettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SettingsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SettingsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns all settings values for the current account +// Deprecated: This method is obsolete. Use GetAsSettingsGetResponse instead. +// returns a V1beta1SettingsResponseable when successful +// returns a V1beta1Settings400Error error when the service returns a 400 status code +// returns a V1beta1Settings401Error error when the service returns a 401 status code +// returns a V1beta1Settings403Error error when the service returns a 403 status code +// returns a V1beta1Settings404Error error when the service returns a 404 status code +// returns a V1beta1Settings422Error error when the service returns a 422 status code +// returns a V1beta1Settings500Error error when the service returns a 500 status code +// returns a V1beta1Settings503Error error when the service returns a 503 status code +func (m *V1beta1SettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1SettingsRequestBuilderGetRequestConfiguration)(V1beta1SettingsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Settings400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Settings401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Settings403ErrorFromDiscriminatorValue, + "404": CreateV1beta1Settings404ErrorFromDiscriminatorValue, + "422": CreateV1beta1Settings422ErrorFromDiscriminatorValue, + "500": CreateV1beta1Settings500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Settings503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SettingsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SettingsResponseable), nil +} +// GetAsSettingsGetResponse returns all settings values for the current account +// returns a V1beta1SettingsGetResponseable when successful +// returns a V1beta1Settings400Error error when the service returns a 400 status code +// returns a V1beta1Settings401Error error when the service returns a 401 status code +// returns a V1beta1Settings403Error error when the service returns a 403 status code +// returns a V1beta1Settings404Error error when the service returns a 404 status code +// returns a V1beta1Settings422Error error when the service returns a 422 status code +// returns a V1beta1Settings500Error error when the service returns a 500 status code +// returns a V1beta1Settings503Error error when the service returns a 503 status code +func (m *V1beta1SettingsRequestBuilder) GetAsSettingsGetResponse(ctx context.Context, requestConfiguration *V1beta1SettingsRequestBuilderGetRequestConfiguration)(V1beta1SettingsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Settings400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Settings401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Settings403ErrorFromDiscriminatorValue, + "404": CreateV1beta1Settings404ErrorFromDiscriminatorValue, + "422": CreateV1beta1Settings422ErrorFromDiscriminatorValue, + "500": CreateV1beta1Settings500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Settings503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SettingsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SettingsGetResponseable), nil +} +// ToGetRequestInformation returns all settings values for the current account +// returns a *RequestInformation when successful +func (m *V1beta1SettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1SettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1SettingsRequestBuilder when successful +func (m *V1beta1SettingsRequestBuilder) WithUrl(rawUrl string)(*V1beta1SettingsRequestBuilder) { + return NewV1beta1SettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_response.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_response.go new file mode 100644 index 0000000..24e8b41 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1SettingsGetResponseable instead. +type V1beta1SettingsResponse struct { + V1beta1SettingsGetResponse +} +// NewV1beta1SettingsResponse instantiates a new V1beta1SettingsResponse and sets the default values. +func NewV1beta1SettingsResponse()(*V1beta1SettingsResponse) { + m := &V1beta1SettingsResponse{ + V1beta1SettingsGetResponse: *NewV1beta1SettingsGetResponse(), + } + return m +} +// CreateV1beta1SettingsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SettingsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SettingsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1SettingsGetResponseable instead. +type V1beta1SettingsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1SettingsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_settings_settings_item_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_settings_settings_item_request_builder.go new file mode 100644 index 0000000..ff46d80 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_settings_settings_item_request_builder.go @@ -0,0 +1,203 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1SettingsSettingsItemRequestBuilder builds and executes requests for operations under \data-services\v1beta1\settings\{id} +type V1beta1SettingsSettingsItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1SettingsSettingsItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SettingsSettingsItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// V1beta1SettingsSettingsItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SettingsSettingsItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1SettingsSettingsItemRequestBuilderInternal instantiates a new V1beta1SettingsSettingsItemRequestBuilder and sets the default values. +func NewV1beta1SettingsSettingsItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SettingsSettingsItemRequestBuilder) { + m := &V1beta1SettingsSettingsItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/settings/{id}", pathParameters), + } + return m +} +// NewV1beta1SettingsSettingsItemRequestBuilder instantiates a new V1beta1SettingsSettingsItemRequestBuilder and sets the default values. +func NewV1beta1SettingsSettingsItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SettingsSettingsItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SettingsSettingsItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns the details of the setting with the given ID. If a value does not exist for the setting, the API returns the default value. +// Deprecated: This method is obsolete. Use GetAsSettingsGetResponse instead. +// returns a V1beta1SettingsItemSettingsResponseable when successful +// returns a V1beta1SettingsItemSettings400Error error when the service returns a 400 status code +// returns a V1beta1SettingsItemSettings401Error error when the service returns a 401 status code +// returns a V1beta1SettingsItemSettings403Error error when the service returns a 403 status code +// returns a V1beta1SettingsItemSettings404Error error when the service returns a 404 status code +// returns a V1beta1SettingsItemSettings422Error error when the service returns a 422 status code +// returns a V1beta1SettingsItemSettings500Error error when the service returns a 500 status code +// returns a V1beta1SettingsItemSettings503Error error when the service returns a 503 status code +func (m *V1beta1SettingsSettingsItemRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1SettingsSettingsItemRequestBuilderGetRequestConfiguration)(V1beta1SettingsItemSettingsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SettingsItemSettings400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SettingsItemSettings401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SettingsItemSettings403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SettingsItemSettings404ErrorFromDiscriminatorValue, + "422": CreateV1beta1SettingsItemSettings422ErrorFromDiscriminatorValue, + "500": CreateV1beta1SettingsItemSettings500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SettingsItemSettings503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SettingsItemSettingsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SettingsItemSettingsResponseable), nil +} +// GetAsSettingsGetResponse returns the details of the setting with the given ID. If a value does not exist for the setting, the API returns the default value. +// returns a V1beta1SettingsItemSettingsGetResponseable when successful +// returns a V1beta1SettingsItemSettings400Error error when the service returns a 400 status code +// returns a V1beta1SettingsItemSettings401Error error when the service returns a 401 status code +// returns a V1beta1SettingsItemSettings403Error error when the service returns a 403 status code +// returns a V1beta1SettingsItemSettings404Error error when the service returns a 404 status code +// returns a V1beta1SettingsItemSettings422Error error when the service returns a 422 status code +// returns a V1beta1SettingsItemSettings500Error error when the service returns a 500 status code +// returns a V1beta1SettingsItemSettings503Error error when the service returns a 503 status code +func (m *V1beta1SettingsSettingsItemRequestBuilder) GetAsSettingsGetResponse(ctx context.Context, requestConfiguration *V1beta1SettingsSettingsItemRequestBuilderGetRequestConfiguration)(V1beta1SettingsItemSettingsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SettingsItemSettings400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SettingsItemSettings401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SettingsItemSettings403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SettingsItemSettings404ErrorFromDiscriminatorValue, + "422": CreateV1beta1SettingsItemSettings422ErrorFromDiscriminatorValue, + "500": CreateV1beta1SettingsItemSettings500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SettingsItemSettings503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SettingsItemSettingsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SettingsItemSettingsGetResponseable), nil +} +// Patch changes the value of the given setting. +// Deprecated: This method is obsolete. Use PatchAsSettingsPatchResponse instead. +// returns a V1beta1SettingsItemSettingsResponseable when successful +// returns a V1beta1SettingsItemSettings400Error error when the service returns a 400 status code +// returns a V1beta1SettingsItemSettings401Error error when the service returns a 401 status code +// returns a V1beta1SettingsItemSettings403Error error when the service returns a 403 status code +// returns a V1beta1SettingsItemSettings404Error error when the service returns a 404 status code +// returns a V1beta1SettingsItemSettings412Error error when the service returns a 412 status code +// returns a V1beta1SettingsItemSettings422Error error when the service returns a 422 status code +// returns a V1beta1SettingsItemSettings500Error error when the service returns a 500 status code +// returns a V1beta1SettingsItemSettings503Error error when the service returns a 503 status code +func (m *V1beta1SettingsSettingsItemRequestBuilder) Patch(ctx context.Context, body V1beta1SettingsItemSettingsPatchRequestBodyable, requestConfiguration *V1beta1SettingsSettingsItemRequestBuilderPatchRequestConfiguration)(V1beta1SettingsItemSettingsResponseable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SettingsItemSettings400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SettingsItemSettings401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SettingsItemSettings403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SettingsItemSettings404ErrorFromDiscriminatorValue, + "412": CreateV1beta1SettingsItemSettings412ErrorFromDiscriminatorValue, + "422": CreateV1beta1SettingsItemSettings422ErrorFromDiscriminatorValue, + "500": CreateV1beta1SettingsItemSettings500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SettingsItemSettings503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SettingsItemSettingsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SettingsItemSettingsResponseable), nil +} +// PatchAsSettingsPatchResponse changes the value of the given setting. +// returns a V1beta1SettingsItemSettingsPatchResponseable when successful +// returns a V1beta1SettingsItemSettings400Error error when the service returns a 400 status code +// returns a V1beta1SettingsItemSettings401Error error when the service returns a 401 status code +// returns a V1beta1SettingsItemSettings403Error error when the service returns a 403 status code +// returns a V1beta1SettingsItemSettings404Error error when the service returns a 404 status code +// returns a V1beta1SettingsItemSettings412Error error when the service returns a 412 status code +// returns a V1beta1SettingsItemSettings422Error error when the service returns a 422 status code +// returns a V1beta1SettingsItemSettings500Error error when the service returns a 500 status code +// returns a V1beta1SettingsItemSettings503Error error when the service returns a 503 status code +func (m *V1beta1SettingsSettingsItemRequestBuilder) PatchAsSettingsPatchResponse(ctx context.Context, body V1beta1SettingsItemSettingsPatchRequestBodyable, requestConfiguration *V1beta1SettingsSettingsItemRequestBuilderPatchRequestConfiguration)(V1beta1SettingsItemSettingsPatchResponseable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SettingsItemSettings400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SettingsItemSettings401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SettingsItemSettings403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SettingsItemSettings404ErrorFromDiscriminatorValue, + "412": CreateV1beta1SettingsItemSettings412ErrorFromDiscriminatorValue, + "422": CreateV1beta1SettingsItemSettings422ErrorFromDiscriminatorValue, + "500": CreateV1beta1SettingsItemSettings500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SettingsItemSettings503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SettingsItemSettingsPatchResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SettingsItemSettingsPatchResponseable), nil +} +// ToGetRequestInformation returns the details of the setting with the given ID. If a value does not exist for the setting, the API returns the default value. +// returns a *RequestInformation when successful +func (m *V1beta1SettingsSettingsItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1SettingsSettingsItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation changes the value of the given setting. +// returns a *RequestInformation when successful +func (m *V1beta1SettingsSettingsItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body V1beta1SettingsItemSettingsPatchRequestBodyable, requestConfiguration *V1beta1SettingsSettingsItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/merge-patch+json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1SettingsSettingsItemRequestBuilder when successful +func (m *V1beta1SettingsSettingsItemRequestBuilder) WithUrl(rawUrl string)(*V1beta1SettingsSettingsItemRequestBuilder) { + return NewV1beta1SettingsSettingsItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release400_error.go new file mode 100644 index 0000000..8558716 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareComponentsItemInstallRelease400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareComponentsItemInstallRelease400Error instantiates a new V1beta1SoftwareComponentsItemInstallRelease400Error and sets the default values. +func NewV1beta1SoftwareComponentsItemInstallRelease400Error()(*V1beta1SoftwareComponentsItemInstallRelease400Error) { + m := &V1beta1SoftwareComponentsItemInstallRelease400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareComponentsItemInstallRelease400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareComponentsItemInstallRelease400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareComponentsItemInstallRelease400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareComponentsItemInstallRelease400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareComponentsItemInstallRelease400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareComponentsItemInstallRelease400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareComponentsItemInstallRelease400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareComponentsItemInstallRelease400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareComponentsItemInstallRelease400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareComponentsItemInstallRelease400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release401_error.go new file mode 100644 index 0000000..acb1124 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareComponentsItemInstallRelease401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareComponentsItemInstallRelease401Error instantiates a new V1beta1SoftwareComponentsItemInstallRelease401Error and sets the default values. +func NewV1beta1SoftwareComponentsItemInstallRelease401Error()(*V1beta1SoftwareComponentsItemInstallRelease401Error) { + m := &V1beta1SoftwareComponentsItemInstallRelease401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareComponentsItemInstallRelease401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareComponentsItemInstallRelease401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareComponentsItemInstallRelease401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareComponentsItemInstallRelease401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareComponentsItemInstallRelease401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareComponentsItemInstallRelease401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareComponentsItemInstallRelease401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareComponentsItemInstallRelease401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareComponentsItemInstallRelease401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareComponentsItemInstallRelease401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release404_error.go new file mode 100644 index 0000000..fbdf897 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareComponentsItemInstallRelease404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareComponentsItemInstallRelease404Error instantiates a new V1beta1SoftwareComponentsItemInstallRelease404Error and sets the default values. +func NewV1beta1SoftwareComponentsItemInstallRelease404Error()(*V1beta1SoftwareComponentsItemInstallRelease404Error) { + m := &V1beta1SoftwareComponentsItemInstallRelease404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareComponentsItemInstallRelease404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareComponentsItemInstallRelease404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareComponentsItemInstallRelease404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareComponentsItemInstallRelease404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareComponentsItemInstallRelease404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareComponentsItemInstallRelease404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareComponentsItemInstallRelease404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareComponentsItemInstallRelease404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareComponentsItemInstallRelease404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareComponentsItemInstallRelease404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release500_error.go new file mode 100644 index 0000000..07a7033 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareComponentsItemInstallRelease500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareComponentsItemInstallRelease500Error instantiates a new V1beta1SoftwareComponentsItemInstallRelease500Error and sets the default values. +func NewV1beta1SoftwareComponentsItemInstallRelease500Error()(*V1beta1SoftwareComponentsItemInstallRelease500Error) { + m := &V1beta1SoftwareComponentsItemInstallRelease500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareComponentsItemInstallRelease500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareComponentsItemInstallRelease500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareComponentsItemInstallRelease500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareComponentsItemInstallRelease500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareComponentsItemInstallRelease500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareComponentsItemInstallRelease500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareComponentsItemInstallRelease500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareComponentsItemInstallRelease500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareComponentsItemInstallRelease500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareComponentsItemInstallRelease500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release503_error.go new file mode 100644 index 0000000..d63f1fa --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareComponentsItemInstallRelease503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareComponentsItemInstallRelease503Error instantiates a new V1beta1SoftwareComponentsItemInstallRelease503Error and sets the default values. +func NewV1beta1SoftwareComponentsItemInstallRelease503Error()(*V1beta1SoftwareComponentsItemInstallRelease503Error) { + m := &V1beta1SoftwareComponentsItemInstallRelease503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareComponentsItemInstallRelease503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareComponentsItemInstallRelease503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareComponentsItemInstallRelease503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallRelease503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareComponentsItemInstallRelease503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareComponentsItemInstallRelease503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareComponentsItemInstallRelease503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareComponentsItemInstallRelease503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareComponentsItemInstallRelease503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareComponentsItemInstallRelease503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareComponentsItemInstallRelease503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response.go new file mode 100644 index 0000000..a1c7710 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response.go @@ -0,0 +1,401 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareComponentsItemInstallReleaseGetResponse a release of software. +type V1beta1SoftwareComponentsItemInstallReleaseGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // Whether the files within the Software Release can be downloaded. + downloadable *bool + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // A system specified name for the resource. + name *string + // The self reference for this resource. + resourceUri *string + // The metadata for files within a Software Release. + signature V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signatureable + // The metadata for files within a Software Release. + software V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareable + // The Software Component a Software Release belongs to. + softwareComponent V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponentable + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The version of a Software Release. + version *string +} +// NewV1beta1SoftwareComponentsItemInstallReleaseGetResponse instantiates a new V1beta1SoftwareComponentsItemInstallReleaseGetResponse and sets the default values. +func NewV1beta1SoftwareComponentsItemInstallReleaseGetResponse()(*V1beta1SoftwareComponentsItemInstallReleaseGetResponse) { + m := &V1beta1SoftwareComponentsItemInstallReleaseGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareComponentsItemInstallReleaseGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareComponentsItemInstallReleaseGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareComponentsItemInstallReleaseGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDownloadable gets the downloadable property value. Whether the files within the Software Release can be downloaded. +// returns a *bool when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) GetDownloadable()(*bool) { + return m.downloadable +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["downloadable"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetDownloadable(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["signature"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SoftwareComponentsItemInstallReleaseGetResponse_signatureFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSignature(val.(V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signatureable)) + } + return nil + } + res["software"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSoftware(val.(V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareable)) + } + return nil + } + res["softwareComponent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSoftwareComponent(val.(V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponentable)) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + res["version"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetVersion(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSignature gets the signature property value. The metadata for files within a Software Release. +// returns a V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signatureable when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) GetSignature()(V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signatureable) { + return m.signature +} +// GetSoftware gets the software property value. The metadata for files within a Software Release. +// returns a V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareable when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) GetSoftware()(V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareable) { + return m.software +} +// GetSoftwareComponent gets the softwareComponent property value. The Software Component a Software Release belongs to. +// returns a V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponentable when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) GetSoftwareComponent()(V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponentable) { + return m.softwareComponent +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// GetVersion gets the version property value. The version of a Software Release. +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) GetVersion()(*string) { + return m.version +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("downloadable", m.GetDownloadable()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("signature", m.GetSignature()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("software", m.GetSoftware()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("softwareComponent", m.GetSoftwareComponent()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("version", m.GetVersion()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDownloadable sets the downloadable property value. Whether the files within the Software Release can be downloaded. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) SetDownloadable(value *bool)() { + m.downloadable = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSignature sets the signature property value. The metadata for files within a Software Release. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) SetSignature(value V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signatureable)() { + m.signature = value +} +// SetSoftware sets the software property value. The metadata for files within a Software Release. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) SetSoftware(value V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareable)() { + m.software = value +} +// SetSoftwareComponent sets the softwareComponent property value. The Software Component a Software Release belongs to. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) SetSoftwareComponent(value V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponentable)() { + m.softwareComponent = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +// SetVersion sets the version property value. The version of a Software Release. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse) SetVersion(value *string)() { + m.version = value +} +type V1beta1SoftwareComponentsItemInstallReleaseGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDownloadable()(*bool) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetSignature()(V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signatureable) + GetSoftware()(V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareable) + GetSoftwareComponent()(V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponentable) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetVersion()(*string) + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDownloadable(value *bool)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetSignature(value V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signatureable)() + SetSoftware(value V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareable)() + SetSoftwareComponent(value V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponentable)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetVersion(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response_escaped_signature.go b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response_escaped_signature.go new file mode 100644 index 0000000..17e7ab1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response_escaped_signature.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature the metadata for files within a Software Release. +type V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The name of a file in a Software Release. + filename *string + // The SHA-256 checksum of a file in a Software Release in hexadecimal. + sha256Checksum *string + // The sizeInBytes property + sizeInBytes *int64 +} +// NewV1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature instantiates a new V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature and sets the default values. +func NewV1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature()(*V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature) { + m := &V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareComponentsItemInstallReleaseGetResponse_signatureFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareComponentsItemInstallReleaseGetResponse_signatureFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["filename"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFilename(val) + } + return nil + } + res["sha256Checksum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha256Checksum(val) + } + return nil + } + res["sizeInBytes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetSizeInBytes(val) + } + return nil + } + return res +} +// GetFilename gets the filename property value. The name of a file in a Software Release. +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature) GetFilename()(*string) { + return m.filename +} +// GetSha256Checksum gets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature) GetSha256Checksum()(*string) { + return m.sha256Checksum +} +// GetSizeInBytes gets the sizeInBytes property value. The sizeInBytes property +// returns a *int64 when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature) GetSizeInBytes()(*int64) { + return m.sizeInBytes +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("filename", m.GetFilename()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sha256Checksum", m.GetSha256Checksum()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("sizeInBytes", m.GetSizeInBytes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetFilename sets the filename property value. The name of a file in a Software Release. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature) SetFilename(value *string)() { + m.filename = value +} +// SetSha256Checksum sets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature) SetSha256Checksum(value *string)() { + m.sha256Checksum = value +} +// SetSizeInBytes sets the sizeInBytes property value. The sizeInBytes property +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signature) SetSizeInBytes(value *int64)() { + m.sizeInBytes = value +} +type V1beta1SoftwareComponentsItemInstallReleaseGetResponse_signatureable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetFilename()(*string) + GetSha256Checksum()(*string) + GetSizeInBytes()(*int64) + SetFilename(value *string)() + SetSha256Checksum(value *string)() + SetSizeInBytes(value *int64)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response_escaped_software.go b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response_escaped_software.go new file mode 100644 index 0000000..9c77927 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response_escaped_software.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareComponentsItemInstallReleaseGetResponse_software the metadata for files within a Software Release. +type V1beta1SoftwareComponentsItemInstallReleaseGetResponse_software struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The name of a file in a Software Release. + filename *string + // The SHA-256 checksum of a file in a Software Release in hexadecimal. + sha256Checksum *string + // The sizeInBytes property + sizeInBytes *int64 +} +// NewV1beta1SoftwareComponentsItemInstallReleaseGetResponse_software instantiates a new V1beta1SoftwareComponentsItemInstallReleaseGetResponse_software and sets the default values. +func NewV1beta1SoftwareComponentsItemInstallReleaseGetResponse_software()(*V1beta1SoftwareComponentsItemInstallReleaseGetResponse_software) { + m := &V1beta1SoftwareComponentsItemInstallReleaseGetResponse_software{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareComponentsItemInstallReleaseGetResponse_software(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_software) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_software) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["filename"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFilename(val) + } + return nil + } + res["sha256Checksum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha256Checksum(val) + } + return nil + } + res["sizeInBytes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetSizeInBytes(val) + } + return nil + } + return res +} +// GetFilename gets the filename property value. The name of a file in a Software Release. +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_software) GetFilename()(*string) { + return m.filename +} +// GetSha256Checksum gets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_software) GetSha256Checksum()(*string) { + return m.sha256Checksum +} +// GetSizeInBytes gets the sizeInBytes property value. The sizeInBytes property +// returns a *int64 when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_software) GetSizeInBytes()(*int64) { + return m.sizeInBytes +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_software) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("filename", m.GetFilename()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sha256Checksum", m.GetSha256Checksum()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("sizeInBytes", m.GetSizeInBytes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_software) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetFilename sets the filename property value. The name of a file in a Software Release. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_software) SetFilename(value *string)() { + m.filename = value +} +// SetSha256Checksum sets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_software) SetSha256Checksum(value *string)() { + m.sha256Checksum = value +} +// SetSizeInBytes sets the sizeInBytes property value. The sizeInBytes property +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_software) SetSizeInBytes(value *int64)() { + m.sizeInBytes = value +} +type V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetFilename()(*string) + GetSha256Checksum()(*string) + GetSizeInBytes()(*int64) + SetFilename(value *string)() + SetSha256Checksum(value *string)() + SetSizeInBytes(value *int64)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response_escaped_software_component.go b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response_escaped_software_component.go new file mode 100644 index 0000000..a714ddf --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_get_response_escaped_software_component.go @@ -0,0 +1,128 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent the Software Component a Software Release belongs to. +type V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The ID of the resource. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The name property + name *string + // The type property + typeEscaped *string +} +// NewV1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent instantiates a new V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent and sets the default values. +func NewV1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent()(*V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent) { + m := &V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The ID of the resource. +// returns a *UUID when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent) GetName()(*string) { + return m.name +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The ID of the resource. +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. The name property +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent) SetName(value *string)() { + m.name = value +} +// SetTypeEscaped sets the type property value. The type property +func (m *V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponent) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1SoftwareComponentsItemInstallReleaseGetResponse_softwareComponentable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetTypeEscaped()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_request_builder.go new file mode 100644 index 0000000..01dcb8b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_request_builder.go @@ -0,0 +1,104 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1SoftwareComponentsItemInstallReleaseRequestBuilder builds and executes requests for operations under \data-services\v1beta1\software-components\{id}\install-release +type V1beta1SoftwareComponentsItemInstallReleaseRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1SoftwareComponentsItemInstallReleaseRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SoftwareComponentsItemInstallReleaseRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1SoftwareComponentsItemInstallReleaseRequestBuilderInternal instantiates a new V1beta1SoftwareComponentsItemInstallReleaseRequestBuilder and sets the default values. +func NewV1beta1SoftwareComponentsItemInstallReleaseRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareComponentsItemInstallReleaseRequestBuilder) { + m := &V1beta1SoftwareComponentsItemInstallReleaseRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/software-components/{id}/install-release", pathParameters), + } + return m +} +// NewV1beta1SoftwareComponentsItemInstallReleaseRequestBuilder instantiates a new V1beta1SoftwareComponentsItemInstallReleaseRequestBuilder and sets the default values. +func NewV1beta1SoftwareComponentsItemInstallReleaseRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareComponentsItemInstallReleaseRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SoftwareComponentsItemInstallReleaseRequestBuilderInternal(urlParams, requestAdapter) +} +// Get find the latest stable Software Release that can be installed for the specified Software Component. A Software Release is considered stable if the stability property is set to `GENERAL_AVAILABILITY`. +// Deprecated: This method is obsolete. Use GetAsInstallReleaseGetResponse instead. +// returns a V1beta1SoftwareComponentsItemInstallReleaseResponseable when successful +// returns a V1beta1SoftwareComponentsItemInstallRelease400Error error when the service returns a 400 status code +// returns a V1beta1SoftwareComponentsItemInstallRelease401Error error when the service returns a 401 status code +// returns a V1beta1SoftwareComponentsItemInstallRelease404Error error when the service returns a 404 status code +// returns a V1beta1SoftwareComponentsItemInstallRelease500Error error when the service returns a 500 status code +// returns a V1beta1SoftwareComponentsItemInstallRelease503Error error when the service returns a 503 status code +func (m *V1beta1SoftwareComponentsItemInstallReleaseRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1SoftwareComponentsItemInstallReleaseRequestBuilderGetRequestConfiguration)(V1beta1SoftwareComponentsItemInstallReleaseResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SoftwareComponentsItemInstallRelease400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SoftwareComponentsItemInstallRelease401ErrorFromDiscriminatorValue, + "404": CreateV1beta1SoftwareComponentsItemInstallRelease404ErrorFromDiscriminatorValue, + "500": CreateV1beta1SoftwareComponentsItemInstallRelease500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SoftwareComponentsItemInstallRelease503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SoftwareComponentsItemInstallReleaseResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SoftwareComponentsItemInstallReleaseResponseable), nil +} +// GetAsInstallReleaseGetResponse find the latest stable Software Release that can be installed for the specified Software Component. A Software Release is considered stable if the stability property is set to `GENERAL_AVAILABILITY`. +// returns a V1beta1SoftwareComponentsItemInstallReleaseGetResponseable when successful +// returns a V1beta1SoftwareComponentsItemInstallRelease400Error error when the service returns a 400 status code +// returns a V1beta1SoftwareComponentsItemInstallRelease401Error error when the service returns a 401 status code +// returns a V1beta1SoftwareComponentsItemInstallRelease404Error error when the service returns a 404 status code +// returns a V1beta1SoftwareComponentsItemInstallRelease500Error error when the service returns a 500 status code +// returns a V1beta1SoftwareComponentsItemInstallRelease503Error error when the service returns a 503 status code +func (m *V1beta1SoftwareComponentsItemInstallReleaseRequestBuilder) GetAsInstallReleaseGetResponse(ctx context.Context, requestConfiguration *V1beta1SoftwareComponentsItemInstallReleaseRequestBuilderGetRequestConfiguration)(V1beta1SoftwareComponentsItemInstallReleaseGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SoftwareComponentsItemInstallRelease400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SoftwareComponentsItemInstallRelease401ErrorFromDiscriminatorValue, + "404": CreateV1beta1SoftwareComponentsItemInstallRelease404ErrorFromDiscriminatorValue, + "500": CreateV1beta1SoftwareComponentsItemInstallRelease500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SoftwareComponentsItemInstallRelease503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SoftwareComponentsItemInstallReleaseGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SoftwareComponentsItemInstallReleaseGetResponseable), nil +} +// ToGetRequestInformation find the latest stable Software Release that can be installed for the specified Software Component. A Software Release is considered stable if the stability property is set to `GENERAL_AVAILABILITY`. +// returns a *RequestInformation when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1SoftwareComponentsItemInstallReleaseRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1SoftwareComponentsItemInstallReleaseRequestBuilder when successful +func (m *V1beta1SoftwareComponentsItemInstallReleaseRequestBuilder) WithUrl(rawUrl string)(*V1beta1SoftwareComponentsItemInstallReleaseRequestBuilder) { + return NewV1beta1SoftwareComponentsItemInstallReleaseRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_response.go b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_response.go new file mode 100644 index 0000000..bf6a6c7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_components_item_install_release_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareComponentsItemInstallReleaseResponse a release of software. +// Deprecated: This class is obsolete. Use V1beta1SoftwareComponentsItemInstallReleaseGetResponseable instead. +type V1beta1SoftwareComponentsItemInstallReleaseResponse struct { + V1beta1SoftwareComponentsItemInstallReleaseGetResponse +} +// NewV1beta1SoftwareComponentsItemInstallReleaseResponse instantiates a new V1beta1SoftwareComponentsItemInstallReleaseResponse and sets the default values. +func NewV1beta1SoftwareComponentsItemInstallReleaseResponse()(*V1beta1SoftwareComponentsItemInstallReleaseResponse) { + m := &V1beta1SoftwareComponentsItemInstallReleaseResponse{ + V1beta1SoftwareComponentsItemInstallReleaseGetResponse: *NewV1beta1SoftwareComponentsItemInstallReleaseGetResponse(), + } + return m +} +// CreateV1beta1SoftwareComponentsItemInstallReleaseResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareComponentsItemInstallReleaseResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareComponentsItemInstallReleaseResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1SoftwareComponentsItemInstallReleaseGetResponseable instead. +type V1beta1SoftwareComponentsItemInstallReleaseResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1SoftwareComponentsItemInstallReleaseGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_components_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_software_components_request_builder.go new file mode 100644 index 0000000..265d4b4 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_components_request_builder.go @@ -0,0 +1,47 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" +) + +// V1beta1SoftwareComponentsRequestBuilder builds and executes requests for operations under \data-services\v1beta1\software-components +type V1beta1SoftwareComponentsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ById gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.softwareComponents.item collection +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. +// returns a *V1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilder when successful +func (m *V1beta1SoftwareComponentsRequestBuilder) ById(id string)(*V1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["id"] = id + } + return NewV1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ByIdGuid gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.softwareComponents.item collection +// returns a *V1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilder when successful +func (m *V1beta1SoftwareComponentsRequestBuilder) ByIdGuid(id i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*V1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["id"] = id.String() + return NewV1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1SoftwareComponentsRequestBuilderInternal instantiates a new V1beta1SoftwareComponentsRequestBuilder and sets the default values. +func NewV1beta1SoftwareComponentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareComponentsRequestBuilder) { + m := &V1beta1SoftwareComponentsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/software-components", pathParameters), + } + return m +} +// NewV1beta1SoftwareComponentsRequestBuilder instantiates a new V1beta1SoftwareComponentsRequestBuilder and sets the default values. +func NewV1beta1SoftwareComponentsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareComponentsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SoftwareComponentsRequestBuilderInternal(urlParams, requestAdapter) +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_components_software_components_item_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_software_components_software_components_item_request_builder.go new file mode 100644 index 0000000..bb5181b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_components_software_components_item_request_builder.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilder builds and executes requests for operations under \data-services\v1beta1\software-components\{id} +type V1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// NewV1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilderInternal instantiates a new V1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilder and sets the default values. +func NewV1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilder) { + m := &V1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/software-components/{id}", pathParameters), + } + return m +} +// NewV1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilder instantiates a new V1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilder and sets the default values. +func NewV1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilderInternal(urlParams, requestAdapter) +} +// InstallRelease the installRelease property +// returns a *V1beta1SoftwareComponentsItemInstallReleaseRequestBuilder when successful +func (m *V1beta1SoftwareComponentsSoftwareComponentsItemRequestBuilder) InstallRelease()(*V1beta1SoftwareComponentsItemInstallReleaseRequestBuilder) { + return NewV1beta1SoftwareComponentsItemInstallReleaseRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases400_error.go new file mode 100644 index 0000000..88d5102 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleases400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleases400Error instantiates a new V1beta1SoftwareReleases400Error and sets the default values. +func NewV1beta1SoftwareReleases400Error()(*V1beta1SoftwareReleases400Error) { + m := &V1beta1SoftwareReleases400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleases400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleases400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleases400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleases400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleases400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleases400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleases400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleases400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleases400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleases400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleases400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleases400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleases400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleases400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleases400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleases400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleases400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases401_error.go new file mode 100644 index 0000000..deef0d6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleases401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleases401Error instantiates a new V1beta1SoftwareReleases401Error and sets the default values. +func NewV1beta1SoftwareReleases401Error()(*V1beta1SoftwareReleases401Error) { + m := &V1beta1SoftwareReleases401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleases401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleases401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleases401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleases401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleases401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleases401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleases401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleases401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleases401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleases401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleases401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleases401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleases401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleases401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleases401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleases401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleases401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases500_error.go new file mode 100644 index 0000000..1928833 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleases500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleases500Error instantiates a new V1beta1SoftwareReleases500Error and sets the default values. +func NewV1beta1SoftwareReleases500Error()(*V1beta1SoftwareReleases500Error) { + m := &V1beta1SoftwareReleases500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleases500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleases500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleases500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleases500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleases500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleases500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleases500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleases500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleases500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleases500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleases500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleases500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleases500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleases500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleases500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleases500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleases500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases503_error.go new file mode 100644 index 0000000..213838c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleases503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleases503Error instantiates a new V1beta1SoftwareReleases503Error and sets the default values. +func NewV1beta1SoftwareReleases503Error()(*V1beta1SoftwareReleases503Error) { + m := &V1beta1SoftwareReleases503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleases503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleases503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleases503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleases503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleases503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleases503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleases503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleases503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleases503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleases503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleases503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleases503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleases503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleases503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleases503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleases503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleases503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response.go new file mode 100644 index 0000000..310b3c0 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response.go @@ -0,0 +1,180 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareReleasesGetResponse a list of Software Releases from a list query. +type V1beta1SoftwareReleasesGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Number of items in this response. + count *int32 + // The software releases returned by the query. + items []V1beta1SoftwareReleasesGetResponse_itemsable + // The offset query parameter from the request. + offset *int32 + // Total number of items matching the filter parameter in the request. + total *int32 +} +// NewV1beta1SoftwareReleasesGetResponse instantiates a new V1beta1SoftwareReleasesGetResponse and sets the default values. +func NewV1beta1SoftwareReleasesGetResponse()(*V1beta1SoftwareReleasesGetResponse) { + m := &V1beta1SoftwareReleasesGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Number of items in this response. +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SoftwareReleasesGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SoftwareReleasesGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SoftwareReleasesGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetItems gets the items property value. The software releases returned by the query. +// returns a []V1beta1SoftwareReleasesGetResponse_itemsable when successful +func (m *V1beta1SoftwareReleasesGetResponse) GetItems()([]V1beta1SoftwareReleasesGetResponse_itemsable) { + return m.items +} +// GetOffset gets the offset property value. The offset query parameter from the request. +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetTotal gets the total property value. Total number of items matching the filter parameter in the request. +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Number of items in this response. +func (m *V1beta1SoftwareReleasesGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. The software releases returned by the query. +func (m *V1beta1SoftwareReleasesGetResponse) SetItems(value []V1beta1SoftwareReleasesGetResponse_itemsable)() { + m.items = value +} +// SetOffset sets the offset property value. The offset query parameter from the request. +func (m *V1beta1SoftwareReleasesGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetTotal sets the total property value. Total number of items matching the filter parameter in the request. +func (m *V1beta1SoftwareReleasesGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1SoftwareReleasesGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1SoftwareReleasesGetResponse_itemsable) + GetOffset()(*int32) + GetTotal()(*int32) + SetCount(value *int32)() + SetItems(value []V1beta1SoftwareReleasesGetResponse_itemsable)() + SetOffset(value *int32)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items.go new file mode 100644 index 0000000..6fa7477 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items.go @@ -0,0 +1,401 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareReleasesGetResponse_items a release of software. +type V1beta1SoftwareReleasesGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // Whether the files within the Software Release can be downloaded. + downloadable *bool + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // A system specified name for the resource. + name *string + // The self reference for this resource. + resourceUri *string + // The metadata for files within a Software Release. + signature V1beta1SoftwareReleasesGetResponse_items_signatureable + // The metadata for files within a Software Release. + software V1beta1SoftwareReleasesGetResponse_items_softwareable + // The Software Component a Software Release belongs to. + softwareComponent V1beta1SoftwareReleasesGetResponse_items_softwareComponentable + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The version of a Software Release. + version *string +} +// NewV1beta1SoftwareReleasesGetResponse_items instantiates a new V1beta1SoftwareReleasesGetResponse_items and sets the default values. +func NewV1beta1SoftwareReleasesGetResponse_items()(*V1beta1SoftwareReleasesGetResponse_items) { + m := &V1beta1SoftwareReleasesGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1SoftwareReleasesGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1SoftwareReleasesGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetDownloadable gets the downloadable property value. Whether the files within the Software Release can be downloaded. +// returns a *bool when successful +func (m *V1beta1SoftwareReleasesGetResponse_items) GetDownloadable()(*bool) { + return m.downloadable +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["downloadable"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetDownloadable(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["signature"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SoftwareReleasesGetResponse_items_signatureFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSignature(val.(V1beta1SoftwareReleasesGetResponse_items_signatureable)) + } + return nil + } + res["software"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SoftwareReleasesGetResponse_items_softwareFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSoftware(val.(V1beta1SoftwareReleasesGetResponse_items_softwareable)) + } + return nil + } + res["softwareComponent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SoftwareReleasesGetResponse_items_softwareComponentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSoftwareComponent(val.(V1beta1SoftwareReleasesGetResponse_items_softwareComponentable)) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + res["version"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetVersion(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1SoftwareReleasesGetResponse_items) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1SoftwareReleasesGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesGetResponse_items) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSignature gets the signature property value. The metadata for files within a Software Release. +// returns a V1beta1SoftwareReleasesGetResponse_items_signatureable when successful +func (m *V1beta1SoftwareReleasesGetResponse_items) GetSignature()(V1beta1SoftwareReleasesGetResponse_items_signatureable) { + return m.signature +} +// GetSoftware gets the software property value. The metadata for files within a Software Release. +// returns a V1beta1SoftwareReleasesGetResponse_items_softwareable when successful +func (m *V1beta1SoftwareReleasesGetResponse_items) GetSoftware()(V1beta1SoftwareReleasesGetResponse_items_softwareable) { + return m.software +} +// GetSoftwareComponent gets the softwareComponent property value. The Software Component a Software Release belongs to. +// returns a V1beta1SoftwareReleasesGetResponse_items_softwareComponentable when successful +func (m *V1beta1SoftwareReleasesGetResponse_items) GetSoftwareComponent()(V1beta1SoftwareReleasesGetResponse_items_softwareComponentable) { + return m.softwareComponent +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1SoftwareReleasesGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// GetVersion gets the version property value. The version of a Software Release. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesGetResponse_items) GetVersion()(*string) { + return m.version +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("downloadable", m.GetDownloadable()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("signature", m.GetSignature()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("software", m.GetSoftware()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("softwareComponent", m.GetSoftwareComponent()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("version", m.GetVersion()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1SoftwareReleasesGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1SoftwareReleasesGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDownloadable sets the downloadable property value. Whether the files within the Software Release can be downloaded. +func (m *V1beta1SoftwareReleasesGetResponse_items) SetDownloadable(value *bool)() { + m.downloadable = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1SoftwareReleasesGetResponse_items) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1SoftwareReleasesGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1SoftwareReleasesGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1SoftwareReleasesGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSignature sets the signature property value. The metadata for files within a Software Release. +func (m *V1beta1SoftwareReleasesGetResponse_items) SetSignature(value V1beta1SoftwareReleasesGetResponse_items_signatureable)() { + m.signature = value +} +// SetSoftware sets the software property value. The metadata for files within a Software Release. +func (m *V1beta1SoftwareReleasesGetResponse_items) SetSoftware(value V1beta1SoftwareReleasesGetResponse_items_softwareable)() { + m.software = value +} +// SetSoftwareComponent sets the softwareComponent property value. The Software Component a Software Release belongs to. +func (m *V1beta1SoftwareReleasesGetResponse_items) SetSoftwareComponent(value V1beta1SoftwareReleasesGetResponse_items_softwareComponentable)() { + m.softwareComponent = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1SoftwareReleasesGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1SoftwareReleasesGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +// SetVersion sets the version property value. The version of a Software Release. +func (m *V1beta1SoftwareReleasesGetResponse_items) SetVersion(value *string)() { + m.version = value +} +type V1beta1SoftwareReleasesGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDownloadable()(*bool) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetSignature()(V1beta1SoftwareReleasesGetResponse_items_signatureable) + GetSoftware()(V1beta1SoftwareReleasesGetResponse_items_softwareable) + GetSoftwareComponent()(V1beta1SoftwareReleasesGetResponse_items_softwareComponentable) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetVersion()(*string) + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDownloadable(value *bool)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetSignature(value V1beta1SoftwareReleasesGetResponse_items_signatureable)() + SetSoftware(value V1beta1SoftwareReleasesGetResponse_items_softwareable)() + SetSoftwareComponent(value V1beta1SoftwareReleasesGetResponse_items_softwareComponentable)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetVersion(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items_escaped_signature.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items_escaped_signature.go new file mode 100644 index 0000000..f70831b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items_escaped_signature.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareReleasesGetResponse_items_signature the metadata for files within a Software Release. +type V1beta1SoftwareReleasesGetResponse_items_signature struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The name of a file in a Software Release. + filename *string + // The SHA-256 checksum of a file in a Software Release in hexadecimal. + sha256Checksum *string + // The sizeInBytes property + sizeInBytes *int64 +} +// NewV1beta1SoftwareReleasesGetResponse_items_signature instantiates a new V1beta1SoftwareReleasesGetResponse_items_signature and sets the default values. +func NewV1beta1SoftwareReleasesGetResponse_items_signature()(*V1beta1SoftwareReleasesGetResponse_items_signature) { + m := &V1beta1SoftwareReleasesGetResponse_items_signature{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesGetResponse_items_signatureFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesGetResponse_items_signatureFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesGetResponse_items_signature(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesGetResponse_items_signature) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesGetResponse_items_signature) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["filename"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFilename(val) + } + return nil + } + res["sha256Checksum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha256Checksum(val) + } + return nil + } + res["sizeInBytes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetSizeInBytes(val) + } + return nil + } + return res +} +// GetFilename gets the filename property value. The name of a file in a Software Release. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesGetResponse_items_signature) GetFilename()(*string) { + return m.filename +} +// GetSha256Checksum gets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesGetResponse_items_signature) GetSha256Checksum()(*string) { + return m.sha256Checksum +} +// GetSizeInBytes gets the sizeInBytes property value. The sizeInBytes property +// returns a *int64 when successful +func (m *V1beta1SoftwareReleasesGetResponse_items_signature) GetSizeInBytes()(*int64) { + return m.sizeInBytes +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesGetResponse_items_signature) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("filename", m.GetFilename()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sha256Checksum", m.GetSha256Checksum()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("sizeInBytes", m.GetSizeInBytes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesGetResponse_items_signature) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetFilename sets the filename property value. The name of a file in a Software Release. +func (m *V1beta1SoftwareReleasesGetResponse_items_signature) SetFilename(value *string)() { + m.filename = value +} +// SetSha256Checksum sets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +func (m *V1beta1SoftwareReleasesGetResponse_items_signature) SetSha256Checksum(value *string)() { + m.sha256Checksum = value +} +// SetSizeInBytes sets the sizeInBytes property value. The sizeInBytes property +func (m *V1beta1SoftwareReleasesGetResponse_items_signature) SetSizeInBytes(value *int64)() { + m.sizeInBytes = value +} +type V1beta1SoftwareReleasesGetResponse_items_signatureable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetFilename()(*string) + GetSha256Checksum()(*string) + GetSizeInBytes()(*int64) + SetFilename(value *string)() + SetSha256Checksum(value *string)() + SetSizeInBytes(value *int64)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items_escaped_software.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items_escaped_software.go new file mode 100644 index 0000000..7d05048 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items_escaped_software.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareReleasesGetResponse_items_software the metadata for files within a Software Release. +type V1beta1SoftwareReleasesGetResponse_items_software struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The name of a file in a Software Release. + filename *string + // The SHA-256 checksum of a file in a Software Release in hexadecimal. + sha256Checksum *string + // The sizeInBytes property + sizeInBytes *int64 +} +// NewV1beta1SoftwareReleasesGetResponse_items_software instantiates a new V1beta1SoftwareReleasesGetResponse_items_software and sets the default values. +func NewV1beta1SoftwareReleasesGetResponse_items_software()(*V1beta1SoftwareReleasesGetResponse_items_software) { + m := &V1beta1SoftwareReleasesGetResponse_items_software{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesGetResponse_items_softwareFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesGetResponse_items_softwareFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesGetResponse_items_software(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesGetResponse_items_software) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesGetResponse_items_software) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["filename"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFilename(val) + } + return nil + } + res["sha256Checksum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha256Checksum(val) + } + return nil + } + res["sizeInBytes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetSizeInBytes(val) + } + return nil + } + return res +} +// GetFilename gets the filename property value. The name of a file in a Software Release. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesGetResponse_items_software) GetFilename()(*string) { + return m.filename +} +// GetSha256Checksum gets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesGetResponse_items_software) GetSha256Checksum()(*string) { + return m.sha256Checksum +} +// GetSizeInBytes gets the sizeInBytes property value. The sizeInBytes property +// returns a *int64 when successful +func (m *V1beta1SoftwareReleasesGetResponse_items_software) GetSizeInBytes()(*int64) { + return m.sizeInBytes +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesGetResponse_items_software) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("filename", m.GetFilename()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sha256Checksum", m.GetSha256Checksum()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("sizeInBytes", m.GetSizeInBytes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesGetResponse_items_software) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetFilename sets the filename property value. The name of a file in a Software Release. +func (m *V1beta1SoftwareReleasesGetResponse_items_software) SetFilename(value *string)() { + m.filename = value +} +// SetSha256Checksum sets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +func (m *V1beta1SoftwareReleasesGetResponse_items_software) SetSha256Checksum(value *string)() { + m.sha256Checksum = value +} +// SetSizeInBytes sets the sizeInBytes property value. The sizeInBytes property +func (m *V1beta1SoftwareReleasesGetResponse_items_software) SetSizeInBytes(value *int64)() { + m.sizeInBytes = value +} +type V1beta1SoftwareReleasesGetResponse_items_softwareable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetFilename()(*string) + GetSha256Checksum()(*string) + GetSizeInBytes()(*int64) + SetFilename(value *string)() + SetSha256Checksum(value *string)() + SetSizeInBytes(value *int64)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items_escaped_software_component.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items_escaped_software_component.go new file mode 100644 index 0000000..8b1beda --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_get_response_escaped_items_escaped_software_component.go @@ -0,0 +1,128 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareReleasesGetResponse_items_softwareComponent the Software Component a Software Release belongs to. +type V1beta1SoftwareReleasesGetResponse_items_softwareComponent struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The ID of the resource. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The name property + name *string + // The type property + typeEscaped *string +} +// NewV1beta1SoftwareReleasesGetResponse_items_softwareComponent instantiates a new V1beta1SoftwareReleasesGetResponse_items_softwareComponent and sets the default values. +func NewV1beta1SoftwareReleasesGetResponse_items_softwareComponent()(*V1beta1SoftwareReleasesGetResponse_items_softwareComponent) { + m := &V1beta1SoftwareReleasesGetResponse_items_softwareComponent{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesGetResponse_items_softwareComponentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesGetResponse_items_softwareComponentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesGetResponse_items_softwareComponent(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesGetResponse_items_softwareComponent) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesGetResponse_items_softwareComponent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The ID of the resource. +// returns a *UUID when successful +func (m *V1beta1SoftwareReleasesGetResponse_items_softwareComponent) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *V1beta1SoftwareReleasesGetResponse_items_softwareComponent) GetName()(*string) { + return m.name +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *V1beta1SoftwareReleasesGetResponse_items_softwareComponent) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesGetResponse_items_softwareComponent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesGetResponse_items_softwareComponent) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The ID of the resource. +func (m *V1beta1SoftwareReleasesGetResponse_items_softwareComponent) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. The name property +func (m *V1beta1SoftwareReleasesGetResponse_items_softwareComponent) SetName(value *string)() { + m.name = value +} +// SetTypeEscaped sets the type property value. The type property +func (m *V1beta1SoftwareReleasesGetResponse_items_softwareComponent) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1SoftwareReleasesGetResponse_items_softwareComponentable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetTypeEscaped()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download400_error.go new file mode 100644 index 0000000..24e5a63 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemDownload400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemDownload400Error instantiates a new V1beta1SoftwareReleasesItemDownload400Error and sets the default values. +func NewV1beta1SoftwareReleasesItemDownload400Error()(*V1beta1SoftwareReleasesItemDownload400Error) { + m := &V1beta1SoftwareReleasesItemDownload400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemDownload400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownload400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownload400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemDownload400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemDownload400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemDownload400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemDownload400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemDownload400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemDownload400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemDownload400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemDownload400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemDownload400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemDownload400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemDownload400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download401_error.go new file mode 100644 index 0000000..a1883c6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemDownload401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemDownload401Error instantiates a new V1beta1SoftwareReleasesItemDownload401Error and sets the default values. +func NewV1beta1SoftwareReleasesItemDownload401Error()(*V1beta1SoftwareReleasesItemDownload401Error) { + m := &V1beta1SoftwareReleasesItemDownload401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemDownload401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownload401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownload401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemDownload401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemDownload401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemDownload401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemDownload401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemDownload401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemDownload401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemDownload401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemDownload401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemDownload401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemDownload401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemDownload401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download403_error.go new file mode 100644 index 0000000..e6c87c5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemDownload403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemDownload403Error instantiates a new V1beta1SoftwareReleasesItemDownload403Error and sets the default values. +func NewV1beta1SoftwareReleasesItemDownload403Error()(*V1beta1SoftwareReleasesItemDownload403Error) { + m := &V1beta1SoftwareReleasesItemDownload403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemDownload403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownload403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownload403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemDownload403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemDownload403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemDownload403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemDownload403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemDownload403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemDownload403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemDownload403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemDownload403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemDownload403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemDownload403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemDownload403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download404_error.go new file mode 100644 index 0000000..06bceb7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemDownload404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemDownload404Error instantiates a new V1beta1SoftwareReleasesItemDownload404Error and sets the default values. +func NewV1beta1SoftwareReleasesItemDownload404Error()(*V1beta1SoftwareReleasesItemDownload404Error) { + m := &V1beta1SoftwareReleasesItemDownload404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemDownload404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownload404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownload404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemDownload404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemDownload404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemDownload404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemDownload404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemDownload404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemDownload404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemDownload404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemDownload404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemDownload404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemDownload404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemDownload404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download500_error.go new file mode 100644 index 0000000..d0b59de --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemDownload500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemDownload500Error instantiates a new V1beta1SoftwareReleasesItemDownload500Error and sets the default values. +func NewV1beta1SoftwareReleasesItemDownload500Error()(*V1beta1SoftwareReleasesItemDownload500Error) { + m := &V1beta1SoftwareReleasesItemDownload500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemDownload500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownload500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownload500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemDownload500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemDownload500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemDownload500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemDownload500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemDownload500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemDownload500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemDownload500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemDownload500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemDownload500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemDownload500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemDownload500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download503_error.go new file mode 100644 index 0000000..68d3fa5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemDownload503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemDownload503Error instantiates a new V1beta1SoftwareReleasesItemDownload503Error and sets the default values. +func NewV1beta1SoftwareReleasesItemDownload503Error()(*V1beta1SoftwareReleasesItemDownload503Error) { + m := &V1beta1SoftwareReleasesItemDownload503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemDownload503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownload503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownload503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemDownload503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemDownload503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemDownload503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemDownload503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownload503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemDownload503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemDownload503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemDownload503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemDownload503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemDownload503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemDownload503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemDownload503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download_post_request_body.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download_post_request_body.go new file mode 100644 index 0000000..6632ffe --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download_post_request_body.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareReleasesItemDownloadPostRequestBody the values needed to download a file within a Software Release. +type V1beta1SoftwareReleasesItemDownloadPostRequestBody struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1SoftwareReleasesItemDownloadPostRequestBody instantiates a new V1beta1SoftwareReleasesItemDownloadPostRequestBody and sets the default values. +func NewV1beta1SoftwareReleasesItemDownloadPostRequestBody()(*V1beta1SoftwareReleasesItemDownloadPostRequestBody) { + m := &V1beta1SoftwareReleasesItemDownloadPostRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemDownloadPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownloadPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownloadPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemDownloadPostRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemDownloadPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemDownloadPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemDownloadPostRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1SoftwareReleasesItemDownloadPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download_request_builder.go new file mode 100644 index 0000000..0f4bc08 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_download_request_builder.go @@ -0,0 +1,77 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1SoftwareReleasesItemDownloadRequestBuilder builds and executes requests for operations under \data-services\v1beta1\software-releases\{id}\download +type V1beta1SoftwareReleasesItemDownloadRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1SoftwareReleasesItemDownloadRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SoftwareReleasesItemDownloadRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1SoftwareReleasesItemDownloadRequestBuilderInternal instantiates a new V1beta1SoftwareReleasesItemDownloadRequestBuilder and sets the default values. +func NewV1beta1SoftwareReleasesItemDownloadRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareReleasesItemDownloadRequestBuilder) { + m := &V1beta1SoftwareReleasesItemDownloadRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/software-releases/{id}/download", pathParameters), + } + return m +} +// NewV1beta1SoftwareReleasesItemDownloadRequestBuilder instantiates a new V1beta1SoftwareReleasesItemDownloadRequestBuilder and sets the default values. +func NewV1beta1SoftwareReleasesItemDownloadRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareReleasesItemDownloadRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SoftwareReleasesItemDownloadRequestBuilderInternal(urlParams, requestAdapter) +} +// Post download a file within a Software Release. +// returns a V1beta1SoftwareReleasesItemDownload400Error error when the service returns a 400 status code +// returns a V1beta1SoftwareReleasesItemDownload401Error error when the service returns a 401 status code +// returns a V1beta1SoftwareReleasesItemDownload403Error error when the service returns a 403 status code +// returns a V1beta1SoftwareReleasesItemDownload404Error error when the service returns a 404 status code +// returns a V1beta1SoftwareReleasesItemDownload500Error error when the service returns a 500 status code +// returns a V1beta1SoftwareReleasesItemDownload503Error error when the service returns a 503 status code +func (m *V1beta1SoftwareReleasesItemDownloadRequestBuilder) Post(ctx context.Context, body V1beta1SoftwareReleasesItemDownloadPostRequestBodyable, requestConfiguration *V1beta1SoftwareReleasesItemDownloadRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SoftwareReleasesItemDownload400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SoftwareReleasesItemDownload401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SoftwareReleasesItemDownload403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SoftwareReleasesItemDownload404ErrorFromDiscriminatorValue, + "500": CreateV1beta1SoftwareReleasesItemDownload500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SoftwareReleasesItemDownload503ErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation download a file within a Software Release. +// returns a *RequestInformation when successful +func (m *V1beta1SoftwareReleasesItemDownloadRequestBuilder) ToPostRequestInformation(ctx context.Context, body V1beta1SoftwareReleasesItemDownloadPostRequestBodyable, requestConfiguration *V1beta1SoftwareReleasesItemDownloadRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1SoftwareReleasesItemDownloadRequestBuilder when successful +func (m *V1beta1SoftwareReleasesItemDownloadRequestBuilder) WithUrl(rawUrl string)(*V1beta1SoftwareReleasesItemDownloadRequestBuilder) { + return NewV1beta1SoftwareReleasesItemDownloadRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads400_error.go new file mode 100644 index 0000000..322d163 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemDownloads400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemDownloads400Error instantiates a new V1beta1SoftwareReleasesItemDownloads400Error and sets the default values. +func NewV1beta1SoftwareReleasesItemDownloads400Error()(*V1beta1SoftwareReleasesItemDownloads400Error) { + m := &V1beta1SoftwareReleasesItemDownloads400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemDownloads400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownloads400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownloads400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemDownloads400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemDownloads400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemDownloads400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemDownloads400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemDownloads400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemDownloads400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemDownloads400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemDownloads400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemDownloads400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemDownloads400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemDownloads400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads401_error.go new file mode 100644 index 0000000..f0f6a7b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemDownloads401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemDownloads401Error instantiates a new V1beta1SoftwareReleasesItemDownloads401Error and sets the default values. +func NewV1beta1SoftwareReleasesItemDownloads401Error()(*V1beta1SoftwareReleasesItemDownloads401Error) { + m := &V1beta1SoftwareReleasesItemDownloads401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemDownloads401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownloads401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownloads401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemDownloads401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemDownloads401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemDownloads401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemDownloads401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemDownloads401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemDownloads401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemDownloads401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemDownloads401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemDownloads401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemDownloads401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemDownloads401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads403_error.go new file mode 100644 index 0000000..7e8040a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemDownloads403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemDownloads403Error instantiates a new V1beta1SoftwareReleasesItemDownloads403Error and sets the default values. +func NewV1beta1SoftwareReleasesItemDownloads403Error()(*V1beta1SoftwareReleasesItemDownloads403Error) { + m := &V1beta1SoftwareReleasesItemDownloads403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemDownloads403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownloads403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownloads403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemDownloads403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemDownloads403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemDownloads403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemDownloads403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemDownloads403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemDownloads403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemDownloads403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemDownloads403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemDownloads403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemDownloads403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemDownloads403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads404_error.go new file mode 100644 index 0000000..40b0136 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemDownloads404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemDownloads404Error instantiates a new V1beta1SoftwareReleasesItemDownloads404Error and sets the default values. +func NewV1beta1SoftwareReleasesItemDownloads404Error()(*V1beta1SoftwareReleasesItemDownloads404Error) { + m := &V1beta1SoftwareReleasesItemDownloads404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemDownloads404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownloads404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownloads404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemDownloads404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemDownloads404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemDownloads404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemDownloads404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemDownloads404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemDownloads404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemDownloads404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemDownloads404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemDownloads404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemDownloads404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemDownloads404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads500_error.go new file mode 100644 index 0000000..0bcf89d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemDownloads500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemDownloads500Error instantiates a new V1beta1SoftwareReleasesItemDownloads500Error and sets the default values. +func NewV1beta1SoftwareReleasesItemDownloads500Error()(*V1beta1SoftwareReleasesItemDownloads500Error) { + m := &V1beta1SoftwareReleasesItemDownloads500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemDownloads500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownloads500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownloads500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemDownloads500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemDownloads500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemDownloads500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemDownloads500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemDownloads500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemDownloads500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemDownloads500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemDownloads500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemDownloads500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemDownloads500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemDownloads500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads503_error.go new file mode 100644 index 0000000..5dd45fb --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemDownloads503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemDownloads503Error instantiates a new V1beta1SoftwareReleasesItemDownloads503Error and sets the default values. +func NewV1beta1SoftwareReleasesItemDownloads503Error()(*V1beta1SoftwareReleasesItemDownloads503Error) { + m := &V1beta1SoftwareReleasesItemDownloads503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemDownloads503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownloads503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownloads503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemDownloads503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemDownloads503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemDownloads503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemDownloads503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloads503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemDownloads503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemDownloads503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemDownloads503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemDownloads503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemDownloads503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemDownloads503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemDownloads503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_post_request_body.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_post_request_body.go new file mode 100644 index 0000000..4068073 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_post_request_body.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareReleasesItemDownloadsPostRequestBody the values needed to download a file within a Software Release. +type V1beta1SoftwareReleasesItemDownloadsPostRequestBody struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1SoftwareReleasesItemDownloadsPostRequestBody instantiates a new V1beta1SoftwareReleasesItemDownloadsPostRequestBody and sets the default values. +func NewV1beta1SoftwareReleasesItemDownloadsPostRequestBody()(*V1beta1SoftwareReleasesItemDownloadsPostRequestBody) { + m := &V1beta1SoftwareReleasesItemDownloadsPostRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemDownloadsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownloadsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownloadsPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemDownloadsPostRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemDownloadsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemDownloadsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemDownloadsPostRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1SoftwareReleasesItemDownloadsPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_post_response.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_post_response.go new file mode 100644 index 0000000..f0154f8 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_post_response.go @@ -0,0 +1,228 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareReleasesItemDownloadsPostResponse the values needed to download a file within a Software Release. +type V1beta1SoftwareReleasesItemDownloadsPostResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The URL needed to download the file. + downloadUrl *string + // The expiresAt property + expiresAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The name of a file in a Software Release. + filename *string + // The ID of the resource. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The SHA-256 checksum of a file in a Software Release in hexadecimal. + sha256Checksum *string + // The type of resource. + typeEscaped *string +} +// NewV1beta1SoftwareReleasesItemDownloadsPostResponse instantiates a new V1beta1SoftwareReleasesItemDownloadsPostResponse and sets the default values. +func NewV1beta1SoftwareReleasesItemDownloadsPostResponse()(*V1beta1SoftwareReleasesItemDownloadsPostResponse) { + m := &V1beta1SoftwareReleasesItemDownloadsPostResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemDownloadsPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownloadsPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownloadsPostResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDownloadUrl gets the downloadUrl property value. The URL needed to download the file. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) GetDownloadUrl()(*string) { + return m.downloadUrl +} +// GetExpiresAt gets the expiresAt property value. The expiresAt property +// returns a *Time when successful +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) GetExpiresAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.expiresAt +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["downloadUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDownloadUrl(val) + } + return nil + } + res["expiresAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetExpiresAt(val) + } + return nil + } + res["filename"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFilename(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["sha256Checksum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha256Checksum(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetFilename gets the filename property value. The name of a file in a Software Release. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) GetFilename()(*string) { + return m.filename +} +// GetId gets the id property value. The ID of the resource. +// returns a *UUID when successful +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetSha256Checksum gets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) GetSha256Checksum()(*string) { + return m.sha256Checksum +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("downloadUrl", m.GetDownloadUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("expiresAt", m.GetExpiresAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("filename", m.GetFilename()) + if err != nil { + return err + } + } + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sha256Checksum", m.GetSha256Checksum()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDownloadUrl sets the downloadUrl property value. The URL needed to download the file. +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) SetDownloadUrl(value *string)() { + m.downloadUrl = value +} +// SetExpiresAt sets the expiresAt property value. The expiresAt property +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) SetExpiresAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.expiresAt = value +} +// SetFilename sets the filename property value. The name of a file in a Software Release. +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) SetFilename(value *string)() { + m.filename = value +} +// SetId sets the id property value. The ID of the resource. +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetSha256Checksum sets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) SetSha256Checksum(value *string)() { + m.sha256Checksum = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1SoftwareReleasesItemDownloadsPostResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1SoftwareReleasesItemDownloadsPostResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDownloadUrl()(*string) + GetExpiresAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetFilename()(*string) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetSha256Checksum()(*string) + GetTypeEscaped()(*string) + SetDownloadUrl(value *string)() + SetExpiresAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetFilename(value *string)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetSha256Checksum(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_request_builder.go new file mode 100644 index 0000000..4041ac0 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_request_builder.go @@ -0,0 +1,112 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1SoftwareReleasesItemDownloadsRequestBuilder builds and executes requests for operations under \data-services\v1beta1\software-releases\{id}\downloads +type V1beta1SoftwareReleasesItemDownloadsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1SoftwareReleasesItemDownloadsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SoftwareReleasesItemDownloadsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1SoftwareReleasesItemDownloadsRequestBuilderInternal instantiates a new V1beta1SoftwareReleasesItemDownloadsRequestBuilder and sets the default values. +func NewV1beta1SoftwareReleasesItemDownloadsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareReleasesItemDownloadsRequestBuilder) { + m := &V1beta1SoftwareReleasesItemDownloadsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/software-releases/{id}/downloads", pathParameters), + } + return m +} +// NewV1beta1SoftwareReleasesItemDownloadsRequestBuilder instantiates a new V1beta1SoftwareReleasesItemDownloadsRequestBuilder and sets the default values. +func NewV1beta1SoftwareReleasesItemDownloadsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareReleasesItemDownloadsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SoftwareReleasesItemDownloadsRequestBuilderInternal(urlParams, requestAdapter) +} +// Post get the URL to download a file within a Software Release. +// Deprecated: This method is obsolete. Use PostAsDownloadsPostResponse instead. +// returns a V1beta1SoftwareReleasesItemDownloadsResponseable when successful +// returns a V1beta1SoftwareReleasesItemDownloads400Error error when the service returns a 400 status code +// returns a V1beta1SoftwareReleasesItemDownloads401Error error when the service returns a 401 status code +// returns a V1beta1SoftwareReleasesItemDownloads403Error error when the service returns a 403 status code +// returns a V1beta1SoftwareReleasesItemDownloads404Error error when the service returns a 404 status code +// returns a V1beta1SoftwareReleasesItemDownloads500Error error when the service returns a 500 status code +// returns a V1beta1SoftwareReleasesItemDownloads503Error error when the service returns a 503 status code +func (m *V1beta1SoftwareReleasesItemDownloadsRequestBuilder) Post(ctx context.Context, body V1beta1SoftwareReleasesItemDownloadsPostRequestBodyable, requestConfiguration *V1beta1SoftwareReleasesItemDownloadsRequestBuilderPostRequestConfiguration)(V1beta1SoftwareReleasesItemDownloadsResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SoftwareReleasesItemDownloads400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SoftwareReleasesItemDownloads401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SoftwareReleasesItemDownloads403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SoftwareReleasesItemDownloads404ErrorFromDiscriminatorValue, + "500": CreateV1beta1SoftwareReleasesItemDownloads500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SoftwareReleasesItemDownloads503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SoftwareReleasesItemDownloadsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SoftwareReleasesItemDownloadsResponseable), nil +} +// PostAsDownloadsPostResponse get the URL to download a file within a Software Release. +// returns a V1beta1SoftwareReleasesItemDownloadsPostResponseable when successful +// returns a V1beta1SoftwareReleasesItemDownloads400Error error when the service returns a 400 status code +// returns a V1beta1SoftwareReleasesItemDownloads401Error error when the service returns a 401 status code +// returns a V1beta1SoftwareReleasesItemDownloads403Error error when the service returns a 403 status code +// returns a V1beta1SoftwareReleasesItemDownloads404Error error when the service returns a 404 status code +// returns a V1beta1SoftwareReleasesItemDownloads500Error error when the service returns a 500 status code +// returns a V1beta1SoftwareReleasesItemDownloads503Error error when the service returns a 503 status code +func (m *V1beta1SoftwareReleasesItemDownloadsRequestBuilder) PostAsDownloadsPostResponse(ctx context.Context, body V1beta1SoftwareReleasesItemDownloadsPostRequestBodyable, requestConfiguration *V1beta1SoftwareReleasesItemDownloadsRequestBuilderPostRequestConfiguration)(V1beta1SoftwareReleasesItemDownloadsPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SoftwareReleasesItemDownloads400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SoftwareReleasesItemDownloads401ErrorFromDiscriminatorValue, + "403": CreateV1beta1SoftwareReleasesItemDownloads403ErrorFromDiscriminatorValue, + "404": CreateV1beta1SoftwareReleasesItemDownloads404ErrorFromDiscriminatorValue, + "500": CreateV1beta1SoftwareReleasesItemDownloads500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SoftwareReleasesItemDownloads503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SoftwareReleasesItemDownloadsPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SoftwareReleasesItemDownloadsPostResponseable), nil +} +// ToPostRequestInformation get the URL to download a file within a Software Release. +// returns a *RequestInformation when successful +func (m *V1beta1SoftwareReleasesItemDownloadsRequestBuilder) ToPostRequestInformation(ctx context.Context, body V1beta1SoftwareReleasesItemDownloadsPostRequestBodyable, requestConfiguration *V1beta1SoftwareReleasesItemDownloadsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1SoftwareReleasesItemDownloadsRequestBuilder when successful +func (m *V1beta1SoftwareReleasesItemDownloadsRequestBuilder) WithUrl(rawUrl string)(*V1beta1SoftwareReleasesItemDownloadsRequestBuilder) { + return NewV1beta1SoftwareReleasesItemDownloadsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_response.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_response.go new file mode 100644 index 0000000..449592f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_downloads_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareReleasesItemDownloadsResponse the values needed to download a file within a Software Release. +// Deprecated: This class is obsolete. Use V1beta1SoftwareReleasesItemDownloadsPostResponseable instead. +type V1beta1SoftwareReleasesItemDownloadsResponse struct { + V1beta1SoftwareReleasesItemDownloadsPostResponse +} +// NewV1beta1SoftwareReleasesItemDownloadsResponse instantiates a new V1beta1SoftwareReleasesItemDownloadsResponse and sets the default values. +func NewV1beta1SoftwareReleasesItemDownloadsResponse()(*V1beta1SoftwareReleasesItemDownloadsResponse) { + m := &V1beta1SoftwareReleasesItemDownloadsResponse{ + V1beta1SoftwareReleasesItemDownloadsPostResponse: *NewV1beta1SoftwareReleasesItemDownloadsPostResponse(), + } + return m +} +// CreateV1beta1SoftwareReleasesItemDownloadsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemDownloadsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemDownloadsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1SoftwareReleasesItemDownloadsPostResponseable instead. +type V1beta1SoftwareReleasesItemDownloadsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1SoftwareReleasesItemDownloadsPostResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases400_error.go new file mode 100644 index 0000000..bdff481 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemSoftwareReleases400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemSoftwareReleases400Error instantiates a new V1beta1SoftwareReleasesItemSoftwareReleases400Error and sets the default values. +func NewV1beta1SoftwareReleasesItemSoftwareReleases400Error()(*V1beta1SoftwareReleasesItemSoftwareReleases400Error) { + m := &V1beta1SoftwareReleasesItemSoftwareReleases400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemSoftwareReleases400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemSoftwareReleases400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemSoftwareReleases400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemSoftwareReleases400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemSoftwareReleases400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemSoftwareReleases400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemSoftwareReleases400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemSoftwareReleases400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemSoftwareReleases400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemSoftwareReleases400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases401_error.go new file mode 100644 index 0000000..8f5a5b7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemSoftwareReleases401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemSoftwareReleases401Error instantiates a new V1beta1SoftwareReleasesItemSoftwareReleases401Error and sets the default values. +func NewV1beta1SoftwareReleasesItemSoftwareReleases401Error()(*V1beta1SoftwareReleasesItemSoftwareReleases401Error) { + m := &V1beta1SoftwareReleasesItemSoftwareReleases401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemSoftwareReleases401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemSoftwareReleases401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemSoftwareReleases401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemSoftwareReleases401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemSoftwareReleases401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemSoftwareReleases401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemSoftwareReleases401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemSoftwareReleases401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemSoftwareReleases401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemSoftwareReleases401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases404_error.go new file mode 100644 index 0000000..a389a34 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemSoftwareReleases404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemSoftwareReleases404Error instantiates a new V1beta1SoftwareReleasesItemSoftwareReleases404Error and sets the default values. +func NewV1beta1SoftwareReleasesItemSoftwareReleases404Error()(*V1beta1SoftwareReleasesItemSoftwareReleases404Error) { + m := &V1beta1SoftwareReleasesItemSoftwareReleases404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemSoftwareReleases404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemSoftwareReleases404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemSoftwareReleases404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemSoftwareReleases404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemSoftwareReleases404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemSoftwareReleases404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemSoftwareReleases404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemSoftwareReleases404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemSoftwareReleases404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemSoftwareReleases404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases500_error.go new file mode 100644 index 0000000..3b47e76 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemSoftwareReleases500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemSoftwareReleases500Error instantiates a new V1beta1SoftwareReleasesItemSoftwareReleases500Error and sets the default values. +func NewV1beta1SoftwareReleasesItemSoftwareReleases500Error()(*V1beta1SoftwareReleasesItemSoftwareReleases500Error) { + m := &V1beta1SoftwareReleasesItemSoftwareReleases500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemSoftwareReleases500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemSoftwareReleases500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemSoftwareReleases500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemSoftwareReleases500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemSoftwareReleases500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemSoftwareReleases500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemSoftwareReleases500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemSoftwareReleases500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemSoftwareReleases500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemSoftwareReleases500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases503_error.go new file mode 100644 index 0000000..0f40a30 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareReleasesItemSoftwareReleases503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareReleasesItemSoftwareReleases503Error instantiates a new V1beta1SoftwareReleasesItemSoftwareReleases503Error and sets the default values. +func NewV1beta1SoftwareReleasesItemSoftwareReleases503Error()(*V1beta1SoftwareReleasesItemSoftwareReleases503Error) { + m := &V1beta1SoftwareReleasesItemSoftwareReleases503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemSoftwareReleases503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemSoftwareReleases503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemSoftwareReleases503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleases503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemSoftwareReleases503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemSoftwareReleases503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareReleasesItemSoftwareReleases503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareReleasesItemSoftwareReleases503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareReleasesItemSoftwareReleases503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareReleasesItemSoftwareReleases503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareReleasesItemSoftwareReleases503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response.go new file mode 100644 index 0000000..a1aacc5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response.go @@ -0,0 +1,401 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse a release of software. +type V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // Whether the files within the Software Release can be downloaded. + downloadable *bool + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // A system specified name for the resource. + name *string + // The self reference for this resource. + resourceUri *string + // The metadata for files within a Software Release. + signature V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signatureable + // The metadata for files within a Software Release. + software V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareable + // The Software Component a Software Release belongs to. + softwareComponent V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponentable + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The version of a Software Release. + version *string +} +// NewV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse instantiates a new V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse and sets the default values. +func NewV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse()(*V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) { + m := &V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemSoftwareReleasesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemSoftwareReleasesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDownloadable gets the downloadable property value. Whether the files within the Software Release can be downloaded. +// returns a *bool when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) GetDownloadable()(*bool) { + return m.downloadable +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["downloadable"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetDownloadable(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["signature"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signatureFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSignature(val.(V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signatureable)) + } + return nil + } + res["software"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSoftware(val.(V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareable)) + } + return nil + } + res["softwareComponent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSoftwareComponent(val.(V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponentable)) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + res["version"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetVersion(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSignature gets the signature property value. The metadata for files within a Software Release. +// returns a V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signatureable when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) GetSignature()(V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signatureable) { + return m.signature +} +// GetSoftware gets the software property value. The metadata for files within a Software Release. +// returns a V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareable when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) GetSoftware()(V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareable) { + return m.software +} +// GetSoftwareComponent gets the softwareComponent property value. The Software Component a Software Release belongs to. +// returns a V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponentable when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) GetSoftwareComponent()(V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponentable) { + return m.softwareComponent +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// GetVersion gets the version property value. The version of a Software Release. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) GetVersion()(*string) { + return m.version +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("downloadable", m.GetDownloadable()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("signature", m.GetSignature()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("software", m.GetSoftware()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("softwareComponent", m.GetSoftwareComponent()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("version", m.GetVersion()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDownloadable sets the downloadable property value. Whether the files within the Software Release can be downloaded. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) SetDownloadable(value *bool)() { + m.downloadable = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSignature sets the signature property value. The metadata for files within a Software Release. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) SetSignature(value V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signatureable)() { + m.signature = value +} +// SetSoftware sets the software property value. The metadata for files within a Software Release. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) SetSoftware(value V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareable)() { + m.software = value +} +// SetSoftwareComponent sets the softwareComponent property value. The Software Component a Software Release belongs to. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) SetSoftwareComponent(value V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponentable)() { + m.softwareComponent = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +// SetVersion sets the version property value. The version of a Software Release. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse) SetVersion(value *string)() { + m.version = value +} +type V1beta1SoftwareReleasesItemSoftwareReleasesGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDownloadable()(*bool) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetSignature()(V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signatureable) + GetSoftware()(V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareable) + GetSoftwareComponent()(V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponentable) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetVersion()(*string) + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDownloadable(value *bool)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetSignature(value V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signatureable)() + SetSoftware(value V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareable)() + SetSoftwareComponent(value V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponentable)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetVersion(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response_escaped_signature.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response_escaped_signature.go new file mode 100644 index 0000000..de5423d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response_escaped_signature.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature the metadata for files within a Software Release. +type V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The name of a file in a Software Release. + filename *string + // The SHA-256 checksum of a file in a Software Release in hexadecimal. + sha256Checksum *string + // The sizeInBytes property + sizeInBytes *int64 +} +// NewV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature instantiates a new V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature and sets the default values. +func NewV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature()(*V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature) { + m := &V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signatureFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signatureFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["filename"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFilename(val) + } + return nil + } + res["sha256Checksum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha256Checksum(val) + } + return nil + } + res["sizeInBytes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetSizeInBytes(val) + } + return nil + } + return res +} +// GetFilename gets the filename property value. The name of a file in a Software Release. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature) GetFilename()(*string) { + return m.filename +} +// GetSha256Checksum gets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature) GetSha256Checksum()(*string) { + return m.sha256Checksum +} +// GetSizeInBytes gets the sizeInBytes property value. The sizeInBytes property +// returns a *int64 when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature) GetSizeInBytes()(*int64) { + return m.sizeInBytes +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("filename", m.GetFilename()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sha256Checksum", m.GetSha256Checksum()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("sizeInBytes", m.GetSizeInBytes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetFilename sets the filename property value. The name of a file in a Software Release. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature) SetFilename(value *string)() { + m.filename = value +} +// SetSha256Checksum sets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature) SetSha256Checksum(value *string)() { + m.sha256Checksum = value +} +// SetSizeInBytes sets the sizeInBytes property value. The sizeInBytes property +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signature) SetSizeInBytes(value *int64)() { + m.sizeInBytes = value +} +type V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_signatureable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetFilename()(*string) + GetSha256Checksum()(*string) + GetSizeInBytes()(*int64) + SetFilename(value *string)() + SetSha256Checksum(value *string)() + SetSizeInBytes(value *int64)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response_escaped_software.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response_escaped_software.go new file mode 100644 index 0000000..c996fe5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response_escaped_software.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software the metadata for files within a Software Release. +type V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The name of a file in a Software Release. + filename *string + // The SHA-256 checksum of a file in a Software Release in hexadecimal. + sha256Checksum *string + // The sizeInBytes property + sizeInBytes *int64 +} +// NewV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software instantiates a new V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software and sets the default values. +func NewV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software()(*V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software) { + m := &V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["filename"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFilename(val) + } + return nil + } + res["sha256Checksum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha256Checksum(val) + } + return nil + } + res["sizeInBytes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetSizeInBytes(val) + } + return nil + } + return res +} +// GetFilename gets the filename property value. The name of a file in a Software Release. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software) GetFilename()(*string) { + return m.filename +} +// GetSha256Checksum gets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software) GetSha256Checksum()(*string) { + return m.sha256Checksum +} +// GetSizeInBytes gets the sizeInBytes property value. The sizeInBytes property +// returns a *int64 when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software) GetSizeInBytes()(*int64) { + return m.sizeInBytes +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("filename", m.GetFilename()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sha256Checksum", m.GetSha256Checksum()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("sizeInBytes", m.GetSizeInBytes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetFilename sets the filename property value. The name of a file in a Software Release. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software) SetFilename(value *string)() { + m.filename = value +} +// SetSha256Checksum sets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software) SetSha256Checksum(value *string)() { + m.sha256Checksum = value +} +// SetSizeInBytes sets the sizeInBytes property value. The sizeInBytes property +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_software) SetSizeInBytes(value *int64)() { + m.sizeInBytes = value +} +type V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetFilename()(*string) + GetSha256Checksum()(*string) + GetSizeInBytes()(*int64) + SetFilename(value *string)() + SetSha256Checksum(value *string)() + SetSizeInBytes(value *int64)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response_escaped_software_component.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response_escaped_software_component.go new file mode 100644 index 0000000..b4dfc3b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_get_response_escaped_software_component.go @@ -0,0 +1,128 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent the Software Component a Software Release belongs to. +type V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The ID of the resource. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The name property + name *string + // The type property + typeEscaped *string +} +// NewV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent instantiates a new V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent and sets the default values. +func NewV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent()(*V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent) { + m := &V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The ID of the resource. +// returns a *UUID when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent) GetName()(*string) { + return m.name +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The ID of the resource. +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. The name property +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent) SetName(value *string)() { + m.name = value +} +// SetTypeEscaped sets the type property value. The type property +func (m *V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponent) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse_softwareComponentable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetTypeEscaped()(*string) + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_response.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_response.go new file mode 100644 index 0000000..7dcfe88 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_item_software_releases_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareReleasesItemSoftwareReleasesResponse a release of software. +// Deprecated: This class is obsolete. Use V1beta1SoftwareReleasesItemSoftwareReleasesGetResponseable instead. +type V1beta1SoftwareReleasesItemSoftwareReleasesResponse struct { + V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse +} +// NewV1beta1SoftwareReleasesItemSoftwareReleasesResponse instantiates a new V1beta1SoftwareReleasesItemSoftwareReleasesResponse and sets the default values. +func NewV1beta1SoftwareReleasesItemSoftwareReleasesResponse()(*V1beta1SoftwareReleasesItemSoftwareReleasesResponse) { + m := &V1beta1SoftwareReleasesItemSoftwareReleasesResponse{ + V1beta1SoftwareReleasesItemSoftwareReleasesGetResponse: *NewV1beta1SoftwareReleasesItemSoftwareReleasesGetResponse(), + } + return m +} +// CreateV1beta1SoftwareReleasesItemSoftwareReleasesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesItemSoftwareReleasesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesItemSoftwareReleasesResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1SoftwareReleasesItemSoftwareReleasesGetResponseable instead. +type V1beta1SoftwareReleasesItemSoftwareReleasesResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1SoftwareReleasesItemSoftwareReleasesGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_request_builder.go new file mode 100644 index 0000000..3801f27 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_request_builder.go @@ -0,0 +1,142 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" +) + +// V1beta1SoftwareReleasesRequestBuilder builds and executes requests for operations under \data-services\v1beta1\software-releases +type V1beta1SoftwareReleasesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1SoftwareReleasesRequestBuilderGetQueryParameters list multiple Software Releases with filtering, sorting and pagination.Filtering is supported on the `softwareComponent/id` and `version` properties using the`eq`, `in`, `and` and `or` operators. Sorting is supported on the `id` and `version` properties. +type V1beta1SoftwareReleasesRequestBuilderGetQueryParameters struct { + // An expression to filter list query results. Query result items that match the givenfilter are returned.Expressions must be in the format ` ` or` `. The available operators are:- `eq`: Test whether a property's value is equal to a literal.- `in`: Test whether a property's value appears in a list of literals.Literals can be:- GUIDs, such as `ae09cc99-57e1-4f82-9d80-e68698da641b`.- Strings, such as `'hello'`, `'world'`.Expressions can also be joined using the `and` and `or` logical operators. + Filter *string `uriparametername:"filter"` + // The number of query results to return. Use limit in conjuction with offset for paging. + Limit *int32 `uriparametername:"limit"` + // The offset to use for paging through the result set. Use offset in conjunction with limit for paging. + Offset *int32 `uriparametername:"offset"` + // Comma separated properties to return in the result. If omitted, all properties will be returned. This is applied to sub-properties of the objects in the items array. Selecting nested properties of an object is not supported. + Select []string `uriparametername:"select"` + // One or more properties and directions to sort query results by. A direction is optional and can be either `asc` or `desc` for ascending and descending order respectively. If the direction is omitted it defaults to `asc`. + Sort *string `uriparametername:"sort"` +} +// V1beta1SoftwareReleasesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SoftwareReleasesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1SoftwareReleasesRequestBuilderGetQueryParameters +} +// ById gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.softwareReleases.item collection +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. +// returns a *V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder when successful +func (m *V1beta1SoftwareReleasesRequestBuilder) ById(id string)(*V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["id"] = id + } + return NewV1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ByIdGuid gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.softwareReleases.item collection +// returns a *V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder when successful +func (m *V1beta1SoftwareReleasesRequestBuilder) ByIdGuid(id i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["id"] = id.String() + return NewV1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1SoftwareReleasesRequestBuilderInternal instantiates a new V1beta1SoftwareReleasesRequestBuilder and sets the default values. +func NewV1beta1SoftwareReleasesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareReleasesRequestBuilder) { + m := &V1beta1SoftwareReleasesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/software-releases{?filter*,limit*,offset*,select,sort*}", pathParameters), + } + return m +} +// NewV1beta1SoftwareReleasesRequestBuilder instantiates a new V1beta1SoftwareReleasesRequestBuilder and sets the default values. +func NewV1beta1SoftwareReleasesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareReleasesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SoftwareReleasesRequestBuilderInternal(urlParams, requestAdapter) +} +// Get list multiple Software Releases with filtering, sorting and pagination.Filtering is supported on the `softwareComponent/id` and `version` properties using the`eq`, `in`, `and` and `or` operators. Sorting is supported on the `id` and `version` properties. +// Deprecated: This method is obsolete. Use GetAsSoftwareReleasesGetResponse instead. +// returns a V1beta1SoftwareReleasesResponseable when successful +// returns a V1beta1SoftwareReleases400Error error when the service returns a 400 status code +// returns a V1beta1SoftwareReleases401Error error when the service returns a 401 status code +// returns a V1beta1SoftwareReleases500Error error when the service returns a 500 status code +// returns a V1beta1SoftwareReleases503Error error when the service returns a 503 status code +func (m *V1beta1SoftwareReleasesRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1SoftwareReleasesRequestBuilderGetRequestConfiguration)(V1beta1SoftwareReleasesResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SoftwareReleases400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SoftwareReleases401ErrorFromDiscriminatorValue, + "500": CreateV1beta1SoftwareReleases500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SoftwareReleases503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SoftwareReleasesResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SoftwareReleasesResponseable), nil +} +// GetAsSoftwareReleasesGetResponse list multiple Software Releases with filtering, sorting and pagination.Filtering is supported on the `softwareComponent/id` and `version` properties using the`eq`, `in`, `and` and `or` operators. Sorting is supported on the `id` and `version` properties. +// returns a V1beta1SoftwareReleasesGetResponseable when successful +// returns a V1beta1SoftwareReleases400Error error when the service returns a 400 status code +// returns a V1beta1SoftwareReleases401Error error when the service returns a 401 status code +// returns a V1beta1SoftwareReleases500Error error when the service returns a 500 status code +// returns a V1beta1SoftwareReleases503Error error when the service returns a 503 status code +func (m *V1beta1SoftwareReleasesRequestBuilder) GetAsSoftwareReleasesGetResponse(ctx context.Context, requestConfiguration *V1beta1SoftwareReleasesRequestBuilderGetRequestConfiguration)(V1beta1SoftwareReleasesGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SoftwareReleases400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SoftwareReleases401ErrorFromDiscriminatorValue, + "500": CreateV1beta1SoftwareReleases500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SoftwareReleases503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SoftwareReleasesGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SoftwareReleasesGetResponseable), nil +} +// ToGetRequestInformation list multiple Software Releases with filtering, sorting and pagination.Filtering is supported on the `softwareComponent/id` and `version` properties using the`eq`, `in`, `and` and `or` operators. Sorting is supported on the `id` and `version` properties. +// returns a *RequestInformation when successful +func (m *V1beta1SoftwareReleasesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1SoftwareReleasesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1SoftwareReleasesRequestBuilder when successful +func (m *V1beta1SoftwareReleasesRequestBuilder) WithUrl(rawUrl string)(*V1beta1SoftwareReleasesRequestBuilder) { + return NewV1beta1SoftwareReleasesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_response.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_response.go new file mode 100644 index 0000000..b478f21 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareReleasesResponse a list of Software Releases from a list query. +// Deprecated: This class is obsolete. Use V1beta1SoftwareReleasesGetResponseable instead. +type V1beta1SoftwareReleasesResponse struct { + V1beta1SoftwareReleasesGetResponse +} +// NewV1beta1SoftwareReleasesResponse instantiates a new V1beta1SoftwareReleasesResponse and sets the default values. +func NewV1beta1SoftwareReleasesResponse()(*V1beta1SoftwareReleasesResponse) { + m := &V1beta1SoftwareReleasesResponse{ + V1beta1SoftwareReleasesGetResponse: *NewV1beta1SoftwareReleasesGetResponse(), + } + return m +} +// CreateV1beta1SoftwareReleasesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareReleasesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareReleasesResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1SoftwareReleasesGetResponseable instead. +type V1beta1SoftwareReleasesResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1SoftwareReleasesGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_releases_software_releases_item_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_software_releases_item_request_builder.go new file mode 100644 index 0000000..fa962e1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_releases_software_releases_item_request_builder.go @@ -0,0 +1,124 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder builds and executes requests for operations under \data-services\v1beta1\software-releases\{id} +type V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilderGetQueryParameters get a single Software Release by its ID. +type V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilderGetQueryParameters struct { + // Comma separated properties to return in the result. If omitted, all properties will be returned. Selecting nested properties of an object is not supported. + Select []string `uriparametername:"select"` +} +// V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilderGetQueryParameters +} +// NewV1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilderInternal instantiates a new V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder and sets the default values. +func NewV1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder) { + m := &V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/software-releases/{id}{?select}", pathParameters), + } + return m +} +// NewV1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder instantiates a new V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder and sets the default values. +func NewV1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Download the download property +// returns a *V1beta1SoftwareReleasesItemDownloadRequestBuilder when successful +func (m *V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder) Download()(*V1beta1SoftwareReleasesItemDownloadRequestBuilder) { + return NewV1beta1SoftwareReleasesItemDownloadRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Downloads the downloads property +// returns a *V1beta1SoftwareReleasesItemDownloadsRequestBuilder when successful +func (m *V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder) Downloads()(*V1beta1SoftwareReleasesItemDownloadsRequestBuilder) { + return NewV1beta1SoftwareReleasesItemDownloadsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get a single Software Release by its ID. +// Deprecated: This method is obsolete. Use GetAsSoftwareReleasesGetResponse instead. +// returns a V1beta1SoftwareReleasesItemSoftwareReleasesResponseable when successful +// returns a V1beta1SoftwareReleasesItemSoftwareReleases400Error error when the service returns a 400 status code +// returns a V1beta1SoftwareReleasesItemSoftwareReleases401Error error when the service returns a 401 status code +// returns a V1beta1SoftwareReleasesItemSoftwareReleases404Error error when the service returns a 404 status code +// returns a V1beta1SoftwareReleasesItemSoftwareReleases500Error error when the service returns a 500 status code +// returns a V1beta1SoftwareReleasesItemSoftwareReleases503Error error when the service returns a 503 status code +func (m *V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilderGetRequestConfiguration)(V1beta1SoftwareReleasesItemSoftwareReleasesResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SoftwareReleasesItemSoftwareReleases400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SoftwareReleasesItemSoftwareReleases401ErrorFromDiscriminatorValue, + "404": CreateV1beta1SoftwareReleasesItemSoftwareReleases404ErrorFromDiscriminatorValue, + "500": CreateV1beta1SoftwareReleasesItemSoftwareReleases500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SoftwareReleasesItemSoftwareReleases503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SoftwareReleasesItemSoftwareReleasesResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SoftwareReleasesItemSoftwareReleasesResponseable), nil +} +// GetAsSoftwareReleasesGetResponse get a single Software Release by its ID. +// returns a V1beta1SoftwareReleasesItemSoftwareReleasesGetResponseable when successful +// returns a V1beta1SoftwareReleasesItemSoftwareReleases400Error error when the service returns a 400 status code +// returns a V1beta1SoftwareReleasesItemSoftwareReleases401Error error when the service returns a 401 status code +// returns a V1beta1SoftwareReleasesItemSoftwareReleases404Error error when the service returns a 404 status code +// returns a V1beta1SoftwareReleasesItemSoftwareReleases500Error error when the service returns a 500 status code +// returns a V1beta1SoftwareReleasesItemSoftwareReleases503Error error when the service returns a 503 status code +func (m *V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder) GetAsSoftwareReleasesGetResponse(ctx context.Context, requestConfiguration *V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilderGetRequestConfiguration)(V1beta1SoftwareReleasesItemSoftwareReleasesGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SoftwareReleasesItemSoftwareReleases400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SoftwareReleasesItemSoftwareReleases401ErrorFromDiscriminatorValue, + "404": CreateV1beta1SoftwareReleasesItemSoftwareReleases404ErrorFromDiscriminatorValue, + "500": CreateV1beta1SoftwareReleasesItemSoftwareReleases500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SoftwareReleasesItemSoftwareReleases503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SoftwareReleasesItemSoftwareReleasesGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SoftwareReleasesItemSoftwareReleasesGetResponseable), nil +} +// ToGetRequestInformation get a single Software Release by its ID. +// returns a *RequestInformation when successful +func (m *V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder when successful +func (m *V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder) WithUrl(rawUrl string)(*V1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder) { + return NewV1beta1SoftwareReleasesSoftwareReleasesItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades400_error.go new file mode 100644 index 0000000..4837629 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareUpgrades400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareUpgrades400Error instantiates a new V1beta1SoftwareUpgrades400Error and sets the default values. +func NewV1beta1SoftwareUpgrades400Error()(*V1beta1SoftwareUpgrades400Error) { + m := &V1beta1SoftwareUpgrades400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareUpgrades400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareUpgrades400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareUpgrades400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareUpgrades400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareUpgrades400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareUpgrades400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareUpgrades400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareUpgrades400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareUpgrades400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareUpgrades400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareUpgrades400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareUpgrades400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareUpgrades400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareUpgrades400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareUpgrades400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareUpgrades400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareUpgrades400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades401_error.go new file mode 100644 index 0000000..d32b8c7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareUpgrades401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareUpgrades401Error instantiates a new V1beta1SoftwareUpgrades401Error and sets the default values. +func NewV1beta1SoftwareUpgrades401Error()(*V1beta1SoftwareUpgrades401Error) { + m := &V1beta1SoftwareUpgrades401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareUpgrades401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareUpgrades401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareUpgrades401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareUpgrades401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareUpgrades401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareUpgrades401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareUpgrades401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareUpgrades401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareUpgrades401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareUpgrades401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareUpgrades401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareUpgrades401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareUpgrades401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareUpgrades401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareUpgrades401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareUpgrades401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareUpgrades401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades404_error.go new file mode 100644 index 0000000..7ed4db8 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades404_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareUpgrades404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareUpgrades404Error instantiates a new V1beta1SoftwareUpgrades404Error and sets the default values. +func NewV1beta1SoftwareUpgrades404Error()(*V1beta1SoftwareUpgrades404Error) { + m := &V1beta1SoftwareUpgrades404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareUpgrades404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareUpgrades404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareUpgrades404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareUpgrades404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareUpgrades404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareUpgrades404Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareUpgrades404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareUpgrades404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareUpgrades404Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareUpgrades404Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareUpgrades404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareUpgrades404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareUpgrades404Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareUpgrades404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareUpgrades404Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareUpgrades404Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareUpgrades404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades500_error.go new file mode 100644 index 0000000..084fe44 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareUpgrades500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareUpgrades500Error instantiates a new V1beta1SoftwareUpgrades500Error and sets the default values. +func NewV1beta1SoftwareUpgrades500Error()(*V1beta1SoftwareUpgrades500Error) { + m := &V1beta1SoftwareUpgrades500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareUpgrades500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareUpgrades500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareUpgrades500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareUpgrades500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareUpgrades500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareUpgrades500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareUpgrades500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareUpgrades500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareUpgrades500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareUpgrades500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareUpgrades500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareUpgrades500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareUpgrades500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareUpgrades500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareUpgrades500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareUpgrades500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareUpgrades500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades503_error.go new file mode 100644 index 0000000..6c3e58c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1SoftwareUpgrades503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1SoftwareUpgrades503Error instantiates a new V1beta1SoftwareUpgrades503Error and sets the default values. +func NewV1beta1SoftwareUpgrades503Error()(*V1beta1SoftwareUpgrades503Error) { + m := &V1beta1SoftwareUpgrades503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareUpgrades503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareUpgrades503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareUpgrades503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1SoftwareUpgrades503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareUpgrades503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1SoftwareUpgrades503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1SoftwareUpgrades503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareUpgrades503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1SoftwareUpgrades503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1SoftwareUpgrades503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareUpgrades503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareUpgrades503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1SoftwareUpgrades503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1SoftwareUpgrades503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1SoftwareUpgrades503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1SoftwareUpgrades503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1SoftwareUpgrades503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response.go new file mode 100644 index 0000000..7d1c324 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response.go @@ -0,0 +1,122 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareUpgradesGetResponse a list of Software Upgrades. +type V1beta1SoftwareUpgradesGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Number of items in this response. + count *int32 + // The software upgrades. + items []V1beta1SoftwareUpgradesGetResponse_itemsable +} +// NewV1beta1SoftwareUpgradesGetResponse instantiates a new V1beta1SoftwareUpgradesGetResponse and sets the default values. +func NewV1beta1SoftwareUpgradesGetResponse()(*V1beta1SoftwareUpgradesGetResponse) { + m := &V1beta1SoftwareUpgradesGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareUpgradesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareUpgradesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareUpgradesGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareUpgradesGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Number of items in this response. +// returns a *int32 when successful +func (m *V1beta1SoftwareUpgradesGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareUpgradesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1SoftwareUpgradesGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1SoftwareUpgradesGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1SoftwareUpgradesGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + return res +} +// GetItems gets the items property value. The software upgrades. +// returns a []V1beta1SoftwareUpgradesGetResponse_itemsable when successful +func (m *V1beta1SoftwareUpgradesGetResponse) GetItems()([]V1beta1SoftwareUpgradesGetResponse_itemsable) { + return m.items +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareUpgradesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareUpgradesGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Number of items in this response. +func (m *V1beta1SoftwareUpgradesGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. The software upgrades. +func (m *V1beta1SoftwareUpgradesGetResponse) SetItems(value []V1beta1SoftwareUpgradesGetResponse_itemsable)() { + m.items = value +} +type V1beta1SoftwareUpgradesGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1SoftwareUpgradesGetResponse_itemsable) + SetCount(value *int32)() + SetItems(value []V1beta1SoftwareUpgradesGetResponse_itemsable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items.go new file mode 100644 index 0000000..71e8f90 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items.go @@ -0,0 +1,198 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareUpgradesGetResponse_items an upgrade for a previously installed Software Release. +type V1beta1SoftwareUpgradesGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Whether access to the release is currently allowed. If it is not allowed, the`notes` property contains actions to complete to make it allowed. + allowed *bool + // The ID of the resource. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // Actions to completed before the upgrade is allowed. Empty if `allowed` is `true`. + notes *string + // A release of software. + softwareRelease V1beta1SoftwareUpgradesGetResponse_items_softwareReleaseable + // The type of resource. + typeEscaped *string +} +// NewV1beta1SoftwareUpgradesGetResponse_items instantiates a new V1beta1SoftwareUpgradesGetResponse_items and sets the default values. +func NewV1beta1SoftwareUpgradesGetResponse_items()(*V1beta1SoftwareUpgradesGetResponse_items) { + m := &V1beta1SoftwareUpgradesGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareUpgradesGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareUpgradesGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareUpgradesGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAllowed gets the allowed property value. Whether access to the release is currently allowed. If it is not allowed, the`notes` property contains actions to complete to make it allowed. +// returns a *bool when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items) GetAllowed()(*bool) { + return m.allowed +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["allowed"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAllowed(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNotes(val) + } + return nil + } + res["softwareRelease"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SoftwareUpgradesGetResponse_items_softwareReleaseFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSoftwareRelease(val.(V1beta1SoftwareUpgradesGetResponse_items_softwareReleaseable)) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The ID of the resource. +// returns a *UUID when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetNotes gets the notes property value. Actions to completed before the upgrade is allowed. Empty if `allowed` is `true`. +// returns a *string when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items) GetNotes()(*string) { + return m.notes +} +// GetSoftwareRelease gets the softwareRelease property value. A release of software. +// returns a V1beta1SoftwareUpgradesGetResponse_items_softwareReleaseable when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items) GetSoftwareRelease()(V1beta1SoftwareUpgradesGetResponse_items_softwareReleaseable) { + return m.softwareRelease +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareUpgradesGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("allowed", m.GetAllowed()) + if err != nil { + return err + } + } + { + err := writer.WriteUUIDValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("softwareRelease", m.GetSoftwareRelease()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareUpgradesGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAllowed sets the allowed property value. Whether access to the release is currently allowed. If it is not allowed, the`notes` property contains actions to complete to make it allowed. +func (m *V1beta1SoftwareUpgradesGetResponse_items) SetAllowed(value *bool)() { + m.allowed = value +} +// SetId sets the id property value. The ID of the resource. +func (m *V1beta1SoftwareUpgradesGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetNotes sets the notes property value. Actions to completed before the upgrade is allowed. Empty if `allowed` is `true`. +func (m *V1beta1SoftwareUpgradesGetResponse_items) SetNotes(value *string)() { + m.notes = value +} +// SetSoftwareRelease sets the softwareRelease property value. A release of software. +func (m *V1beta1SoftwareUpgradesGetResponse_items) SetSoftwareRelease(value V1beta1SoftwareUpgradesGetResponse_items_softwareReleaseable)() { + m.softwareRelease = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1SoftwareUpgradesGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1SoftwareUpgradesGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAllowed()(*bool) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetNotes()(*string) + GetSoftwareRelease()(V1beta1SoftwareUpgradesGetResponse_items_softwareReleaseable) + GetTypeEscaped()(*string) + SetAllowed(value *bool)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetNotes(value *string)() + SetSoftwareRelease(value V1beta1SoftwareUpgradesGetResponse_items_softwareReleaseable)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items_escaped_software_release.go b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items_escaped_software_release.go new file mode 100644 index 0000000..d85e9f1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items_escaped_software_release.go @@ -0,0 +1,401 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareUpgradesGetResponse_items_softwareRelease a release of software. +type V1beta1SoftwareUpgradesGetResponse_items_softwareRelease struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // Whether the files within the Software Release can be downloaded. + downloadable *bool + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // A system specified name for the resource. + name *string + // The self reference for this resource. + resourceUri *string + // The metadata for files within a Software Release. + signature V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signatureable + // The metadata for files within a Software Release. + software V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareable + // The Software Component a Software Release belongs to. + softwareComponent V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponentable + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The version of a Software Release. + version *string +} +// NewV1beta1SoftwareUpgradesGetResponse_items_softwareRelease instantiates a new V1beta1SoftwareUpgradesGetResponse_items_softwareRelease and sets the default values. +func NewV1beta1SoftwareUpgradesGetResponse_items_softwareRelease()(*V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) { + m := &V1beta1SoftwareUpgradesGetResponse_items_softwareRelease{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareUpgradesGetResponse_items_softwareReleaseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareUpgradesGetResponse_items_softwareReleaseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareUpgradesGetResponse_items_softwareRelease(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) GetCustomerId()(*string) { + return m.customerId +} +// GetDownloadable gets the downloadable property value. Whether the files within the Software Release can be downloaded. +// returns a *bool when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) GetDownloadable()(*bool) { + return m.downloadable +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["downloadable"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetDownloadable(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["signature"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signatureFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSignature(val.(V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signatureable)) + } + return nil + } + res["software"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSoftware(val.(V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareable)) + } + return nil + } + res["softwareComponent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSoftwareComponent(val.(V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponentable)) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + res["version"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetVersion(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSignature gets the signature property value. The metadata for files within a Software Release. +// returns a V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signatureable when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) GetSignature()(V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signatureable) { + return m.signature +} +// GetSoftware gets the software property value. The metadata for files within a Software Release. +// returns a V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareable when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) GetSoftware()(V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareable) { + return m.software +} +// GetSoftwareComponent gets the softwareComponent property value. The Software Component a Software Release belongs to. +// returns a V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponentable when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) GetSoftwareComponent()(V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponentable) { + return m.softwareComponent +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// GetVersion gets the version property value. The version of a Software Release. +// returns a *string when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) GetVersion()(*string) { + return m.version +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("downloadable", m.GetDownloadable()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("signature", m.GetSignature()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("software", m.GetSoftware()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("softwareComponent", m.GetSoftwareComponent()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("version", m.GetVersion()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDownloadable sets the downloadable property value. Whether the files within the Software Release can be downloaded. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) SetDownloadable(value *bool)() { + m.downloadable = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSignature sets the signature property value. The metadata for files within a Software Release. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) SetSignature(value V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signatureable)() { + m.signature = value +} +// SetSoftware sets the software property value. The metadata for files within a Software Release. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) SetSoftware(value V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareable)() { + m.software = value +} +// SetSoftwareComponent sets the softwareComponent property value. The Software Component a Software Release belongs to. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) SetSoftwareComponent(value V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponentable)() { + m.softwareComponent = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +// SetVersion sets the version property value. The version of a Software Release. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease) SetVersion(value *string)() { + m.version = value +} +type V1beta1SoftwareUpgradesGetResponse_items_softwareReleaseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDownloadable()(*bool) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetName()(*string) + GetResourceUri()(*string) + GetSignature()(V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signatureable) + GetSoftware()(V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareable) + GetSoftwareComponent()(V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponentable) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetVersion()(*string) + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDownloadable(value *bool)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetName(value *string)() + SetResourceUri(value *string)() + SetSignature(value V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signatureable)() + SetSoftware(value V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareable)() + SetSoftwareComponent(value V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareComponentable)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetVersion(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items_escaped_software_release_escaped_signature.go b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items_escaped_software_release_escaped_signature.go new file mode 100644 index 0000000..90c07c0 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items_escaped_software_release_escaped_signature.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature the metadata for files within a Software Release. +type V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The name of a file in a Software Release. + filename *string + // The SHA-256 checksum of a file in a Software Release in hexadecimal. + sha256Checksum *string + // The sizeInBytes property + sizeInBytes *int64 +} +// NewV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature instantiates a new V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature and sets the default values. +func NewV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature()(*V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature) { + m := &V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signatureFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signatureFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["filename"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFilename(val) + } + return nil + } + res["sha256Checksum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha256Checksum(val) + } + return nil + } + res["sizeInBytes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetSizeInBytes(val) + } + return nil + } + return res +} +// GetFilename gets the filename property value. The name of a file in a Software Release. +// returns a *string when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature) GetFilename()(*string) { + return m.filename +} +// GetSha256Checksum gets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +// returns a *string when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature) GetSha256Checksum()(*string) { + return m.sha256Checksum +} +// GetSizeInBytes gets the sizeInBytes property value. The sizeInBytes property +// returns a *int64 when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature) GetSizeInBytes()(*int64) { + return m.sizeInBytes +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("filename", m.GetFilename()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sha256Checksum", m.GetSha256Checksum()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("sizeInBytes", m.GetSizeInBytes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetFilename sets the filename property value. The name of a file in a Software Release. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature) SetFilename(value *string)() { + m.filename = value +} +// SetSha256Checksum sets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature) SetSha256Checksum(value *string)() { + m.sha256Checksum = value +} +// SetSizeInBytes sets the sizeInBytes property value. The sizeInBytes property +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signature) SetSizeInBytes(value *int64)() { + m.sizeInBytes = value +} +type V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_signatureable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetFilename()(*string) + GetSha256Checksum()(*string) + GetSizeInBytes()(*int64) + SetFilename(value *string)() + SetSha256Checksum(value *string)() + SetSizeInBytes(value *int64)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items_escaped_software_release_escaped_software.go b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items_escaped_software_release_escaped_software.go new file mode 100644 index 0000000..25ad496 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_get_response_escaped_items_escaped_software_release_escaped_software.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software the metadata for files within a Software Release. +type V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The name of a file in a Software Release. + filename *string + // The SHA-256 checksum of a file in a Software Release in hexadecimal. + sha256Checksum *string + // The sizeInBytes property + sizeInBytes *int64 +} +// NewV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software instantiates a new V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software and sets the default values. +func NewV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software()(*V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software) { + m := &V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["filename"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFilename(val) + } + return nil + } + res["sha256Checksum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha256Checksum(val) + } + return nil + } + res["sizeInBytes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetSizeInBytes(val) + } + return nil + } + return res +} +// GetFilename gets the filename property value. The name of a file in a Software Release. +// returns a *string when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software) GetFilename()(*string) { + return m.filename +} +// GetSha256Checksum gets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +// returns a *string when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software) GetSha256Checksum()(*string) { + return m.sha256Checksum +} +// GetSizeInBytes gets the sizeInBytes property value. The sizeInBytes property +// returns a *int64 when successful +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software) GetSizeInBytes()(*int64) { + return m.sizeInBytes +} +// Serialize serializes information the current object +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("filename", m.GetFilename()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("sha256Checksum", m.GetSha256Checksum()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("sizeInBytes", m.GetSizeInBytes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetFilename sets the filename property value. The name of a file in a Software Release. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software) SetFilename(value *string)() { + m.filename = value +} +// SetSha256Checksum sets the sha256Checksum property value. The SHA-256 checksum of a file in a Software Release in hexadecimal. +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software) SetSha256Checksum(value *string)() { + m.sha256Checksum = value +} +// SetSizeInBytes sets the sizeInBytes property value. The sizeInBytes property +func (m *V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_software) SetSizeInBytes(value *int64)() { + m.sizeInBytes = value +} +type V1beta1SoftwareUpgradesGetResponse_items_softwareRelease_softwareable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetFilename()(*string) + GetSha256Checksum()(*string) + GetSizeInBytes()(*int64) + SetFilename(value *string)() + SetSha256Checksum(value *string)() + SetSizeInBytes(value *int64)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_request_builder.go new file mode 100644 index 0000000..8d6b066 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_request_builder.go @@ -0,0 +1,121 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" +) + +// V1beta1SoftwareUpgradesRequestBuilder builds and executes requests for operations under \data-services\v1beta1\software-upgrades +type V1beta1SoftwareUpgradesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1SoftwareUpgradesRequestBuilderGetQueryParameters list the available upgrades for an installed Software Release, identified by a version andSoftware Component ID. Pagination is not supported on the returned items.The returned items are upgrades that can be applied to an existing installation of a SoftwareRelease. Some releases can be applied immediately, while others may require correctiveactions to be completed before the release is allowed.Upgrades beyond those initially returned can be found by recursively calling this API withthe new Software Release version. This can be useful for presenting the series of updatesrequired to bring an installation to the latest version. +type V1beta1SoftwareUpgradesRequestBuilderGetQueryParameters struct { + // The identifier for the virtual machine being upgraded. Either `agent-id` or `serial-number`must be supplied. + AgentId *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID `uriparametername:"agent%2Did"` + // The serial number of the hardware being upgraded. Either `agent-id` or `serial-number` mustbe supplied. + SerialNumber *string `uriparametername:"serial%2Dnumber"` + // The ID of a Software Component. + SoftwareComponentId *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID `uriparametername:"software%2Dcomponent%2Did"` + // The version of an installed Software Release that is being upgraded. + Version *string `uriparametername:"version"` +} +// V1beta1SoftwareUpgradesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1SoftwareUpgradesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1SoftwareUpgradesRequestBuilderGetQueryParameters +} +// NewV1beta1SoftwareUpgradesRequestBuilderInternal instantiates a new V1beta1SoftwareUpgradesRequestBuilder and sets the default values. +func NewV1beta1SoftwareUpgradesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareUpgradesRequestBuilder) { + m := &V1beta1SoftwareUpgradesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/software-upgrades?software-component-id={software%2Dcomponent%2Did}&version={version}{&agent%2Did*,serial%2Dnumber*}", pathParameters), + } + return m +} +// NewV1beta1SoftwareUpgradesRequestBuilder instantiates a new V1beta1SoftwareUpgradesRequestBuilder and sets the default values. +func NewV1beta1SoftwareUpgradesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1SoftwareUpgradesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1SoftwareUpgradesRequestBuilderInternal(urlParams, requestAdapter) +} +// Get list the available upgrades for an installed Software Release, identified by a version andSoftware Component ID. Pagination is not supported on the returned items.The returned items are upgrades that can be applied to an existing installation of a SoftwareRelease. Some releases can be applied immediately, while others may require correctiveactions to be completed before the release is allowed.Upgrades beyond those initially returned can be found by recursively calling this API withthe new Software Release version. This can be useful for presenting the series of updatesrequired to bring an installation to the latest version. +// Deprecated: This method is obsolete. Use GetAsSoftwareUpgradesGetResponse instead. +// returns a V1beta1SoftwareUpgradesResponseable when successful +// returns a V1beta1SoftwareUpgrades400Error error when the service returns a 400 status code +// returns a V1beta1SoftwareUpgrades401Error error when the service returns a 401 status code +// returns a V1beta1SoftwareUpgrades404Error error when the service returns a 404 status code +// returns a V1beta1SoftwareUpgrades500Error error when the service returns a 500 status code +// returns a V1beta1SoftwareUpgrades503Error error when the service returns a 503 status code +func (m *V1beta1SoftwareUpgradesRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1SoftwareUpgradesRequestBuilderGetRequestConfiguration)(V1beta1SoftwareUpgradesResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SoftwareUpgrades400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SoftwareUpgrades401ErrorFromDiscriminatorValue, + "404": CreateV1beta1SoftwareUpgrades404ErrorFromDiscriminatorValue, + "500": CreateV1beta1SoftwareUpgrades500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SoftwareUpgrades503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SoftwareUpgradesResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SoftwareUpgradesResponseable), nil +} +// GetAsSoftwareUpgradesGetResponse list the available upgrades for an installed Software Release, identified by a version andSoftware Component ID. Pagination is not supported on the returned items.The returned items are upgrades that can be applied to an existing installation of a SoftwareRelease. Some releases can be applied immediately, while others may require correctiveactions to be completed before the release is allowed.Upgrades beyond those initially returned can be found by recursively calling this API withthe new Software Release version. This can be useful for presenting the series of updatesrequired to bring an installation to the latest version. +// returns a V1beta1SoftwareUpgradesGetResponseable when successful +// returns a V1beta1SoftwareUpgrades400Error error when the service returns a 400 status code +// returns a V1beta1SoftwareUpgrades401Error error when the service returns a 401 status code +// returns a V1beta1SoftwareUpgrades404Error error when the service returns a 404 status code +// returns a V1beta1SoftwareUpgrades500Error error when the service returns a 500 status code +// returns a V1beta1SoftwareUpgrades503Error error when the service returns a 503 status code +func (m *V1beta1SoftwareUpgradesRequestBuilder) GetAsSoftwareUpgradesGetResponse(ctx context.Context, requestConfiguration *V1beta1SoftwareUpgradesRequestBuilderGetRequestConfiguration)(V1beta1SoftwareUpgradesGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1SoftwareUpgrades400ErrorFromDiscriminatorValue, + "401": CreateV1beta1SoftwareUpgrades401ErrorFromDiscriminatorValue, + "404": CreateV1beta1SoftwareUpgrades404ErrorFromDiscriminatorValue, + "500": CreateV1beta1SoftwareUpgrades500ErrorFromDiscriminatorValue, + "503": CreateV1beta1SoftwareUpgrades503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1SoftwareUpgradesGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1SoftwareUpgradesGetResponseable), nil +} +// ToGetRequestInformation list the available upgrades for an installed Software Release, identified by a version andSoftware Component ID. Pagination is not supported on the returned items.The returned items are upgrades that can be applied to an existing installation of a SoftwareRelease. Some releases can be applied immediately, while others may require correctiveactions to be completed before the release is allowed.Upgrades beyond those initially returned can be found by recursively calling this API withthe new Software Release version. This can be useful for presenting the series of updatesrequired to bring an installation to the latest version. +// returns a *RequestInformation when successful +func (m *V1beta1SoftwareUpgradesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1SoftwareUpgradesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1SoftwareUpgradesRequestBuilder when successful +func (m *V1beta1SoftwareUpgradesRequestBuilder) WithUrl(rawUrl string)(*V1beta1SoftwareUpgradesRequestBuilder) { + return NewV1beta1SoftwareUpgradesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_response.go b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_response.go new file mode 100644 index 0000000..32de2e2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_software_upgrades_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1SoftwareUpgradesResponse a list of Software Upgrades. +// Deprecated: This class is obsolete. Use V1beta1SoftwareUpgradesGetResponseable instead. +type V1beta1SoftwareUpgradesResponse struct { + V1beta1SoftwareUpgradesGetResponse +} +// NewV1beta1SoftwareUpgradesResponse instantiates a new V1beta1SoftwareUpgradesResponse and sets the default values. +func NewV1beta1SoftwareUpgradesResponse()(*V1beta1SoftwareUpgradesResponse) { + m := &V1beta1SoftwareUpgradesResponse{ + V1beta1SoftwareUpgradesGetResponse: *NewV1beta1SoftwareUpgradesGetResponse(), + } + return m +} +// CreateV1beta1SoftwareUpgradesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1SoftwareUpgradesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1SoftwareUpgradesResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1SoftwareUpgradesGetResponseable instead. +type V1beta1SoftwareUpgradesResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1SoftwareUpgradesGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations400_error.go new file mode 100644 index 0000000..c92eec7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1StorageLocations400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1StorageLocations400Error instantiates a new V1beta1StorageLocations400Error and sets the default values. +func NewV1beta1StorageLocations400Error()(*V1beta1StorageLocations400Error) { + m := &V1beta1StorageLocations400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1StorageLocations400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocations400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocations400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1StorageLocations400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1StorageLocations400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1StorageLocations400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1StorageLocations400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1StorageLocations400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1StorageLocations400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1StorageLocations400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1StorageLocations400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1StorageLocations400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1StorageLocations400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1StorageLocations400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1StorageLocations400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1StorageLocations400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1StorageLocations400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations401_error.go new file mode 100644 index 0000000..a7026f6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1StorageLocations401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1StorageLocations401Error instantiates a new V1beta1StorageLocations401Error and sets the default values. +func NewV1beta1StorageLocations401Error()(*V1beta1StorageLocations401Error) { + m := &V1beta1StorageLocations401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1StorageLocations401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocations401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocations401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1StorageLocations401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1StorageLocations401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1StorageLocations401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1StorageLocations401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1StorageLocations401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1StorageLocations401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1StorageLocations401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1StorageLocations401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1StorageLocations401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1StorageLocations401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1StorageLocations401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1StorageLocations401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1StorageLocations401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1StorageLocations401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations403_error.go new file mode 100644 index 0000000..fc55ddc --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1StorageLocations403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1StorageLocations403Error instantiates a new V1beta1StorageLocations403Error and sets the default values. +func NewV1beta1StorageLocations403Error()(*V1beta1StorageLocations403Error) { + m := &V1beta1StorageLocations403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1StorageLocations403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocations403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocations403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1StorageLocations403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1StorageLocations403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1StorageLocations403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1StorageLocations403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1StorageLocations403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1StorageLocations403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1StorageLocations403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1StorageLocations403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1StorageLocations403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1StorageLocations403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1StorageLocations403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1StorageLocations403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1StorageLocations403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1StorageLocations403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations500_error.go new file mode 100644 index 0000000..cadfb19 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1StorageLocations500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1StorageLocations500Error instantiates a new V1beta1StorageLocations500Error and sets the default values. +func NewV1beta1StorageLocations500Error()(*V1beta1StorageLocations500Error) { + m := &V1beta1StorageLocations500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1StorageLocations500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocations500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocations500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1StorageLocations500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1StorageLocations500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1StorageLocations500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1StorageLocations500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1StorageLocations500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1StorageLocations500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1StorageLocations500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1StorageLocations500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1StorageLocations500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1StorageLocations500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1StorageLocations500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1StorageLocations500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1StorageLocations500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1StorageLocations500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations503_error.go new file mode 100644 index 0000000..ce424ad --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1StorageLocations503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1StorageLocations503Error instantiates a new V1beta1StorageLocations503Error and sets the default values. +func NewV1beta1StorageLocations503Error()(*V1beta1StorageLocations503Error) { + m := &V1beta1StorageLocations503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1StorageLocations503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocations503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocations503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1StorageLocations503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1StorageLocations503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1StorageLocations503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1StorageLocations503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1StorageLocations503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1StorageLocations503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1StorageLocations503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1StorageLocations503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1StorageLocations503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1StorageLocations503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1StorageLocations503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1StorageLocations503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1StorageLocations503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1StorageLocations503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_get_response.go new file mode 100644 index 0000000..a30f1f7 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_get_response.go @@ -0,0 +1,179 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1StorageLocationsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Number of items in this response. + count *int32 + // The storage locations returned by the query. + items []V1beta1StorageLocationsGetResponse_itemsable + // The offset query parameter from the request. + offset *int32 + // Total number of items matching the filter parameter in the request. + total *int32 +} +// NewV1beta1StorageLocationsGetResponse instantiates a new V1beta1StorageLocationsGetResponse and sets the default values. +func NewV1beta1StorageLocationsGetResponse()(*V1beta1StorageLocationsGetResponse) { + m := &V1beta1StorageLocationsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1StorageLocationsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocationsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocationsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1StorageLocationsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Number of items in this response. +// returns a *int32 when successful +func (m *V1beta1StorageLocationsGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1StorageLocationsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1StorageLocationsGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1StorageLocationsGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1StorageLocationsGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetItems gets the items property value. The storage locations returned by the query. +// returns a []V1beta1StorageLocationsGetResponse_itemsable when successful +func (m *V1beta1StorageLocationsGetResponse) GetItems()([]V1beta1StorageLocationsGetResponse_itemsable) { + return m.items +} +// GetOffset gets the offset property value. The offset query parameter from the request. +// returns a *int32 when successful +func (m *V1beta1StorageLocationsGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetTotal gets the total property value. Total number of items matching the filter parameter in the request. +// returns a *int32 when successful +func (m *V1beta1StorageLocationsGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1StorageLocationsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1StorageLocationsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Number of items in this response. +func (m *V1beta1StorageLocationsGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. The storage locations returned by the query. +func (m *V1beta1StorageLocationsGetResponse) SetItems(value []V1beta1StorageLocationsGetResponse_itemsable)() { + m.items = value +} +// SetOffset sets the offset property value. The offset query parameter from the request. +func (m *V1beta1StorageLocationsGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetTotal sets the total property value. Total number of items matching the filter parameter in the request. +func (m *V1beta1StorageLocationsGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1StorageLocationsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1StorageLocationsGetResponse_itemsable) + GetOffset()(*int32) + GetTotal()(*int32) + SetCount(value *int32)() + SetItems(value []V1beta1StorageLocationsGetResponse_itemsable)() + SetOffset(value *int32)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_get_response_escaped_items.go new file mode 100644 index 0000000..4d41c94 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_get_response_escaped_items.go @@ -0,0 +1,407 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1StorageLocationsGetResponse_items required properties of a storage location. +type V1beta1StorageLocationsGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The list of features that support the storage location. + capabilities []string + // The city the storage location is in. + city *string + // The Cloud Service Provider (CSP) ID. + cloudServiceProviderId *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // The geographical location of the storage location. Current geographies include: - North America- Europe- Asia Pacific- Middle East and Africa + geography *string + // An identifier for the resource. + id *string + // A system specified name for the resource. + name *string + // The 'self' reference for this resource. + resourceUri *string + // The Timezone of the location as defined by the local standard time (non summer time) offset from UTC. + timezone *string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1StorageLocationsGetResponse_items instantiates a new V1beta1StorageLocationsGetResponse_items and sets the default values. +func NewV1beta1StorageLocationsGetResponse_items()(*V1beta1StorageLocationsGetResponse_items) { + m := &V1beta1StorageLocationsGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1StorageLocationsGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocationsGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocationsGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1StorageLocationsGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCapabilities gets the capabilities property value. The list of features that support the storage location. +// returns a []string when successful +func (m *V1beta1StorageLocationsGetResponse_items) GetCapabilities()([]string) { + return m.capabilities +} +// GetCity gets the city property value. The city the storage location is in. +// returns a *string when successful +func (m *V1beta1StorageLocationsGetResponse_items) GetCity()(*string) { + return m.city +} +// GetCloudServiceProviderId gets the cloudServiceProviderId property value. The Cloud Service Provider (CSP) ID. +// returns a *string when successful +func (m *V1beta1StorageLocationsGetResponse_items) GetCloudServiceProviderId()(*string) { + return m.cloudServiceProviderId +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1StorageLocationsGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1StorageLocationsGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["capabilities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetCapabilities(res) + } + return nil + } + res["city"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCity(val) + } + return nil + } + res["cloudServiceProviderId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCloudServiceProviderId(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["geography"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetGeography(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["timezone"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTimezone(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1StorageLocationsGetResponse_items) GetGeneration()(*int64) { + return m.generation +} +// GetGeography gets the geography property value. The geographical location of the storage location. Current geographies include: - North America- Europe- Asia Pacific- Middle East and Africa +// returns a *string when successful +func (m *V1beta1StorageLocationsGetResponse_items) GetGeography()(*string) { + return m.geography +} +// GetId gets the id property value. An identifier for the resource. +// returns a *string when successful +func (m *V1beta1StorageLocationsGetResponse_items) GetId()(*string) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1StorageLocationsGetResponse_items) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The 'self' reference for this resource. +// returns a *string when successful +func (m *V1beta1StorageLocationsGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTimezone gets the timezone property value. The Timezone of the location as defined by the local standard time (non summer time) offset from UTC. +// returns a *string when successful +func (m *V1beta1StorageLocationsGetResponse_items) GetTimezone()(*string) { + return m.timezone +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1StorageLocationsGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1StorageLocationsGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1StorageLocationsGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetCapabilities() != nil { + err := writer.WriteCollectionOfStringValues("capabilities", m.GetCapabilities()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("city", m.GetCity()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("cloudServiceProviderId", m.GetCloudServiceProviderId()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("generation", m.GetGeneration()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("geography", m.GetGeography()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("timezone", m.GetTimezone()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1StorageLocationsGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCapabilities sets the capabilities property value. The list of features that support the storage location. +func (m *V1beta1StorageLocationsGetResponse_items) SetCapabilities(value []string)() { + m.capabilities = value +} +// SetCity sets the city property value. The city the storage location is in. +func (m *V1beta1StorageLocationsGetResponse_items) SetCity(value *string)() { + m.city = value +} +// SetCloudServiceProviderId sets the cloudServiceProviderId property value. The Cloud Service Provider (CSP) ID. +func (m *V1beta1StorageLocationsGetResponse_items) SetCloudServiceProviderId(value *string)() { + m.cloudServiceProviderId = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1StorageLocationsGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1StorageLocationsGetResponse_items) SetGeneration(value *int64)() { + m.generation = value +} +// SetGeography sets the geography property value. The geographical location of the storage location. Current geographies include: - North America- Europe- Asia Pacific- Middle East and Africa +func (m *V1beta1StorageLocationsGetResponse_items) SetGeography(value *string)() { + m.geography = value +} +// SetId sets the id property value. An identifier for the resource. +func (m *V1beta1StorageLocationsGetResponse_items) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1StorageLocationsGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The 'self' reference for this resource. +func (m *V1beta1StorageLocationsGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTimezone sets the timezone property value. The Timezone of the location as defined by the local standard time (non summer time) offset from UTC. +func (m *V1beta1StorageLocationsGetResponse_items) SetTimezone(value *string)() { + m.timezone = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1StorageLocationsGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1StorageLocationsGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1StorageLocationsGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCapabilities()([]string) + GetCity()(*string) + GetCloudServiceProviderId()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetGeneration()(*int64) + GetGeography()(*string) + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTimezone()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetCapabilities(value []string)() + SetCity(value *string)() + SetCloudServiceProviderId(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetGeneration(value *int64)() + SetGeography(value *string)() + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTimezone(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations400_error.go new file mode 100644 index 0000000..dd144ac --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations400_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1StorageLocationsItemStorageLocations400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1StorageLocationsItemStorageLocations400Error instantiates a new V1beta1StorageLocationsItemStorageLocations400Error and sets the default values. +func NewV1beta1StorageLocationsItemStorageLocations400Error()(*V1beta1StorageLocationsItemStorageLocations400Error) { + m := &V1beta1StorageLocationsItemStorageLocations400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1StorageLocationsItemStorageLocations400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocationsItemStorageLocations400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocationsItemStorageLocations400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1StorageLocationsItemStorageLocations400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1StorageLocationsItemStorageLocations400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations400Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations400Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1StorageLocationsItemStorageLocations400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1StorageLocationsItemStorageLocations400Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations400Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1StorageLocationsItemStorageLocations400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1StorageLocationsItemStorageLocations400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1StorageLocationsItemStorageLocations400Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1StorageLocationsItemStorageLocations400Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1StorageLocationsItemStorageLocations400Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1StorageLocationsItemStorageLocations400Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1StorageLocationsItemStorageLocations400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations401_error.go new file mode 100644 index 0000000..3dbccfe --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations401_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1StorageLocationsItemStorageLocations401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1StorageLocationsItemStorageLocations401Error instantiates a new V1beta1StorageLocationsItemStorageLocations401Error and sets the default values. +func NewV1beta1StorageLocationsItemStorageLocations401Error()(*V1beta1StorageLocationsItemStorageLocations401Error) { + m := &V1beta1StorageLocationsItemStorageLocations401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1StorageLocationsItemStorageLocations401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocationsItemStorageLocations401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocationsItemStorageLocations401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1StorageLocationsItemStorageLocations401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1StorageLocationsItemStorageLocations401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations401Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations401Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1StorageLocationsItemStorageLocations401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1StorageLocationsItemStorageLocations401Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations401Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1StorageLocationsItemStorageLocations401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1StorageLocationsItemStorageLocations401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1StorageLocationsItemStorageLocations401Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1StorageLocationsItemStorageLocations401Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1StorageLocationsItemStorageLocations401Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1StorageLocationsItemStorageLocations401Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1StorageLocationsItemStorageLocations401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations403_error.go new file mode 100644 index 0000000..2b949c2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations403_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1StorageLocationsItemStorageLocations403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1StorageLocationsItemStorageLocations403Error instantiates a new V1beta1StorageLocationsItemStorageLocations403Error and sets the default values. +func NewV1beta1StorageLocationsItemStorageLocations403Error()(*V1beta1StorageLocationsItemStorageLocations403Error) { + m := &V1beta1StorageLocationsItemStorageLocations403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1StorageLocationsItemStorageLocations403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocationsItemStorageLocations403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocationsItemStorageLocations403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1StorageLocationsItemStorageLocations403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1StorageLocationsItemStorageLocations403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations403Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations403Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1StorageLocationsItemStorageLocations403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1StorageLocationsItemStorageLocations403Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1StorageLocationsItemStorageLocations403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1StorageLocationsItemStorageLocations403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1StorageLocationsItemStorageLocations403Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1StorageLocationsItemStorageLocations403Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1StorageLocationsItemStorageLocations403Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1StorageLocationsItemStorageLocations403Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1StorageLocationsItemStorageLocations403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations404_error.go new file mode 100644 index 0000000..08d74de --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations404_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1StorageLocationsItemStorageLocations404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: NOT_FOUND + errorCode *string +} +// NewV1beta1StorageLocationsItemStorageLocations404Error instantiates a new V1beta1StorageLocationsItemStorageLocations404Error and sets the default values. +func NewV1beta1StorageLocationsItemStorageLocations404Error()(*V1beta1StorageLocationsItemStorageLocations404Error) { + m := &V1beta1StorageLocationsItemStorageLocations404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1StorageLocationsItemStorageLocations404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocationsItemStorageLocations404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocationsItemStorageLocations404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1StorageLocationsItemStorageLocations404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1StorageLocationsItemStorageLocations404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: NOT_FOUND +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations404Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1StorageLocationsItemStorageLocations404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1StorageLocationsItemStorageLocations404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1StorageLocationsItemStorageLocations404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: NOT_FOUND +func (m *V1beta1StorageLocationsItemStorageLocations404Error) SetErrorCode(value *string)() { + m.errorCode = value +} +type V1beta1StorageLocationsItemStorageLocations404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(*string) + SetErrorCode(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations500_error.go new file mode 100644 index 0000000..eb5ed7e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations500_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1StorageLocationsItemStorageLocations500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1StorageLocationsItemStorageLocations500Error instantiates a new V1beta1StorageLocationsItemStorageLocations500Error and sets the default values. +func NewV1beta1StorageLocationsItemStorageLocations500Error()(*V1beta1StorageLocationsItemStorageLocations500Error) { + m := &V1beta1StorageLocationsItemStorageLocations500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1StorageLocationsItemStorageLocations500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocationsItemStorageLocations500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocationsItemStorageLocations500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1StorageLocationsItemStorageLocations500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1StorageLocationsItemStorageLocations500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations500Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations500Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1StorageLocationsItemStorageLocations500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1StorageLocationsItemStorageLocations500Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations500Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1StorageLocationsItemStorageLocations500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1StorageLocationsItemStorageLocations500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1StorageLocationsItemStorageLocations500Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1StorageLocationsItemStorageLocations500Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1StorageLocationsItemStorageLocations500Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1StorageLocationsItemStorageLocations500Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1StorageLocationsItemStorageLocations500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations503_error.go new file mode 100644 index 0000000..0ec4b64 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations503_error.go @@ -0,0 +1,175 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1StorageLocationsItemStorageLocations503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1StorageLocationsItemStorageLocations503Error instantiates a new V1beta1StorageLocationsItemStorageLocations503Error and sets the default values. +func NewV1beta1StorageLocationsItemStorageLocations503Error()(*V1beta1StorageLocationsItemStorageLocations503Error) { + m := &V1beta1StorageLocationsItemStorageLocations503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1StorageLocationsItemStorageLocations503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocationsItemStorageLocations503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocationsItemStorageLocations503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1StorageLocationsItemStorageLocations503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1StorageLocationsItemStorageLocations503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations503Error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations503Error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1StorageLocationsItemStorageLocations503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1StorageLocationsItemStorageLocations503Error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocations503Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1StorageLocationsItemStorageLocations503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1StorageLocationsItemStorageLocations503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1StorageLocationsItemStorageLocations503Error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1StorageLocationsItemStorageLocations503Error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1StorageLocationsItemStorageLocations503Error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1StorageLocationsItemStorageLocations503Error) SetMessage(value *string)() { + m.message = value +} +type V1beta1StorageLocationsItemStorageLocations503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations_get_response.go new file mode 100644 index 0000000..69814f5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations_get_response.go @@ -0,0 +1,407 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1StorageLocationsItemStorageLocationsGetResponse required properties of a storage location. +type V1beta1StorageLocationsItemStorageLocationsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The list of features that support the storage location. + capabilities []string + // The city the storage location is in. + city *string + // The Cloud Service Provider (CSP) ID. + cloudServiceProviderId *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // The geographical location of the storage location. Current geographies include: - North America- Europe- Asia Pacific- Middle East and Africa + geography *string + // An identifier for the resource. + id *string + // A system specified name for the resource. + name *string + // The 'self' reference for this resource. + resourceUri *string + // The Timezone of the location as defined by the local standard time (non summer time) offset from UTC. + timezone *string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1StorageLocationsItemStorageLocationsGetResponse instantiates a new V1beta1StorageLocationsItemStorageLocationsGetResponse and sets the default values. +func NewV1beta1StorageLocationsItemStorageLocationsGetResponse()(*V1beta1StorageLocationsItemStorageLocationsGetResponse) { + m := &V1beta1StorageLocationsItemStorageLocationsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1StorageLocationsItemStorageLocationsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocationsItemStorageLocationsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocationsItemStorageLocationsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCapabilities gets the capabilities property value. The list of features that support the storage location. +// returns a []string when successful +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) GetCapabilities()([]string) { + return m.capabilities +} +// GetCity gets the city property value. The city the storage location is in. +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) GetCity()(*string) { + return m.city +} +// GetCloudServiceProviderId gets the cloudServiceProviderId property value. The Cloud Service Provider (CSP) ID. +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) GetCloudServiceProviderId()(*string) { + return m.cloudServiceProviderId +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["capabilities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetCapabilities(res) + } + return nil + } + res["city"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCity(val) + } + return nil + } + res["cloudServiceProviderId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCloudServiceProviderId(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["geography"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetGeography(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["timezone"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTimezone(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) GetGeneration()(*int64) { + return m.generation +} +// GetGeography gets the geography property value. The geographical location of the storage location. Current geographies include: - North America- Europe- Asia Pacific- Middle East and Africa +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) GetGeography()(*string) { + return m.geography +} +// GetId gets the id property value. An identifier for the resource. +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) GetId()(*string) { + return m.id +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The 'self' reference for this resource. +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTimezone gets the timezone property value. The Timezone of the location as defined by the local standard time (non summer time) offset from UTC. +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) GetTimezone()(*string) { + return m.timezone +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetCapabilities() != nil { + err := writer.WriteCollectionOfStringValues("capabilities", m.GetCapabilities()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("city", m.GetCity()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("cloudServiceProviderId", m.GetCloudServiceProviderId()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("generation", m.GetGeneration()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("geography", m.GetGeography()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceUri", m.GetResourceUri()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("timezone", m.GetTimezone()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCapabilities sets the capabilities property value. The list of features that support the storage location. +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) SetCapabilities(value []string)() { + m.capabilities = value +} +// SetCity sets the city property value. The city the storage location is in. +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) SetCity(value *string)() { + m.city = value +} +// SetCloudServiceProviderId sets the cloudServiceProviderId property value. The Cloud Service Provider (CSP) ID. +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) SetCloudServiceProviderId(value *string)() { + m.cloudServiceProviderId = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) SetGeneration(value *int64)() { + m.generation = value +} +// SetGeography sets the geography property value. The geographical location of the storage location. Current geographies include: - North America- Europe- Asia Pacific- Middle East and Africa +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) SetGeography(value *string)() { + m.geography = value +} +// SetId sets the id property value. An identifier for the resource. +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The 'self' reference for this resource. +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTimezone sets the timezone property value. The Timezone of the location as defined by the local standard time (non summer time) offset from UTC. +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) SetTimezone(value *string)() { + m.timezone = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1StorageLocationsItemStorageLocationsGetResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1StorageLocationsItemStorageLocationsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCapabilities()([]string) + GetCity()(*string) + GetCloudServiceProviderId()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetGeneration()(*int64) + GetGeography()(*string) + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTimezone()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetCapabilities(value []string)() + SetCity(value *string)() + SetCloudServiceProviderId(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetGeneration(value *int64)() + SetGeography(value *string)() + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTimezone(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations_response.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations_response.go new file mode 100644 index 0000000..b3466c3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_item_storage_locations_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1StorageLocationsItemStorageLocationsResponse required properties of a storage location. +// Deprecated: This class is obsolete. Use V1beta1StorageLocationsItemStorageLocationsGetResponseable instead. +type V1beta1StorageLocationsItemStorageLocationsResponse struct { + V1beta1StorageLocationsItemStorageLocationsGetResponse +} +// NewV1beta1StorageLocationsItemStorageLocationsResponse instantiates a new V1beta1StorageLocationsItemStorageLocationsResponse and sets the default values. +func NewV1beta1StorageLocationsItemStorageLocationsResponse()(*V1beta1StorageLocationsItemStorageLocationsResponse) { + m := &V1beta1StorageLocationsItemStorageLocationsResponse{ + V1beta1StorageLocationsItemStorageLocationsGetResponse: *NewV1beta1StorageLocationsItemStorageLocationsGetResponse(), + } + return m +} +// CreateV1beta1StorageLocationsItemStorageLocationsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocationsItemStorageLocationsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocationsItemStorageLocationsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1StorageLocationsItemStorageLocationsGetResponseable instead. +type V1beta1StorageLocationsItemStorageLocationsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1StorageLocationsItemStorageLocationsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_request_builder.go new file mode 100644 index 0000000..77f71cf --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_request_builder.go @@ -0,0 +1,126 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1StorageLocationsRequestBuilder builds and executes requests for operations under \data-services\v1beta1\storage-locations +type V1beta1StorageLocationsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1StorageLocationsRequestBuilderGetQueryParameters returns a list of storage locations. You can filter this list to determine which locations are enabled for a specified service. +type V1beta1StorageLocationsRequestBuilderGetQueryParameters struct { + // A filter expression to apply. This endpoint only accepts the `in` operator on the `capabilities` property. Grouping expressions to change the evaluation precedence is not supported. + Filter *string `uriparametername:"filter"` +} +// V1beta1StorageLocationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1StorageLocationsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1StorageLocationsRequestBuilderGetQueryParameters +} +// ById gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.storageLocations.item collection +// returns a *V1beta1StorageLocationsStorageLocationsItemRequestBuilder when successful +func (m *V1beta1StorageLocationsRequestBuilder) ById(id string)(*V1beta1StorageLocationsStorageLocationsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["id"] = id + } + return NewV1beta1StorageLocationsStorageLocationsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1StorageLocationsRequestBuilderInternal instantiates a new V1beta1StorageLocationsRequestBuilder and sets the default values. +func NewV1beta1StorageLocationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1StorageLocationsRequestBuilder) { + m := &V1beta1StorageLocationsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/storage-locations{?filter*}", pathParameters), + } + return m +} +// NewV1beta1StorageLocationsRequestBuilder instantiates a new V1beta1StorageLocationsRequestBuilder and sets the default values. +func NewV1beta1StorageLocationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1StorageLocationsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1StorageLocationsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns a list of storage locations. You can filter this list to determine which locations are enabled for a specified service. +// Deprecated: This method is obsolete. Use GetAsStorageLocationsGetResponse instead. +// returns a V1beta1StorageLocationsResponseable when successful +// returns a V1beta1StorageLocations400Error error when the service returns a 400 status code +// returns a V1beta1StorageLocations401Error error when the service returns a 401 status code +// returns a V1beta1StorageLocations403Error error when the service returns a 403 status code +// returns a V1beta1StorageLocations500Error error when the service returns a 500 status code +// returns a V1beta1StorageLocations503Error error when the service returns a 503 status code +func (m *V1beta1StorageLocationsRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1StorageLocationsRequestBuilderGetRequestConfiguration)(V1beta1StorageLocationsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1StorageLocations400ErrorFromDiscriminatorValue, + "401": CreateV1beta1StorageLocations401ErrorFromDiscriminatorValue, + "403": CreateV1beta1StorageLocations403ErrorFromDiscriminatorValue, + "500": CreateV1beta1StorageLocations500ErrorFromDiscriminatorValue, + "503": CreateV1beta1StorageLocations503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1StorageLocationsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1StorageLocationsResponseable), nil +} +// GetAsStorageLocationsGetResponse returns a list of storage locations. You can filter this list to determine which locations are enabled for a specified service. +// returns a V1beta1StorageLocationsGetResponseable when successful +// returns a V1beta1StorageLocations400Error error when the service returns a 400 status code +// returns a V1beta1StorageLocations401Error error when the service returns a 401 status code +// returns a V1beta1StorageLocations403Error error when the service returns a 403 status code +// returns a V1beta1StorageLocations500Error error when the service returns a 500 status code +// returns a V1beta1StorageLocations503Error error when the service returns a 503 status code +func (m *V1beta1StorageLocationsRequestBuilder) GetAsStorageLocationsGetResponse(ctx context.Context, requestConfiguration *V1beta1StorageLocationsRequestBuilderGetRequestConfiguration)(V1beta1StorageLocationsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1StorageLocations400ErrorFromDiscriminatorValue, + "401": CreateV1beta1StorageLocations401ErrorFromDiscriminatorValue, + "403": CreateV1beta1StorageLocations403ErrorFromDiscriminatorValue, + "500": CreateV1beta1StorageLocations500ErrorFromDiscriminatorValue, + "503": CreateV1beta1StorageLocations503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1StorageLocationsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1StorageLocationsGetResponseable), nil +} +// ToGetRequestInformation returns a list of storage locations. You can filter this list to determine which locations are enabled for a specified service. +// returns a *RequestInformation when successful +func (m *V1beta1StorageLocationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1StorageLocationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1StorageLocationsRequestBuilder when successful +func (m *V1beta1StorageLocationsRequestBuilder) WithUrl(rawUrl string)(*V1beta1StorageLocationsRequestBuilder) { + return NewV1beta1StorageLocationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_response.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_response.go new file mode 100644 index 0000000..14209bb --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1StorageLocationsGetResponseable instead. +type V1beta1StorageLocationsResponse struct { + V1beta1StorageLocationsGetResponse +} +// NewV1beta1StorageLocationsResponse instantiates a new V1beta1StorageLocationsResponse and sets the default values. +func NewV1beta1StorageLocationsResponse()(*V1beta1StorageLocationsResponse) { + m := &V1beta1StorageLocationsResponse{ + V1beta1StorageLocationsGetResponse: *NewV1beta1StorageLocationsGetResponse(), + } + return m +} +// CreateV1beta1StorageLocationsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1StorageLocationsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1StorageLocationsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1StorageLocationsGetResponseable instead. +type V1beta1StorageLocationsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1StorageLocationsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_storage_locations_item_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_storage_locations_item_request_builder.go new file mode 100644 index 0000000..efe9cbe --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_storage_locations_storage_locations_item_request_builder.go @@ -0,0 +1,108 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1StorageLocationsStorageLocationsItemRequestBuilder builds and executes requests for operations under \data-services\v1beta1\storage-locations\{id} +type V1beta1StorageLocationsStorageLocationsItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1StorageLocationsStorageLocationsItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1StorageLocationsStorageLocationsItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1StorageLocationsStorageLocationsItemRequestBuilderInternal instantiates a new V1beta1StorageLocationsStorageLocationsItemRequestBuilder and sets the default values. +func NewV1beta1StorageLocationsStorageLocationsItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1StorageLocationsStorageLocationsItemRequestBuilder) { + m := &V1beta1StorageLocationsStorageLocationsItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/storage-locations/{id}", pathParameters), + } + return m +} +// NewV1beta1StorageLocationsStorageLocationsItemRequestBuilder instantiates a new V1beta1StorageLocationsStorageLocationsItemRequestBuilder and sets the default values. +func NewV1beta1StorageLocationsStorageLocationsItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1StorageLocationsStorageLocationsItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1StorageLocationsStorageLocationsItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns details of the storage location that corresponds to the provided ID. +// Deprecated: This method is obsolete. Use GetAsStorageLocationsGetResponse instead. +// returns a V1beta1StorageLocationsItemStorageLocationsResponseable when successful +// returns a V1beta1StorageLocationsItemStorageLocations400Error error when the service returns a 400 status code +// returns a V1beta1StorageLocationsItemStorageLocations401Error error when the service returns a 401 status code +// returns a V1beta1StorageLocationsItemStorageLocations403Error error when the service returns a 403 status code +// returns a V1beta1StorageLocationsItemStorageLocations404Error error when the service returns a 404 status code +// returns a V1beta1StorageLocationsItemStorageLocations500Error error when the service returns a 500 status code +// returns a V1beta1StorageLocationsItemStorageLocations503Error error when the service returns a 503 status code +func (m *V1beta1StorageLocationsStorageLocationsItemRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1StorageLocationsStorageLocationsItemRequestBuilderGetRequestConfiguration)(V1beta1StorageLocationsItemStorageLocationsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1StorageLocationsItemStorageLocations400ErrorFromDiscriminatorValue, + "401": CreateV1beta1StorageLocationsItemStorageLocations401ErrorFromDiscriminatorValue, + "403": CreateV1beta1StorageLocationsItemStorageLocations403ErrorFromDiscriminatorValue, + "404": CreateV1beta1StorageLocationsItemStorageLocations404ErrorFromDiscriminatorValue, + "500": CreateV1beta1StorageLocationsItemStorageLocations500ErrorFromDiscriminatorValue, + "503": CreateV1beta1StorageLocationsItemStorageLocations503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1StorageLocationsItemStorageLocationsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1StorageLocationsItemStorageLocationsResponseable), nil +} +// GetAsStorageLocationsGetResponse returns details of the storage location that corresponds to the provided ID. +// returns a V1beta1StorageLocationsItemStorageLocationsGetResponseable when successful +// returns a V1beta1StorageLocationsItemStorageLocations400Error error when the service returns a 400 status code +// returns a V1beta1StorageLocationsItemStorageLocations401Error error when the service returns a 401 status code +// returns a V1beta1StorageLocationsItemStorageLocations403Error error when the service returns a 403 status code +// returns a V1beta1StorageLocationsItemStorageLocations404Error error when the service returns a 404 status code +// returns a V1beta1StorageLocationsItemStorageLocations500Error error when the service returns a 500 status code +// returns a V1beta1StorageLocationsItemStorageLocations503Error error when the service returns a 503 status code +func (m *V1beta1StorageLocationsStorageLocationsItemRequestBuilder) GetAsStorageLocationsGetResponse(ctx context.Context, requestConfiguration *V1beta1StorageLocationsStorageLocationsItemRequestBuilderGetRequestConfiguration)(V1beta1StorageLocationsItemStorageLocationsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1StorageLocationsItemStorageLocations400ErrorFromDiscriminatorValue, + "401": CreateV1beta1StorageLocationsItemStorageLocations401ErrorFromDiscriminatorValue, + "403": CreateV1beta1StorageLocationsItemStorageLocations403ErrorFromDiscriminatorValue, + "404": CreateV1beta1StorageLocationsItemStorageLocations404ErrorFromDiscriminatorValue, + "500": CreateV1beta1StorageLocationsItemStorageLocations500ErrorFromDiscriminatorValue, + "503": CreateV1beta1StorageLocationsItemStorageLocations503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1StorageLocationsItemStorageLocationsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1StorageLocationsItemStorageLocationsGetResponseable), nil +} +// ToGetRequestInformation returns details of the storage location that corresponds to the provided ID. +// returns a *RequestInformation when successful +func (m *V1beta1StorageLocationsStorageLocationsItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1StorageLocationsStorageLocationsItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1StorageLocationsStorageLocationsItemRequestBuilder when successful +func (m *V1beta1StorageLocationsStorageLocationsItemRequestBuilder) WithUrl(rawUrl string)(*V1beta1StorageLocationsStorageLocationsItemRequestBuilder) { + return NewV1beta1StorageLocationsStorageLocationsItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_tags400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_tags400_error.go new file mode 100644 index 0000000..333e63c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_tags400_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Tags400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_BAD_REQUEST` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Tags400Error instantiates a new V1beta1Tags400Error and sets the default values. +func NewV1beta1Tags400Error()(*V1beta1Tags400Error) { + m := &V1beta1Tags400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Tags400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Tags400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Tags400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Tags400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Tags400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_BAD_REQUEST` +// returns a UntypedNodeable when successful +func (m *V1beta1Tags400Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Tags400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Tags400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Tags400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_BAD_REQUEST` +func (m *V1beta1Tags400Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Tags400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_tags401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_tags401_error.go new file mode 100644 index 0000000..09d3b63 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_tags401_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Tags401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_UNAUTHORIZED` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Tags401Error instantiates a new V1beta1Tags401Error and sets the default values. +func NewV1beta1Tags401Error()(*V1beta1Tags401Error) { + m := &V1beta1Tags401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Tags401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Tags401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Tags401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Tags401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Tags401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_UNAUTHORIZED` +// returns a UntypedNodeable when successful +func (m *V1beta1Tags401Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Tags401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Tags401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Tags401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_UNAUTHORIZED` +func (m *V1beta1Tags401Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Tags401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_tags403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_tags403_error.go new file mode 100644 index 0000000..a04ffd6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_tags403_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Tags403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_FORBIDDEN` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Tags403Error instantiates a new V1beta1Tags403Error and sets the default values. +func NewV1beta1Tags403Error()(*V1beta1Tags403Error) { + m := &V1beta1Tags403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Tags403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Tags403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Tags403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Tags403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Tags403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_FORBIDDEN` +// returns a UntypedNodeable when successful +func (m *V1beta1Tags403Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Tags403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Tags403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Tags403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_FORBIDDEN` +func (m *V1beta1Tags403Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Tags403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_tags404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_tags404_error.go new file mode 100644 index 0000000..8eb88ad --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_tags404_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Tags404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_NOT_FOUND` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Tags404Error instantiates a new V1beta1Tags404Error and sets the default values. +func NewV1beta1Tags404Error()(*V1beta1Tags404Error) { + m := &V1beta1Tags404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Tags404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Tags404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Tags404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Tags404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Tags404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_NOT_FOUND` +// returns a UntypedNodeable when successful +func (m *V1beta1Tags404Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Tags404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Tags404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Tags404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_NOT_FOUND` +func (m *V1beta1Tags404Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Tags404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_tags500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_tags500_error.go new file mode 100644 index 0000000..c1c46d1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_tags500_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Tags500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_INTERNAL_SERVER_ERROR` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Tags500Error instantiates a new V1beta1Tags500Error and sets the default values. +func NewV1beta1Tags500Error()(*V1beta1Tags500Error) { + m := &V1beta1Tags500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Tags500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Tags500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Tags500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Tags500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Tags500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_INTERNAL_SERVER_ERROR` +// returns a UntypedNodeable when successful +func (m *V1beta1Tags500Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Tags500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Tags500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Tags500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_INTERNAL_SERVER_ERROR` +func (m *V1beta1Tags500Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Tags500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_tags503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_tags503_error.go new file mode 100644 index 0000000..2af66e4 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_tags503_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Tags503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Tags503Error instantiates a new V1beta1Tags503Error and sets the default values. +func NewV1beta1Tags503Error()(*V1beta1Tags503Error) { + m := &V1beta1Tags503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Tags503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Tags503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Tags503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Tags503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Tags503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` +// returns a UntypedNodeable when successful +func (m *V1beta1Tags503Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Tags503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Tags503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Tags503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. A machine-friendly identifier for the error response. The following error codes may bereturned:- `HPE_GL_ERROR_SERVICE_UNAVAILABLE` +func (m *V1beta1Tags503Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Tags503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_tags_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_tags_get_response.go new file mode 100644 index 0000000..4014f0a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_tags_get_response.go @@ -0,0 +1,92 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1TagsGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The tags returned by the query. + items []V1beta1TagsGetResponse_itemsable +} +// NewV1beta1TagsGetResponse instantiates a new V1beta1TagsGetResponse and sets the default values. +func NewV1beta1TagsGetResponse()(*V1beta1TagsGetResponse) { + m := &V1beta1TagsGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1TagsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1TagsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1TagsGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1TagsGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1TagsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1TagsGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1TagsGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1TagsGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + return res +} +// GetItems gets the items property value. The tags returned by the query. +// returns a []V1beta1TagsGetResponse_itemsable when successful +func (m *V1beta1TagsGetResponse) GetItems()([]V1beta1TagsGetResponse_itemsable) { + return m.items +} +// Serialize serializes information the current object +func (m *V1beta1TagsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1TagsGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetItems sets the items property value. The tags returned by the query. +func (m *V1beta1TagsGetResponse) SetItems(value []V1beta1TagsGetResponse_itemsable)() { + m.items = value +} +type V1beta1TagsGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetItems()([]V1beta1TagsGetResponse_itemsable) + SetItems(value []V1beta1TagsGetResponse_itemsable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_tags_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_tags_get_response_escaped_items.go new file mode 100644 index 0000000..47a3d41 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_tags_get_response_escaped_items.go @@ -0,0 +1,186 @@ +package dataservices + +import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1TagsGetResponse_items tag properties. +type V1beta1TagsGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Primary identifier for the customer associated with the tag. + customerId *string + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The tag key. + key *string + // The type of resource. + typeEscaped *string + // The tag value. + value *string +} +// NewV1beta1TagsGetResponse_items instantiates a new V1beta1TagsGetResponse_items and sets the default values. +func NewV1beta1TagsGetResponse_items()(*V1beta1TagsGetResponse_items) { + m := &V1beta1TagsGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1TagsGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1TagsGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1TagsGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1TagsGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCustomerId gets the customerId property value. Primary identifier for the customer associated with the tag. +// returns a *string when successful +func (m *V1beta1TagsGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1TagsGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["key"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetKey(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1TagsGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetKey gets the key property value. The tag key. +// returns a *string when successful +func (m *V1beta1TagsGetResponse_items) GetKey()(*string) { + return m.key +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1TagsGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetValue gets the value property value. The tag value. +// returns a *string when successful +func (m *V1beta1TagsGetResponse_items) GetValue()(*string) { + return m.value +} +// Serialize serializes information the current object +func (m *V1beta1TagsGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("customerId", m.GetCustomerId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("key", m.GetKey()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("value", m.GetValue()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1TagsGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCustomerId sets the customerId property value. Primary identifier for the customer associated with the tag. +func (m *V1beta1TagsGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1TagsGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetKey sets the key property value. The tag key. +func (m *V1beta1TagsGetResponse_items) SetKey(value *string)() { + m.key = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1TagsGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetValue sets the value property value. The tag value. +func (m *V1beta1TagsGetResponse_items) SetValue(value *string)() { + m.value = value +} +type V1beta1TagsGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCustomerId()(*string) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetKey()(*string) + GetTypeEscaped()(*string) + GetValue()(*string) + SetCustomerId(value *string)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetKey(value *string)() + SetTypeEscaped(value *string)() + SetValue(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_tags_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_tags_request_builder.go new file mode 100644 index 0000000..00f2b9c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_tags_request_builder.go @@ -0,0 +1,130 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i0b277d2fa239a4fb0c3da10b998ec83f8fc587245ff4515a79a866345755eb44 "github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices/dataservices/v1beta1/tags" +) + +// V1beta1TagsRequestBuilder builds and executes requests for operations under \data-services\v1beta1\tags +type V1beta1TagsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1TagsRequestBuilderGetQueryParameters returns a list of all tags when no `select` query parameter is provided. When a `select` query parameter is provided, then key or value of the tags are returned. +type V1beta1TagsRequestBuilderGetQueryParameters struct { + // The set of tags returned in the response.The supported comparisons are: - “eq” : Valid for number, boolean and string properties. - “ne” : Valid for number, boolean and string properties. - "contains"Syntax: - “eq” : filter=\ eq \ - “ne” : filter=\ ne \ - "startswith" : filter=startswith(key, 'Houston') - "startswith" : filter=startswith(value, 'Houston')You can use "and" to filter on multiple fields "filter=\ eq \ and \ ne \"Examples: GET /data-services/v1beta1/tags?filter=key eq Houston GET /data-services/v1beta1/tags?filter=startswith(key, Houston) and value eq VolumeFilters are supported on following attributes: - key - value + Filter *string `uriparametername:"filter"` + // The number of results to return. + Limit *int32 `uriparametername:"limit"` + // The number of results to skip. This is used for paging results. + Offset *int32 `uriparametername:"offset"` + // A list of properties to include in the response. Service currentlyonly supports specification of all fields. + Select *string `uriparametername:"select"` + // A comma separated list of properties to sort by, followed by a direction indicator ("asc" or "desc"). Default order is ascending. Service only supports sorting by 1 property per request. Supported fields include:- key- value - If specified, a secondary sort by "key asc" is included to guarantee consistent paging behavior. + // Deprecated: This property is deprecated, use SortAsGetSortQueryParameterType instead + Sort *string `uriparametername:"sort"` + // A comma separated list of properties to sort by, followed by a direction indicator ("asc" or "desc"). Default order is ascending. Service only supports sorting by 1 property per request. Supported fields include:- key- value - If specified, a secondary sort by "key asc" is included to guarantee consistent paging behavior. + SortAsGetSortQueryParameterType *i0b277d2fa239a4fb0c3da10b998ec83f8fc587245ff4515a79a866345755eb44.GetSortQueryParameterType `uriparametername:"sort"` +} +// V1beta1TagsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1TagsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1TagsRequestBuilderGetQueryParameters +} +// NewV1beta1TagsRequestBuilderInternal instantiates a new V1beta1TagsRequestBuilder and sets the default values. +func NewV1beta1TagsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1TagsRequestBuilder) { + m := &V1beta1TagsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/tags{?filter*,limit*,offset*,select*,sort*}", pathParameters), + } + return m +} +// NewV1beta1TagsRequestBuilder instantiates a new V1beta1TagsRequestBuilder and sets the default values. +func NewV1beta1TagsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1TagsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1TagsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns a list of all tags when no `select` query parameter is provided. When a `select` query parameter is provided, then key or value of the tags are returned. +// Deprecated: This method is obsolete. Use GetAsTagsGetResponse instead. +// returns a V1beta1TagsResponseable when successful +// returns a V1beta1Tags400Error error when the service returns a 400 status code +// returns a V1beta1Tags401Error error when the service returns a 401 status code +// returns a V1beta1Tags403Error error when the service returns a 403 status code +// returns a V1beta1Tags404Error error when the service returns a 404 status code +// returns a V1beta1Tags500Error error when the service returns a 500 status code +// returns a V1beta1Tags503Error error when the service returns a 503 status code +func (m *V1beta1TagsRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1TagsRequestBuilderGetRequestConfiguration)(V1beta1TagsResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Tags400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Tags401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Tags403ErrorFromDiscriminatorValue, + "404": CreateV1beta1Tags404ErrorFromDiscriminatorValue, + "500": CreateV1beta1Tags500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Tags503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1TagsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1TagsResponseable), nil +} +// GetAsTagsGetResponse returns a list of all tags when no `select` query parameter is provided. When a `select` query parameter is provided, then key or value of the tags are returned. +// returns a V1beta1TagsGetResponseable when successful +// returns a V1beta1Tags400Error error when the service returns a 400 status code +// returns a V1beta1Tags401Error error when the service returns a 401 status code +// returns a V1beta1Tags403Error error when the service returns a 403 status code +// returns a V1beta1Tags404Error error when the service returns a 404 status code +// returns a V1beta1Tags500Error error when the service returns a 500 status code +// returns a V1beta1Tags503Error error when the service returns a 503 status code +func (m *V1beta1TagsRequestBuilder) GetAsTagsGetResponse(ctx context.Context, requestConfiguration *V1beta1TagsRequestBuilderGetRequestConfiguration)(V1beta1TagsGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Tags400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Tags401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Tags403ErrorFromDiscriminatorValue, + "404": CreateV1beta1Tags404ErrorFromDiscriminatorValue, + "500": CreateV1beta1Tags500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Tags503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1TagsGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1TagsGetResponseable), nil +} +// ToGetRequestInformation returns a list of all tags when no `select` query parameter is provided. When a `select` query parameter is provided, then key or value of the tags are returned. +// returns a *RequestInformation when successful +func (m *V1beta1TagsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1TagsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1TagsRequestBuilder when successful +func (m *V1beta1TagsRequestBuilder) WithUrl(rawUrl string)(*V1beta1TagsRequestBuilder) { + return NewV1beta1TagsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_tags_response.go b/internal/sdk/dataservices/dataservices/v1beta1_tags_response.go new file mode 100644 index 0000000..95838a4 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_tags_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1TagsGetResponseable instead. +type V1beta1TagsResponse struct { + V1beta1TagsGetResponse +} +// NewV1beta1TagsResponse instantiates a new V1beta1TagsResponse and sets the default values. +func NewV1beta1TagsResponse()(*V1beta1TagsResponse) { + m := &V1beta1TagsResponse{ + V1beta1TagsGetResponse: *NewV1beta1TagsGetResponse(), + } + return m +} +// CreateV1beta1TagsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1TagsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1TagsResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1TagsGetResponseable instead. +type V1beta1TagsResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1TagsGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks400_error.go new file mode 100644 index 0000000..a0137ef --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks400_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Webhooks400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: BAD_REQUEST, INVALID_PARAMETER + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Webhooks400Error instantiates a new V1beta1Webhooks400Error and sets the default values. +func NewV1beta1Webhooks400Error()(*V1beta1Webhooks400Error) { + m := &V1beta1Webhooks400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Webhooks400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Webhooks400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Webhooks400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Webhooks400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Webhooks400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: BAD_REQUEST, INVALID_PARAMETER +// returns a UntypedNodeable when successful +func (m *V1beta1Webhooks400Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Webhooks400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Webhooks400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Webhooks400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: BAD_REQUEST, INVALID_PARAMETER +func (m *V1beta1Webhooks400Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Webhooks400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks401_error.go new file mode 100644 index 0000000..317a1ee --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks401_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Webhooks401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: UNAUTHENTICATED + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Webhooks401Error instantiates a new V1beta1Webhooks401Error and sets the default values. +func NewV1beta1Webhooks401Error()(*V1beta1Webhooks401Error) { + m := &V1beta1Webhooks401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Webhooks401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Webhooks401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Webhooks401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Webhooks401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Webhooks401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: UNAUTHENTICATED +// returns a UntypedNodeable when successful +func (m *V1beta1Webhooks401Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Webhooks401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Webhooks401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Webhooks401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: UNAUTHENTICATED +func (m *V1beta1Webhooks401Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Webhooks401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks403_error.go new file mode 100644 index 0000000..e4ee2a6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks403_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Webhooks403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: FORBIDDEN + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Webhooks403Error instantiates a new V1beta1Webhooks403Error and sets the default values. +func NewV1beta1Webhooks403Error()(*V1beta1Webhooks403Error) { + m := &V1beta1Webhooks403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Webhooks403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Webhooks403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Webhooks403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Webhooks403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Webhooks403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: FORBIDDEN +// returns a UntypedNodeable when successful +func (m *V1beta1Webhooks403Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Webhooks403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Webhooks403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Webhooks403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: FORBIDDEN +func (m *V1beta1Webhooks403Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Webhooks403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks500_error.go new file mode 100644 index 0000000..4a8142c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks500_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Webhooks500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: INTERNAL_ERROR + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Webhooks500Error instantiates a new V1beta1Webhooks500Error and sets the default values. +func NewV1beta1Webhooks500Error()(*V1beta1Webhooks500Error) { + m := &V1beta1Webhooks500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Webhooks500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Webhooks500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Webhooks500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Webhooks500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Webhooks500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: INTERNAL_ERROR +// returns a UntypedNodeable when successful +func (m *V1beta1Webhooks500Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Webhooks500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Webhooks500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Webhooks500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: INTERNAL_ERROR +func (m *V1beta1Webhooks500Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Webhooks500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks503_error.go new file mode 100644 index 0000000..ba7d0af --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks503_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1Webhooks503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: SERVICE_UNAVAILABLE + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1Webhooks503Error instantiates a new V1beta1Webhooks503Error and sets the default values. +func NewV1beta1Webhooks503Error()(*V1beta1Webhooks503Error) { + m := &V1beta1Webhooks503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1Webhooks503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1Webhooks503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1Webhooks503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1Webhooks503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1Webhooks503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: SERVICE_UNAVAILABLE +// returns a UntypedNodeable when successful +func (m *V1beta1Webhooks503Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1Webhooks503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1Webhooks503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1Webhooks503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: SERVICE_UNAVAILABLE +func (m *V1beta1Webhooks503Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1Webhooks503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response.go new file mode 100644 index 0000000..d0d7e6e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response.go @@ -0,0 +1,180 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksGetResponse a list of webhooks +type V1beta1WebhooksGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Number of items in this response. + count *int32 + // Array of webhook resources + items []V1beta1WebhooksGetResponse_itemsable + // The offset query parameter from the request. + offset *int32 + // Total number of items matching the filter parameter in the request. + total *int32 +} +// NewV1beta1WebhooksGetResponse instantiates a new V1beta1WebhooksGetResponse and sets the default values. +func NewV1beta1WebhooksGetResponse()(*V1beta1WebhooksGetResponse) { + m := &V1beta1WebhooksGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Number of items in this response. +// returns a *int32 when successful +func (m *V1beta1WebhooksGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetItems gets the items property value. Array of webhook resources +// returns a []V1beta1WebhooksGetResponse_itemsable when successful +func (m *V1beta1WebhooksGetResponse) GetItems()([]V1beta1WebhooksGetResponse_itemsable) { + return m.items +} +// GetOffset gets the offset property value. The offset query parameter from the request. +// returns a *int32 when successful +func (m *V1beta1WebhooksGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetTotal gets the total property value. Total number of items matching the filter parameter in the request. +// returns a *int32 when successful +func (m *V1beta1WebhooksGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Number of items in this response. +func (m *V1beta1WebhooksGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. Array of webhook resources +func (m *V1beta1WebhooksGetResponse) SetItems(value []V1beta1WebhooksGetResponse_itemsable)() { + m.items = value +} +// SetOffset sets the offset property value. The offset query parameter from the request. +func (m *V1beta1WebhooksGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetTotal sets the total property value. Total number of items matching the filter parameter in the request. +func (m *V1beta1WebhooksGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1WebhooksGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1WebhooksGetResponse_itemsable) + GetOffset()(*int32) + GetTotal()(*int32) + SetCount(value *int32)() + SetItems(value []V1beta1WebhooksGetResponse_itemsable)() + SetOffset(value *int32)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items.go new file mode 100644 index 0000000..58f4290 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items.go @@ -0,0 +1,454 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksGetResponse_items a Webhook resource +type V1beta1WebhooksGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // An object containing an identity that is used to authorize published events + authorization V1beta1WebhooksGetResponse_items_authorizationable + // URI that opens the webhook in the UI console + consoleUri *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // List of event destinations + destinations []V1beta1WebhooksGetResponse_items_destinationsable + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // List of group associations + groups []V1beta1WebhooksGetResponse_items_groupsable + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The date & timestamp than an event was last delivered to the destination.The value is null if an event has never been delivered. + lastEventDeliveredAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // A system specified name for the resource. + name *string + // The self reference for this resource. + resourceUri *string + // List of subscriptions that identify the events that are subscribed toand will be published to the Webhook destination. + subscriptions []V1beta1WebhooksGetResponse_items_subscriptionsable + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1WebhooksGetResponse_items instantiates a new V1beta1WebhooksGetResponse_items and sets the default values. +func NewV1beta1WebhooksGetResponse_items()(*V1beta1WebhooksGetResponse_items) { + m := &V1beta1WebhooksGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAuthorization gets the authorization property value. An object containing an identity that is used to authorize published events +// returns a V1beta1WebhooksGetResponse_items_authorizationable when successful +func (m *V1beta1WebhooksGetResponse_items) GetAuthorization()(V1beta1WebhooksGetResponse_items_authorizationable) { + return m.authorization +} +// GetConsoleUri gets the consoleUri property value. URI that opens the webhook in the UI console +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1WebhooksGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetDestinations gets the destinations property value. List of event destinations +// returns a []V1beta1WebhooksGetResponse_items_destinationsable when successful +func (m *V1beta1WebhooksGetResponse_items) GetDestinations()([]V1beta1WebhooksGetResponse_items_destinationsable) { + return m.destinations +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["authorization"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksGetResponse_items_authorizationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAuthorization(val.(V1beta1WebhooksGetResponse_items_authorizationable)) + } + return nil + } + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["destinations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksGetResponse_items_destinationsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksGetResponse_items_destinationsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksGetResponse_items_destinationsable) + } + } + m.SetDestinations(res) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksGetResponse_items_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksGetResponse_items_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksGetResponse_items_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["lastEventDeliveredAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastEventDeliveredAt(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["subscriptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksGetResponse_items_subscriptionsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksGetResponse_items_subscriptionsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksGetResponse_items_subscriptionsable) + } + } + m.SetSubscriptions(res) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1WebhooksGetResponse_items) GetGeneration()(*int64) { + return m.generation +} +// GetGroups gets the groups property value. List of group associations +// returns a []V1beta1WebhooksGetResponse_items_groupsable when successful +func (m *V1beta1WebhooksGetResponse_items) GetGroups()([]V1beta1WebhooksGetResponse_items_groupsable) { + return m.groups +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1WebhooksGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetLastEventDeliveredAt gets the lastEventDeliveredAt property value. The date & timestamp than an event was last delivered to the destination.The value is null if an event has never been delivered. +// returns a *Time when successful +func (m *V1beta1WebhooksGetResponse_items) GetLastEventDeliveredAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.lastEventDeliveredAt +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSubscriptions gets the subscriptions property value. List of subscriptions that identify the events that are subscribed toand will be published to the Webhook destination. +// returns a []V1beta1WebhooksGetResponse_items_subscriptionsable when successful +func (m *V1beta1WebhooksGetResponse_items) GetSubscriptions()([]V1beta1WebhooksGetResponse_items_subscriptionsable) { + return m.subscriptions +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1WebhooksGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("authorization", m.GetAuthorization()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + if m.GetDestinations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDestinations())) + for i, v := range m.GetDestinations() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("destinations", cast) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + if m.GetSubscriptions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSubscriptions())) + for i, v := range m.GetSubscriptions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("subscriptions", cast) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAuthorization sets the authorization property value. An object containing an identity that is used to authorize published events +func (m *V1beta1WebhooksGetResponse_items) SetAuthorization(value V1beta1WebhooksGetResponse_items_authorizationable)() { + m.authorization = value +} +// SetConsoleUri sets the consoleUri property value. URI that opens the webhook in the UI console +func (m *V1beta1WebhooksGetResponse_items) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1WebhooksGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1WebhooksGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDestinations sets the destinations property value. List of event destinations +func (m *V1beta1WebhooksGetResponse_items) SetDestinations(value []V1beta1WebhooksGetResponse_items_destinationsable)() { + m.destinations = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1WebhooksGetResponse_items) SetGeneration(value *int64)() { + m.generation = value +} +// SetGroups sets the groups property value. List of group associations +func (m *V1beta1WebhooksGetResponse_items) SetGroups(value []V1beta1WebhooksGetResponse_items_groupsable)() { + m.groups = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1WebhooksGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetLastEventDeliveredAt sets the lastEventDeliveredAt property value. The date & timestamp than an event was last delivered to the destination.The value is null if an event has never been delivered. +func (m *V1beta1WebhooksGetResponse_items) SetLastEventDeliveredAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.lastEventDeliveredAt = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1WebhooksGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1WebhooksGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSubscriptions sets the subscriptions property value. List of subscriptions that identify the events that are subscribed toand will be published to the Webhook destination. +func (m *V1beta1WebhooksGetResponse_items) SetSubscriptions(value []V1beta1WebhooksGetResponse_items_subscriptionsable)() { + m.subscriptions = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1WebhooksGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1WebhooksGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1WebhooksGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAuthorization()(V1beta1WebhooksGetResponse_items_authorizationable) + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDestinations()([]V1beta1WebhooksGetResponse_items_destinationsable) + GetGeneration()(*int64) + GetGroups()([]V1beta1WebhooksGetResponse_items_groupsable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLastEventDeliveredAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetName()(*string) + GetResourceUri()(*string) + GetSubscriptions()([]V1beta1WebhooksGetResponse_items_subscriptionsable) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetAuthorization(value V1beta1WebhooksGetResponse_items_authorizationable)() + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDestinations(value []V1beta1WebhooksGetResponse_items_destinationsable)() + SetGeneration(value *int64)() + SetGroups(value []V1beta1WebhooksGetResponse_items_groupsable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLastEventDeliveredAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetName(value *string)() + SetResourceUri(value *string)() + SetSubscriptions(value []V1beta1WebhooksGetResponse_items_subscriptionsable)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_authorization.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_authorization.go new file mode 100644 index 0000000..49c58ae --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_authorization.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksGetResponse_items_authorization an object containing an identity that is used to authorize published events +type V1beta1WebhooksGetResponse_items_authorization struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The clientCredentials property + clientCredentials V1beta1WebhooksGetResponse_items_authorization_clientCredentialsable +} +// NewV1beta1WebhooksGetResponse_items_authorization instantiates a new V1beta1WebhooksGetResponse_items_authorization and sets the default values. +func NewV1beta1WebhooksGetResponse_items_authorization()(*V1beta1WebhooksGetResponse_items_authorization) { + m := &V1beta1WebhooksGetResponse_items_authorization{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksGetResponse_items_authorizationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksGetResponse_items_authorizationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksGetResponse_items_authorization(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksGetResponse_items_authorization) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetClientCredentials gets the clientCredentials property value. The clientCredentials property +// returns a V1beta1WebhooksGetResponse_items_authorization_clientCredentialsable when successful +func (m *V1beta1WebhooksGetResponse_items_authorization) GetClientCredentials()(V1beta1WebhooksGetResponse_items_authorization_clientCredentialsable) { + return m.clientCredentials +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksGetResponse_items_authorization) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientCredentials"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksGetResponse_items_authorization_clientCredentialsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetClientCredentials(val.(V1beta1WebhooksGetResponse_items_authorization_clientCredentialsable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksGetResponse_items_authorization) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("clientCredentials", m.GetClientCredentials()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksGetResponse_items_authorization) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetClientCredentials sets the clientCredentials property value. The clientCredentials property +func (m *V1beta1WebhooksGetResponse_items_authorization) SetClientCredentials(value V1beta1WebhooksGetResponse_items_authorization_clientCredentialsable)() { + m.clientCredentials = value +} +type V1beta1WebhooksGetResponse_items_authorizationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetClientCredentials()(V1beta1WebhooksGetResponse_items_authorization_clientCredentialsable) + SetClientCredentials(value V1beta1WebhooksGetResponse_items_authorization_clientCredentialsable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_authorization_escaped_client_credentials.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_authorization_escaped_client_credentials.go new file mode 100644 index 0000000..20e4cc8 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_authorization_escaped_client_credentials.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksGetResponse_items_authorization_clientCredentials struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Reference to a Secret resource + secret V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secretable +} +// NewV1beta1WebhooksGetResponse_items_authorization_clientCredentials instantiates a new V1beta1WebhooksGetResponse_items_authorization_clientCredentials and sets the default values. +func NewV1beta1WebhooksGetResponse_items_authorization_clientCredentials()(*V1beta1WebhooksGetResponse_items_authorization_clientCredentials) { + m := &V1beta1WebhooksGetResponse_items_authorization_clientCredentials{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksGetResponse_items_authorization_clientCredentialsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksGetResponse_items_authorization_clientCredentialsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksGetResponse_items_authorization_clientCredentials(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksGetResponse_items_authorization_clientCredentials_secretFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecret(val.(V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secretable)) + } + return nil + } + return res +} +// GetSecret gets the secret property value. Reference to a Secret resource +// returns a V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secretable when successful +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials) GetSecret()(V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secretable) { + return m.secret +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetSecret sets the secret property value. Reference to a Secret resource +func (m *V1beta1WebhooksGetResponse_items_authorization_clientCredentials) SetSecret(value V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secretable)() { + m.secret = value +} +type V1beta1WebhooksGetResponse_items_authorization_clientCredentialsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSecret()(V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secretable) + SetSecret(value V1beta1WebhooksGetResponse_items_authorization_clientCredentials_secretable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_destinations.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_destinations.go new file mode 100644 index 0000000..a377dc0 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_destinations.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksGetResponse_items_destinations an object containing the publishing destination attributes +type V1beta1WebhooksGetResponse_items_destinations struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The cloudEventEndpoint property + cloudEventEndpoint V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpointable +} +// NewV1beta1WebhooksGetResponse_items_destinations instantiates a new V1beta1WebhooksGetResponse_items_destinations and sets the default values. +func NewV1beta1WebhooksGetResponse_items_destinations()(*V1beta1WebhooksGetResponse_items_destinations) { + m := &V1beta1WebhooksGetResponse_items_destinations{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksGetResponse_items_destinationsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksGetResponse_items_destinationsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksGetResponse_items_destinations(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksGetResponse_items_destinations) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCloudEventEndpoint gets the cloudEventEndpoint property value. The cloudEventEndpoint property +// returns a V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpointable when successful +func (m *V1beta1WebhooksGetResponse_items_destinations) GetCloudEventEndpoint()(V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpointable) { + return m.cloudEventEndpoint +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksGetResponse_items_destinations) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["cloudEventEndpoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpointFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCloudEventEndpoint(val.(V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpointable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksGetResponse_items_destinations) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("cloudEventEndpoint", m.GetCloudEventEndpoint()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksGetResponse_items_destinations) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCloudEventEndpoint sets the cloudEventEndpoint property value. The cloudEventEndpoint property +func (m *V1beta1WebhooksGetResponse_items_destinations) SetCloudEventEndpoint(value V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpointable)() { + m.cloudEventEndpoint = value +} +type V1beta1WebhooksGetResponse_items_destinationsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCloudEventEndpoint()(V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpointable) + SetCloudEventEndpoint(value V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpointable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_destinations_escaped_cloud_event_endpoint.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_destinations_escaped_cloud_event_endpoint.go new file mode 100644 index 0000000..43dabc6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_destinations_escaped_cloud_event_endpoint.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // An object containing the endpoint authentication attributes + authentication V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authenticationable + // The webhook endpoint address + endpoint *string +} +// NewV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint instantiates a new V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint and sets the default values. +func NewV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint()(*V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint) { + m := &V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpointFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpointFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAuthentication gets the authentication property value. An object containing the endpoint authentication attributes +// returns a V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authenticationable when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint) GetAuthentication()(V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authenticationable) { + return m.authentication +} +// GetEndpoint gets the endpoint property value. The webhook endpoint address +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint) GetEndpoint()(*string) { + return m.endpoint +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["authentication"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authenticationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAuthentication(val.(V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authenticationable)) + } + return nil + } + res["endpoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEndpoint(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("authentication", m.GetAuthentication()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("endpoint", m.GetEndpoint()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAuthentication sets the authentication property value. An object containing the endpoint authentication attributes +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint) SetAuthentication(value V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authenticationable)() { + m.authentication = value +} +// SetEndpoint sets the endpoint property value. The webhook endpoint address +func (m *V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint) SetEndpoint(value *string)() { + m.endpoint = value +} +type V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpointable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAuthentication()(V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authenticationable) + GetEndpoint()(*string) + SetAuthentication(value V1beta1WebhooksGetResponse_items_destinations_cloudEventEndpoint_authenticationable)() + SetEndpoint(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_groups.go new file mode 100644 index 0000000..8c253d9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_groups.go @@ -0,0 +1,104 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksGetResponse_items_groups reference to a Group resource +type V1beta1WebhooksGetResponse_items_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The Group's unique identifier + id *string + // The Group's name + name *string +} +// NewV1beta1WebhooksGetResponse_items_groups instantiates a new V1beta1WebhooksGetResponse_items_groups and sets the default values. +func NewV1beta1WebhooksGetResponse_items_groups()(*V1beta1WebhooksGetResponse_items_groups) { + m := &V1beta1WebhooksGetResponse_items_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksGetResponse_items_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksGetResponse_items_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksGetResponse_items_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksGetResponse_items_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksGetResponse_items_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. The Group's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items_groups) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The Group's name +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksGetResponse_items_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksGetResponse_items_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The Group's unique identifier +func (m *V1beta1WebhooksGetResponse_items_groups) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The Group's name +func (m *V1beta1WebhooksGetResponse_items_groups) SetName(value *string)() { + m.name = value +} +type V1beta1WebhooksGetResponse_items_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + SetId(value *string)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_subscriptions.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_subscriptions.go new file mode 100644 index 0000000..15121d9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_subscriptions.go @@ -0,0 +1,122 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksGetResponse_items_subscriptions an event subscription specification +type V1beta1WebhooksGetResponse_items_subscriptions struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // List of groups that is used to filter events.Only events associated with these groups arepublished to the webhook endpoint. + groups []V1beta1WebhooksGetResponse_items_subscriptions_groupsable + // The resourceType property + resourceType V1beta1WebhooksGetResponse_items_subscriptions_resourceTypeable +} +// NewV1beta1WebhooksGetResponse_items_subscriptions instantiates a new V1beta1WebhooksGetResponse_items_subscriptions and sets the default values. +func NewV1beta1WebhooksGetResponse_items_subscriptions()(*V1beta1WebhooksGetResponse_items_subscriptions) { + m := &V1beta1WebhooksGetResponse_items_subscriptions{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksGetResponse_items_subscriptionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksGetResponse_items_subscriptionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksGetResponse_items_subscriptions(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksGetResponse_items_subscriptions) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksGetResponse_items_subscriptions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksGetResponse_items_subscriptions_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksGetResponse_items_subscriptions_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksGetResponse_items_subscriptions_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["resourceType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksGetResponse_items_subscriptions_resourceTypeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetResourceType(val.(V1beta1WebhooksGetResponse_items_subscriptions_resourceTypeable)) + } + return nil + } + return res +} +// GetGroups gets the groups property value. List of groups that is used to filter events.Only events associated with these groups arepublished to the webhook endpoint. +// returns a []V1beta1WebhooksGetResponse_items_subscriptions_groupsable when successful +func (m *V1beta1WebhooksGetResponse_items_subscriptions) GetGroups()([]V1beta1WebhooksGetResponse_items_subscriptions_groupsable) { + return m.groups +} +// GetResourceType gets the resourceType property value. The resourceType property +// returns a V1beta1WebhooksGetResponse_items_subscriptions_resourceTypeable when successful +func (m *V1beta1WebhooksGetResponse_items_subscriptions) GetResourceType()(V1beta1WebhooksGetResponse_items_subscriptions_resourceTypeable) { + return m.resourceType +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksGetResponse_items_subscriptions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("resourceType", m.GetResourceType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksGetResponse_items_subscriptions) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetGroups sets the groups property value. List of groups that is used to filter events.Only events associated with these groups arepublished to the webhook endpoint. +func (m *V1beta1WebhooksGetResponse_items_subscriptions) SetGroups(value []V1beta1WebhooksGetResponse_items_subscriptions_groupsable)() { + m.groups = value +} +// SetResourceType sets the resourceType property value. The resourceType property +func (m *V1beta1WebhooksGetResponse_items_subscriptions) SetResourceType(value V1beta1WebhooksGetResponse_items_subscriptions_resourceTypeable)() { + m.resourceType = value +} +type V1beta1WebhooksGetResponse_items_subscriptionsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetGroups()([]V1beta1WebhooksGetResponse_items_subscriptions_groupsable) + GetResourceType()(V1beta1WebhooksGetResponse_items_subscriptions_resourceTypeable) + SetGroups(value []V1beta1WebhooksGetResponse_items_subscriptions_groupsable)() + SetResourceType(value V1beta1WebhooksGetResponse_items_subscriptions_resourceTypeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_subscriptions_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_subscriptions_escaped_groups.go new file mode 100644 index 0000000..fe5e694 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_subscriptions_escaped_groups.go @@ -0,0 +1,104 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksGetResponse_items_subscriptions_groups reference to a Group resource +type V1beta1WebhooksGetResponse_items_subscriptions_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The Group's unique identifier + id *string + // The Group's name + name *string +} +// NewV1beta1WebhooksGetResponse_items_subscriptions_groups instantiates a new V1beta1WebhooksGetResponse_items_subscriptions_groups and sets the default values. +func NewV1beta1WebhooksGetResponse_items_subscriptions_groups()(*V1beta1WebhooksGetResponse_items_subscriptions_groups) { + m := &V1beta1WebhooksGetResponse_items_subscriptions_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksGetResponse_items_subscriptions_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksGetResponse_items_subscriptions_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksGetResponse_items_subscriptions_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksGetResponse_items_subscriptions_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksGetResponse_items_subscriptions_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. The Group's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items_subscriptions_groups) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The Group's name +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items_subscriptions_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksGetResponse_items_subscriptions_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksGetResponse_items_subscriptions_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The Group's unique identifier +func (m *V1beta1WebhooksGetResponse_items_subscriptions_groups) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The Group's name +func (m *V1beta1WebhooksGetResponse_items_subscriptions_groups) SetName(value *string)() { + m.name = value +} +type V1beta1WebhooksGetResponse_items_subscriptions_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + SetId(value *string)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_subscriptions_escaped_resource_type.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_subscriptions_escaped_resource_type.go new file mode 100644 index 0000000..4524ec5 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_get_response_escaped_items_escaped_subscriptions_escaped_resource_type.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksGetResponse_items_subscriptions_resourceType struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifies the resource type that is subscribed to + applicationResource *string + // Name of the resource type + name *string +} +// NewV1beta1WebhooksGetResponse_items_subscriptions_resourceType instantiates a new V1beta1WebhooksGetResponse_items_subscriptions_resourceType and sets the default values. +func NewV1beta1WebhooksGetResponse_items_subscriptions_resourceType()(*V1beta1WebhooksGetResponse_items_subscriptions_resourceType) { + m := &V1beta1WebhooksGetResponse_items_subscriptions_resourceType{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksGetResponse_items_subscriptions_resourceTypeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksGetResponse_items_subscriptions_resourceTypeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksGetResponse_items_subscriptions_resourceType(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksGetResponse_items_subscriptions_resourceType) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetApplicationResource gets the applicationResource property value. Identifies the resource type that is subscribed to +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items_subscriptions_resourceType) GetApplicationResource()(*string) { + return m.applicationResource +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksGetResponse_items_subscriptions_resourceType) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applicationResource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplicationResource(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource type +// returns a *string when successful +func (m *V1beta1WebhooksGetResponse_items_subscriptions_resourceType) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksGetResponse_items_subscriptions_resourceType) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applicationResource", m.GetApplicationResource()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksGetResponse_items_subscriptions_resourceType) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetApplicationResource sets the applicationResource property value. Identifies the resource type that is subscribed to +func (m *V1beta1WebhooksGetResponse_items_subscriptions_resourceType) SetApplicationResource(value *string)() { + m.applicationResource = value +} +// SetName sets the name property value. Name of the resource type +func (m *V1beta1WebhooksGetResponse_items_subscriptions_resourceType) SetName(value *string)() { + m.name = value +} +type V1beta1WebhooksGetResponse_items_subscriptions_resourceTypeable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplicationResource()(*string) + GetName()(*string) + SetApplicationResource(value *string)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks400_error.go new file mode 100644 index 0000000..53cb8ac --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks400_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksItemWebhooks400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: BAD_REQUEST, INVALID_PARAMETER + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksItemWebhooks400Error instantiates a new V1beta1WebhooksItemWebhooks400Error and sets the default values. +func NewV1beta1WebhooksItemWebhooks400Error()(*V1beta1WebhooksItemWebhooks400Error) { + m := &V1beta1WebhooksItemWebhooks400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooks400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooks400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooks400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksItemWebhooks400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooks400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: BAD_REQUEST, INVALID_PARAMETER +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksItemWebhooks400Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooks400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooks400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooks400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: BAD_REQUEST, INVALID_PARAMETER +func (m *V1beta1WebhooksItemWebhooks400Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksItemWebhooks400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks401_error.go new file mode 100644 index 0000000..affde51 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks401_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksItemWebhooks401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: UNAUTHENTICATED + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksItemWebhooks401Error instantiates a new V1beta1WebhooksItemWebhooks401Error and sets the default values. +func NewV1beta1WebhooksItemWebhooks401Error()(*V1beta1WebhooksItemWebhooks401Error) { + m := &V1beta1WebhooksItemWebhooks401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooks401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooks401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooks401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksItemWebhooks401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooks401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: UNAUTHENTICATED +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksItemWebhooks401Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooks401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooks401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooks401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: UNAUTHENTICATED +func (m *V1beta1WebhooksItemWebhooks401Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksItemWebhooks401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks403_error.go new file mode 100644 index 0000000..2f01d8b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks403_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksItemWebhooks403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: FORBIDDEN + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksItemWebhooks403Error instantiates a new V1beta1WebhooksItemWebhooks403Error and sets the default values. +func NewV1beta1WebhooksItemWebhooks403Error()(*V1beta1WebhooksItemWebhooks403Error) { + m := &V1beta1WebhooksItemWebhooks403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooks403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooks403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooks403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksItemWebhooks403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooks403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: FORBIDDEN +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksItemWebhooks403Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooks403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooks403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooks403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: FORBIDDEN +func (m *V1beta1WebhooksItemWebhooks403Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksItemWebhooks403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks404_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks404_error.go new file mode 100644 index 0000000..d9121d2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks404_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksItemWebhooks404Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: NOT_FOUND + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksItemWebhooks404Error instantiates a new V1beta1WebhooksItemWebhooks404Error and sets the default values. +func NewV1beta1WebhooksItemWebhooks404Error()(*V1beta1WebhooksItemWebhooks404Error) { + m := &V1beta1WebhooksItemWebhooks404Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooks404ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooks404ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooks404Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksItemWebhooks404Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooks404Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: NOT_FOUND +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksItemWebhooks404Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooks404Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooks404Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooks404Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: NOT_FOUND +func (m *V1beta1WebhooksItemWebhooks404Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksItemWebhooks404Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks500_error.go new file mode 100644 index 0000000..a4f202d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks500_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksItemWebhooks500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: INTERNAL_ERROR + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksItemWebhooks500Error instantiates a new V1beta1WebhooksItemWebhooks500Error and sets the default values. +func NewV1beta1WebhooksItemWebhooks500Error()(*V1beta1WebhooksItemWebhooks500Error) { + m := &V1beta1WebhooksItemWebhooks500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooks500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooks500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooks500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksItemWebhooks500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooks500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: INTERNAL_ERROR +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksItemWebhooks500Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooks500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooks500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooks500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: INTERNAL_ERROR +func (m *V1beta1WebhooksItemWebhooks500Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksItemWebhooks500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks503_error.go new file mode 100644 index 0000000..c8d138e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks503_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksItemWebhooks503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: SERVICE_UNAVAILABLE + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksItemWebhooks503Error instantiates a new V1beta1WebhooksItemWebhooks503Error and sets the default values. +func NewV1beta1WebhooksItemWebhooks503Error()(*V1beta1WebhooksItemWebhooks503Error) { + m := &V1beta1WebhooksItemWebhooks503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooks503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooks503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooks503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksItemWebhooks503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooks503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: SERVICE_UNAVAILABLE +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksItemWebhooks503Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooks503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooks503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooks503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: SERVICE_UNAVAILABLE +func (m *V1beta1WebhooksItemWebhooks503Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksItemWebhooks503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response.go new file mode 100644 index 0000000..1f6242e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response.go @@ -0,0 +1,454 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksGetResponse a Webhook resource +type V1beta1WebhooksItemWebhooksGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // An object containing an identity that is used to authorize published events + authorization V1beta1WebhooksItemWebhooksGetResponse_authorizationable + // URI that opens the webhook in the UI console + consoleUri *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // List of event destinations + destinations []V1beta1WebhooksItemWebhooksGetResponse_destinationsable + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // List of group associations + groups []V1beta1WebhooksItemWebhooksGetResponse_groupsable + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The date & timestamp than an event was last delivered to the destination.The value is null if an event has never been delivered. + lastEventDeliveredAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // A system specified name for the resource. + name *string + // The self reference for this resource. + resourceUri *string + // List of subscriptions that identify the events that are subscribed toand will be published to the Webhook destination. + subscriptions []V1beta1WebhooksItemWebhooksGetResponse_subscriptionsable + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1WebhooksItemWebhooksGetResponse instantiates a new V1beta1WebhooksItemWebhooksGetResponse and sets the default values. +func NewV1beta1WebhooksItemWebhooksGetResponse()(*V1beta1WebhooksItemWebhooksGetResponse) { + m := &V1beta1WebhooksItemWebhooksGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAuthorization gets the authorization property value. An object containing an identity that is used to authorize published events +// returns a V1beta1WebhooksItemWebhooksGetResponse_authorizationable when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetAuthorization()(V1beta1WebhooksItemWebhooksGetResponse_authorizationable) { + return m.authorization +} +// GetConsoleUri gets the consoleUri property value. URI that opens the webhook in the UI console +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDestinations gets the destinations property value. List of event destinations +// returns a []V1beta1WebhooksItemWebhooksGetResponse_destinationsable when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetDestinations()([]V1beta1WebhooksItemWebhooksGetResponse_destinationsable) { + return m.destinations +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["authorization"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksGetResponse_authorizationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAuthorization(val.(V1beta1WebhooksItemWebhooksGetResponse_authorizationable)) + } + return nil + } + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["destinations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksItemWebhooksGetResponse_destinationsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksItemWebhooksGetResponse_destinationsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksItemWebhooksGetResponse_destinationsable) + } + } + m.SetDestinations(res) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksItemWebhooksGetResponse_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksItemWebhooksGetResponse_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksItemWebhooksGetResponse_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["lastEventDeliveredAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastEventDeliveredAt(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["subscriptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksItemWebhooksGetResponse_subscriptionsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksItemWebhooksGetResponse_subscriptionsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksItemWebhooksGetResponse_subscriptionsable) + } + } + m.SetSubscriptions(res) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetGeneration()(*int64) { + return m.generation +} +// GetGroups gets the groups property value. List of group associations +// returns a []V1beta1WebhooksItemWebhooksGetResponse_groupsable when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetGroups()([]V1beta1WebhooksItemWebhooksGetResponse_groupsable) { + return m.groups +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetLastEventDeliveredAt gets the lastEventDeliveredAt property value. The date & timestamp than an event was last delivered to the destination.The value is null if an event has never been delivered. +// returns a *Time when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetLastEventDeliveredAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.lastEventDeliveredAt +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSubscriptions gets the subscriptions property value. List of subscriptions that identify the events that are subscribed toand will be published to the Webhook destination. +// returns a []V1beta1WebhooksItemWebhooksGetResponse_subscriptionsable when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetSubscriptions()([]V1beta1WebhooksItemWebhooksGetResponse_subscriptionsable) { + return m.subscriptions +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("authorization", m.GetAuthorization()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + if m.GetDestinations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDestinations())) + for i, v := range m.GetDestinations() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("destinations", cast) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + if m.GetSubscriptions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSubscriptions())) + for i, v := range m.GetSubscriptions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("subscriptions", cast) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAuthorization sets the authorization property value. An object containing an identity that is used to authorize published events +func (m *V1beta1WebhooksItemWebhooksGetResponse) SetAuthorization(value V1beta1WebhooksItemWebhooksGetResponse_authorizationable)() { + m.authorization = value +} +// SetConsoleUri sets the consoleUri property value. URI that opens the webhook in the UI console +func (m *V1beta1WebhooksItemWebhooksGetResponse) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1WebhooksItemWebhooksGetResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1WebhooksItemWebhooksGetResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDestinations sets the destinations property value. List of event destinations +func (m *V1beta1WebhooksItemWebhooksGetResponse) SetDestinations(value []V1beta1WebhooksItemWebhooksGetResponse_destinationsable)() { + m.destinations = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1WebhooksItemWebhooksGetResponse) SetGeneration(value *int64)() { + m.generation = value +} +// SetGroups sets the groups property value. List of group associations +func (m *V1beta1WebhooksItemWebhooksGetResponse) SetGroups(value []V1beta1WebhooksItemWebhooksGetResponse_groupsable)() { + m.groups = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1WebhooksItemWebhooksGetResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetLastEventDeliveredAt sets the lastEventDeliveredAt property value. The date & timestamp than an event was last delivered to the destination.The value is null if an event has never been delivered. +func (m *V1beta1WebhooksItemWebhooksGetResponse) SetLastEventDeliveredAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.lastEventDeliveredAt = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1WebhooksItemWebhooksGetResponse) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1WebhooksItemWebhooksGetResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSubscriptions sets the subscriptions property value. List of subscriptions that identify the events that are subscribed toand will be published to the Webhook destination. +func (m *V1beta1WebhooksItemWebhooksGetResponse) SetSubscriptions(value []V1beta1WebhooksItemWebhooksGetResponse_subscriptionsable)() { + m.subscriptions = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1WebhooksItemWebhooksGetResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1WebhooksItemWebhooksGetResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1WebhooksItemWebhooksGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAuthorization()(V1beta1WebhooksItemWebhooksGetResponse_authorizationable) + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDestinations()([]V1beta1WebhooksItemWebhooksGetResponse_destinationsable) + GetGeneration()(*int64) + GetGroups()([]V1beta1WebhooksItemWebhooksGetResponse_groupsable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLastEventDeliveredAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetName()(*string) + GetResourceUri()(*string) + GetSubscriptions()([]V1beta1WebhooksItemWebhooksGetResponse_subscriptionsable) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetAuthorization(value V1beta1WebhooksItemWebhooksGetResponse_authorizationable)() + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDestinations(value []V1beta1WebhooksItemWebhooksGetResponse_destinationsable)() + SetGeneration(value *int64)() + SetGroups(value []V1beta1WebhooksItemWebhooksGetResponse_groupsable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLastEventDeliveredAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetName(value *string)() + SetResourceUri(value *string)() + SetSubscriptions(value []V1beta1WebhooksItemWebhooksGetResponse_subscriptionsable)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_authorization.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_authorization.go new file mode 100644 index 0000000..393ad52 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_authorization.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksGetResponse_authorization an object containing an identity that is used to authorize published events +type V1beta1WebhooksItemWebhooksGetResponse_authorization struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The clientCredentials property + clientCredentials V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentialsable +} +// NewV1beta1WebhooksItemWebhooksGetResponse_authorization instantiates a new V1beta1WebhooksItemWebhooksGetResponse_authorization and sets the default values. +func NewV1beta1WebhooksItemWebhooksGetResponse_authorization()(*V1beta1WebhooksItemWebhooksGetResponse_authorization) { + m := &V1beta1WebhooksItemWebhooksGetResponse_authorization{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksGetResponse_authorizationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksGetResponse_authorizationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksGetResponse_authorization(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetClientCredentials gets the clientCredentials property value. The clientCredentials property +// returns a V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentialsable when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization) GetClientCredentials()(V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentialsable) { + return m.clientCredentials +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientCredentials"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentialsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetClientCredentials(val.(V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentialsable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("clientCredentials", m.GetClientCredentials()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetClientCredentials sets the clientCredentials property value. The clientCredentials property +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization) SetClientCredentials(value V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentialsable)() { + m.clientCredentials = value +} +type V1beta1WebhooksItemWebhooksGetResponse_authorizationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetClientCredentials()(V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentialsable) + SetClientCredentials(value V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentialsable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_authorization_escaped_client_credentials.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_authorization_escaped_client_credentials.go new file mode 100644 index 0000000..57d0ad0 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_authorization_escaped_client_credentials.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Reference to a Secret resource + secret V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secretable +} +// NewV1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials instantiates a new V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials and sets the default values. +func NewV1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials()(*V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials) { + m := &V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentialsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentialsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secretFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecret(val.(V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secretable)) + } + return nil + } + return res +} +// GetSecret gets the secret property value. Reference to a Secret resource +// returns a V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secretable when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials) GetSecret()(V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secretable) { + return m.secret +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetSecret sets the secret property value. Reference to a Secret resource +func (m *V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials) SetSecret(value V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secretable)() { + m.secret = value +} +type V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentialsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSecret()(V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secretable) + SetSecret(value V1beta1WebhooksItemWebhooksGetResponse_authorization_clientCredentials_secretable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_destinations.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_destinations.go new file mode 100644 index 0000000..b720dd6 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_destinations.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksGetResponse_destinations an object containing the publishing destination attributes +type V1beta1WebhooksItemWebhooksGetResponse_destinations struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The cloudEventEndpoint property + cloudEventEndpoint V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpointable +} +// NewV1beta1WebhooksItemWebhooksGetResponse_destinations instantiates a new V1beta1WebhooksItemWebhooksGetResponse_destinations and sets the default values. +func NewV1beta1WebhooksItemWebhooksGetResponse_destinations()(*V1beta1WebhooksItemWebhooksGetResponse_destinations) { + m := &V1beta1WebhooksItemWebhooksGetResponse_destinations{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksGetResponse_destinationsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksGetResponse_destinationsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksGetResponse_destinations(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCloudEventEndpoint gets the cloudEventEndpoint property value. The cloudEventEndpoint property +// returns a V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpointable when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations) GetCloudEventEndpoint()(V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpointable) { + return m.cloudEventEndpoint +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["cloudEventEndpoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpointFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCloudEventEndpoint(val.(V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpointable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("cloudEventEndpoint", m.GetCloudEventEndpoint()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCloudEventEndpoint sets the cloudEventEndpoint property value. The cloudEventEndpoint property +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations) SetCloudEventEndpoint(value V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpointable)() { + m.cloudEventEndpoint = value +} +type V1beta1WebhooksItemWebhooksGetResponse_destinationsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCloudEventEndpoint()(V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpointable) + SetCloudEventEndpoint(value V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpointable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_destinations_escaped_cloud_event_endpoint.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_destinations_escaped_cloud_event_endpoint.go new file mode 100644 index 0000000..0bfaa31 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_destinations_escaped_cloud_event_endpoint.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // An object containing the endpoint authentication attributes + authentication V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authenticationable + // The webhook endpoint address + endpoint *string +} +// NewV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint instantiates a new V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint and sets the default values. +func NewV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint()(*V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint) { + m := &V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpointFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpointFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAuthentication gets the authentication property value. An object containing the endpoint authentication attributes +// returns a V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authenticationable when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint) GetAuthentication()(V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authenticationable) { + return m.authentication +} +// GetEndpoint gets the endpoint property value. The webhook endpoint address +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint) GetEndpoint()(*string) { + return m.endpoint +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["authentication"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authenticationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAuthentication(val.(V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authenticationable)) + } + return nil + } + res["endpoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEndpoint(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("authentication", m.GetAuthentication()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("endpoint", m.GetEndpoint()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAuthentication sets the authentication property value. An object containing the endpoint authentication attributes +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint) SetAuthentication(value V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authenticationable)() { + m.authentication = value +} +// SetEndpoint sets the endpoint property value. The webhook endpoint address +func (m *V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint) SetEndpoint(value *string)() { + m.endpoint = value +} +type V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpointable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAuthentication()(V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authenticationable) + GetEndpoint()(*string) + SetAuthentication(value V1beta1WebhooksItemWebhooksGetResponse_destinations_cloudEventEndpoint_authenticationable)() + SetEndpoint(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_groups.go new file mode 100644 index 0000000..367e700 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_groups.go @@ -0,0 +1,104 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksGetResponse_groups reference to a Group resource +type V1beta1WebhooksItemWebhooksGetResponse_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The Group's unique identifier + id *string + // The Group's name + name *string +} +// NewV1beta1WebhooksItemWebhooksGetResponse_groups instantiates a new V1beta1WebhooksItemWebhooksGetResponse_groups and sets the default values. +func NewV1beta1WebhooksItemWebhooksGetResponse_groups()(*V1beta1WebhooksItemWebhooksGetResponse_groups) { + m := &V1beta1WebhooksItemWebhooksGetResponse_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksGetResponse_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksGetResponse_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksGetResponse_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. The Group's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_groups) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The Group's name +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksGetResponse_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksGetResponse_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The Group's unique identifier +func (m *V1beta1WebhooksItemWebhooksGetResponse_groups) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The Group's name +func (m *V1beta1WebhooksItemWebhooksGetResponse_groups) SetName(value *string)() { + m.name = value +} +type V1beta1WebhooksItemWebhooksGetResponse_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + SetId(value *string)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_subscriptions.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_subscriptions.go new file mode 100644 index 0000000..7f7ccf3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_subscriptions.go @@ -0,0 +1,122 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksGetResponse_subscriptions an event subscription specification +type V1beta1WebhooksItemWebhooksGetResponse_subscriptions struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // List of groups that is used to filter events.Only events associated with these groups arepublished to the webhook endpoint. + groups []V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groupsable + // The resourceType property + resourceType V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceTypeable +} +// NewV1beta1WebhooksItemWebhooksGetResponse_subscriptions instantiates a new V1beta1WebhooksItemWebhooksGetResponse_subscriptions and sets the default values. +func NewV1beta1WebhooksItemWebhooksGetResponse_subscriptions()(*V1beta1WebhooksItemWebhooksGetResponse_subscriptions) { + m := &V1beta1WebhooksItemWebhooksGetResponse_subscriptions{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksGetResponse_subscriptionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksGetResponse_subscriptionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksGetResponse_subscriptions(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksItemWebhooksGetResponse_subscriptions_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["resourceType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceTypeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetResourceType(val.(V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceTypeable)) + } + return nil + } + return res +} +// GetGroups gets the groups property value. List of groups that is used to filter events.Only events associated with these groups arepublished to the webhook endpoint. +// returns a []V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groupsable when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions) GetGroups()([]V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groupsable) { + return m.groups +} +// GetResourceType gets the resourceType property value. The resourceType property +// returns a V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceTypeable when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions) GetResourceType()(V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceTypeable) { + return m.resourceType +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("resourceType", m.GetResourceType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetGroups sets the groups property value. List of groups that is used to filter events.Only events associated with these groups arepublished to the webhook endpoint. +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions) SetGroups(value []V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groupsable)() { + m.groups = value +} +// SetResourceType sets the resourceType property value. The resourceType property +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions) SetResourceType(value V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceTypeable)() { + m.resourceType = value +} +type V1beta1WebhooksItemWebhooksGetResponse_subscriptionsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetGroups()([]V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groupsable) + GetResourceType()(V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceTypeable) + SetGroups(value []V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groupsable)() + SetResourceType(value V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceTypeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_subscriptions_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_subscriptions_escaped_groups.go new file mode 100644 index 0000000..7e6d0f1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_subscriptions_escaped_groups.go @@ -0,0 +1,104 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups reference to a Group resource +type V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The Group's unique identifier + id *string + // The Group's name + name *string +} +// NewV1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups instantiates a new V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups and sets the default values. +func NewV1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups()(*V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups) { + m := &V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksGetResponse_subscriptions_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksGetResponse_subscriptions_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. The Group's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The Group's name +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The Group's unique identifier +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The Group's name +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groups) SetName(value *string)() { + m.name = value +} +type V1beta1WebhooksItemWebhooksGetResponse_subscriptions_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + SetId(value *string)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_subscriptions_escaped_resource_type.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_subscriptions_escaped_resource_type.go new file mode 100644 index 0000000..d1ebc58 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_get_response_escaped_subscriptions_escaped_resource_type.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceType struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifies the resource type that is subscribed to + applicationResource *string + // Name of the resource type + name *string +} +// NewV1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceType instantiates a new V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceType and sets the default values. +func NewV1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceType()(*V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceType) { + m := &V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceType{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceTypeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceTypeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceType(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceType) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetApplicationResource gets the applicationResource property value. Identifies the resource type that is subscribed to +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceType) GetApplicationResource()(*string) { + return m.applicationResource +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceType) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applicationResource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplicationResource(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource type +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceType) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceType) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applicationResource", m.GetApplicationResource()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceType) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetApplicationResource sets the applicationResource property value. Identifies the resource type that is subscribed to +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceType) SetApplicationResource(value *string)() { + m.applicationResource = value +} +// SetName sets the name property value. Name of the resource type +func (m *V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceType) SetName(value *string)() { + m.name = value +} +type V1beta1WebhooksItemWebhooksGetResponse_subscriptions_resourceTypeable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplicationResource()(*string) + GetName()(*string) + SetApplicationResource(value *string)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_request_body.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_request_body.go new file mode 100644 index 0000000..2cf6e0d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_request_body.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksPatchRequestBody updates a Webhook resource +type V1beta1WebhooksItemWebhooksPatchRequestBody struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1WebhooksItemWebhooksPatchRequestBody instantiates a new V1beta1WebhooksItemWebhooksPatchRequestBody and sets the default values. +func NewV1beta1WebhooksItemWebhooksPatchRequestBody()(*V1beta1WebhooksItemWebhooksPatchRequestBody) { + m := &V1beta1WebhooksItemWebhooksPatchRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksPatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksPatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksPatchRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksPatchRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksPatchRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksPatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksPatchRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1WebhooksItemWebhooksPatchRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response.go new file mode 100644 index 0000000..ce96145 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response.go @@ -0,0 +1,454 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksPatchResponse a Webhook resource +type V1beta1WebhooksItemWebhooksPatchResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // An object containing an identity that is used to authorize published events + authorization V1beta1WebhooksItemWebhooksPatchResponse_authorizationable + // URI that opens the webhook in the UI console + consoleUri *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // List of event destinations + destinations []V1beta1WebhooksItemWebhooksPatchResponse_destinationsable + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // List of group associations + groups []V1beta1WebhooksItemWebhooksPatchResponse_groupsable + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The date & timestamp than an event was last delivered to the destination.The value is null if an event has never been delivered. + lastEventDeliveredAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // A system specified name for the resource. + name *string + // The self reference for this resource. + resourceUri *string + // List of subscriptions that identify the events that are subscribed toand will be published to the Webhook destination. + subscriptions []V1beta1WebhooksItemWebhooksPatchResponse_subscriptionsable + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1WebhooksItemWebhooksPatchResponse instantiates a new V1beta1WebhooksItemWebhooksPatchResponse and sets the default values. +func NewV1beta1WebhooksItemWebhooksPatchResponse()(*V1beta1WebhooksItemWebhooksPatchResponse) { + m := &V1beta1WebhooksItemWebhooksPatchResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksPatchResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksPatchResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksPatchResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAuthorization gets the authorization property value. An object containing an identity that is used to authorize published events +// returns a V1beta1WebhooksItemWebhooksPatchResponse_authorizationable when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetAuthorization()(V1beta1WebhooksItemWebhooksPatchResponse_authorizationable) { + return m.authorization +} +// GetConsoleUri gets the consoleUri property value. URI that opens the webhook in the UI console +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDestinations gets the destinations property value. List of event destinations +// returns a []V1beta1WebhooksItemWebhooksPatchResponse_destinationsable when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetDestinations()([]V1beta1WebhooksItemWebhooksPatchResponse_destinationsable) { + return m.destinations +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["authorization"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksPatchResponse_authorizationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAuthorization(val.(V1beta1WebhooksItemWebhooksPatchResponse_authorizationable)) + } + return nil + } + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["destinations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksItemWebhooksPatchResponse_destinationsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksItemWebhooksPatchResponse_destinationsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksItemWebhooksPatchResponse_destinationsable) + } + } + m.SetDestinations(res) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksItemWebhooksPatchResponse_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksItemWebhooksPatchResponse_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksItemWebhooksPatchResponse_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["lastEventDeliveredAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastEventDeliveredAt(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["subscriptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksItemWebhooksPatchResponse_subscriptionsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksItemWebhooksPatchResponse_subscriptionsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksItemWebhooksPatchResponse_subscriptionsable) + } + } + m.SetSubscriptions(res) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetGeneration()(*int64) { + return m.generation +} +// GetGroups gets the groups property value. List of group associations +// returns a []V1beta1WebhooksItemWebhooksPatchResponse_groupsable when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetGroups()([]V1beta1WebhooksItemWebhooksPatchResponse_groupsable) { + return m.groups +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetLastEventDeliveredAt gets the lastEventDeliveredAt property value. The date & timestamp than an event was last delivered to the destination.The value is null if an event has never been delivered. +// returns a *Time when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetLastEventDeliveredAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.lastEventDeliveredAt +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSubscriptions gets the subscriptions property value. List of subscriptions that identify the events that are subscribed toand will be published to the Webhook destination. +// returns a []V1beta1WebhooksItemWebhooksPatchResponse_subscriptionsable when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetSubscriptions()([]V1beta1WebhooksItemWebhooksPatchResponse_subscriptionsable) { + return m.subscriptions +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksPatchResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("authorization", m.GetAuthorization()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + if m.GetDestinations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDestinations())) + for i, v := range m.GetDestinations() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("destinations", cast) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + if m.GetSubscriptions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSubscriptions())) + for i, v := range m.GetSubscriptions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("subscriptions", cast) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksPatchResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAuthorization sets the authorization property value. An object containing an identity that is used to authorize published events +func (m *V1beta1WebhooksItemWebhooksPatchResponse) SetAuthorization(value V1beta1WebhooksItemWebhooksPatchResponse_authorizationable)() { + m.authorization = value +} +// SetConsoleUri sets the consoleUri property value. URI that opens the webhook in the UI console +func (m *V1beta1WebhooksItemWebhooksPatchResponse) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1WebhooksItemWebhooksPatchResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1WebhooksItemWebhooksPatchResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDestinations sets the destinations property value. List of event destinations +func (m *V1beta1WebhooksItemWebhooksPatchResponse) SetDestinations(value []V1beta1WebhooksItemWebhooksPatchResponse_destinationsable)() { + m.destinations = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1WebhooksItemWebhooksPatchResponse) SetGeneration(value *int64)() { + m.generation = value +} +// SetGroups sets the groups property value. List of group associations +func (m *V1beta1WebhooksItemWebhooksPatchResponse) SetGroups(value []V1beta1WebhooksItemWebhooksPatchResponse_groupsable)() { + m.groups = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1WebhooksItemWebhooksPatchResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetLastEventDeliveredAt sets the lastEventDeliveredAt property value. The date & timestamp than an event was last delivered to the destination.The value is null if an event has never been delivered. +func (m *V1beta1WebhooksItemWebhooksPatchResponse) SetLastEventDeliveredAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.lastEventDeliveredAt = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1WebhooksItemWebhooksPatchResponse) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1WebhooksItemWebhooksPatchResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSubscriptions sets the subscriptions property value. List of subscriptions that identify the events that are subscribed toand will be published to the Webhook destination. +func (m *V1beta1WebhooksItemWebhooksPatchResponse) SetSubscriptions(value []V1beta1WebhooksItemWebhooksPatchResponse_subscriptionsable)() { + m.subscriptions = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1WebhooksItemWebhooksPatchResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1WebhooksItemWebhooksPatchResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1WebhooksItemWebhooksPatchResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAuthorization()(V1beta1WebhooksItemWebhooksPatchResponse_authorizationable) + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDestinations()([]V1beta1WebhooksItemWebhooksPatchResponse_destinationsable) + GetGeneration()(*int64) + GetGroups()([]V1beta1WebhooksItemWebhooksPatchResponse_groupsable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLastEventDeliveredAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetName()(*string) + GetResourceUri()(*string) + GetSubscriptions()([]V1beta1WebhooksItemWebhooksPatchResponse_subscriptionsable) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetAuthorization(value V1beta1WebhooksItemWebhooksPatchResponse_authorizationable)() + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDestinations(value []V1beta1WebhooksItemWebhooksPatchResponse_destinationsable)() + SetGeneration(value *int64)() + SetGroups(value []V1beta1WebhooksItemWebhooksPatchResponse_groupsable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLastEventDeliveredAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetName(value *string)() + SetResourceUri(value *string)() + SetSubscriptions(value []V1beta1WebhooksItemWebhooksPatchResponse_subscriptionsable)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_authorization.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_authorization.go new file mode 100644 index 0000000..d01cf93 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_authorization.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksPatchResponse_authorization an object containing an identity that is used to authorize published events +type V1beta1WebhooksItemWebhooksPatchResponse_authorization struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The clientCredentials property + clientCredentials V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentialsable +} +// NewV1beta1WebhooksItemWebhooksPatchResponse_authorization instantiates a new V1beta1WebhooksItemWebhooksPatchResponse_authorization and sets the default values. +func NewV1beta1WebhooksItemWebhooksPatchResponse_authorization()(*V1beta1WebhooksItemWebhooksPatchResponse_authorization) { + m := &V1beta1WebhooksItemWebhooksPatchResponse_authorization{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksPatchResponse_authorizationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksPatchResponse_authorizationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksPatchResponse_authorization(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetClientCredentials gets the clientCredentials property value. The clientCredentials property +// returns a V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentialsable when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization) GetClientCredentials()(V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentialsable) { + return m.clientCredentials +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientCredentials"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentialsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetClientCredentials(val.(V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentialsable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("clientCredentials", m.GetClientCredentials()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetClientCredentials sets the clientCredentials property value. The clientCredentials property +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization) SetClientCredentials(value V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentialsable)() { + m.clientCredentials = value +} +type V1beta1WebhooksItemWebhooksPatchResponse_authorizationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetClientCredentials()(V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentialsable) + SetClientCredentials(value V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentialsable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_authorization_escaped_client_credentials.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_authorization_escaped_client_credentials.go new file mode 100644 index 0000000..81f183e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_authorization_escaped_client_credentials.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Reference to a Secret resource + secret V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secretable +} +// NewV1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials instantiates a new V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials and sets the default values. +func NewV1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials()(*V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials) { + m := &V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentialsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentialsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secretFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecret(val.(V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secretable)) + } + return nil + } + return res +} +// GetSecret gets the secret property value. Reference to a Secret resource +// returns a V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secretable when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials) GetSecret()(V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secretable) { + return m.secret +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetSecret sets the secret property value. Reference to a Secret resource +func (m *V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials) SetSecret(value V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secretable)() { + m.secret = value +} +type V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentialsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSecret()(V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secretable) + SetSecret(value V1beta1WebhooksItemWebhooksPatchResponse_authorization_clientCredentials_secretable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_destinations.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_destinations.go new file mode 100644 index 0000000..1e4d52c --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_destinations.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksPatchResponse_destinations an object containing the publishing destination attributes +type V1beta1WebhooksItemWebhooksPatchResponse_destinations struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The cloudEventEndpoint property + cloudEventEndpoint V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpointable +} +// NewV1beta1WebhooksItemWebhooksPatchResponse_destinations instantiates a new V1beta1WebhooksItemWebhooksPatchResponse_destinations and sets the default values. +func NewV1beta1WebhooksItemWebhooksPatchResponse_destinations()(*V1beta1WebhooksItemWebhooksPatchResponse_destinations) { + m := &V1beta1WebhooksItemWebhooksPatchResponse_destinations{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksPatchResponse_destinationsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksPatchResponse_destinationsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksPatchResponse_destinations(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCloudEventEndpoint gets the cloudEventEndpoint property value. The cloudEventEndpoint property +// returns a V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpointable when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations) GetCloudEventEndpoint()(V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpointable) { + return m.cloudEventEndpoint +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["cloudEventEndpoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpointFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCloudEventEndpoint(val.(V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpointable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("cloudEventEndpoint", m.GetCloudEventEndpoint()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCloudEventEndpoint sets the cloudEventEndpoint property value. The cloudEventEndpoint property +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations) SetCloudEventEndpoint(value V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpointable)() { + m.cloudEventEndpoint = value +} +type V1beta1WebhooksItemWebhooksPatchResponse_destinationsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCloudEventEndpoint()(V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpointable) + SetCloudEventEndpoint(value V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpointable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_destinations_escaped_cloud_event_endpoint.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_destinations_escaped_cloud_event_endpoint.go new file mode 100644 index 0000000..300a24e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_destinations_escaped_cloud_event_endpoint.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // An object containing the endpoint authentication attributes + authentication V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authenticationable + // The webhook endpoint address + endpoint *string +} +// NewV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint instantiates a new V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint and sets the default values. +func NewV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint()(*V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint) { + m := &V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpointFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpointFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAuthentication gets the authentication property value. An object containing the endpoint authentication attributes +// returns a V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authenticationable when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint) GetAuthentication()(V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authenticationable) { + return m.authentication +} +// GetEndpoint gets the endpoint property value. The webhook endpoint address +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint) GetEndpoint()(*string) { + return m.endpoint +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["authentication"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authenticationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAuthentication(val.(V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authenticationable)) + } + return nil + } + res["endpoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEndpoint(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("authentication", m.GetAuthentication()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("endpoint", m.GetEndpoint()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAuthentication sets the authentication property value. An object containing the endpoint authentication attributes +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint) SetAuthentication(value V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authenticationable)() { + m.authentication = value +} +// SetEndpoint sets the endpoint property value. The webhook endpoint address +func (m *V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint) SetEndpoint(value *string)() { + m.endpoint = value +} +type V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpointable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAuthentication()(V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authenticationable) + GetEndpoint()(*string) + SetAuthentication(value V1beta1WebhooksItemWebhooksPatchResponse_destinations_cloudEventEndpoint_authenticationable)() + SetEndpoint(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_groups.go new file mode 100644 index 0000000..5cb2dd2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_groups.go @@ -0,0 +1,104 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksPatchResponse_groups reference to a Group resource +type V1beta1WebhooksItemWebhooksPatchResponse_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The Group's unique identifier + id *string + // The Group's name + name *string +} +// NewV1beta1WebhooksItemWebhooksPatchResponse_groups instantiates a new V1beta1WebhooksItemWebhooksPatchResponse_groups and sets the default values. +func NewV1beta1WebhooksItemWebhooksPatchResponse_groups()(*V1beta1WebhooksItemWebhooksPatchResponse_groups) { + m := &V1beta1WebhooksItemWebhooksPatchResponse_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksPatchResponse_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksPatchResponse_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksPatchResponse_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. The Group's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_groups) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The Group's name +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksPatchResponse_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksPatchResponse_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The Group's unique identifier +func (m *V1beta1WebhooksItemWebhooksPatchResponse_groups) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The Group's name +func (m *V1beta1WebhooksItemWebhooksPatchResponse_groups) SetName(value *string)() { + m.name = value +} +type V1beta1WebhooksItemWebhooksPatchResponse_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + SetId(value *string)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_subscriptions.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_subscriptions.go new file mode 100644 index 0000000..676d7c9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_subscriptions.go @@ -0,0 +1,122 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksPatchResponse_subscriptions an event subscription specification +type V1beta1WebhooksItemWebhooksPatchResponse_subscriptions struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // List of groups that is used to filter events.Only events associated with these groups arepublished to the webhook endpoint. + groups []V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groupsable + // The resourceType property + resourceType V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceTypeable +} +// NewV1beta1WebhooksItemWebhooksPatchResponse_subscriptions instantiates a new V1beta1WebhooksItemWebhooksPatchResponse_subscriptions and sets the default values. +func NewV1beta1WebhooksItemWebhooksPatchResponse_subscriptions()(*V1beta1WebhooksItemWebhooksPatchResponse_subscriptions) { + m := &V1beta1WebhooksItemWebhooksPatchResponse_subscriptions{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksPatchResponse_subscriptionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksPatchResponse_subscriptionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksPatchResponse_subscriptions(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["resourceType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceTypeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetResourceType(val.(V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceTypeable)) + } + return nil + } + return res +} +// GetGroups gets the groups property value. List of groups that is used to filter events.Only events associated with these groups arepublished to the webhook endpoint. +// returns a []V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groupsable when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions) GetGroups()([]V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groupsable) { + return m.groups +} +// GetResourceType gets the resourceType property value. The resourceType property +// returns a V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceTypeable when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions) GetResourceType()(V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceTypeable) { + return m.resourceType +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("resourceType", m.GetResourceType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetGroups sets the groups property value. List of groups that is used to filter events.Only events associated with these groups arepublished to the webhook endpoint. +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions) SetGroups(value []V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groupsable)() { + m.groups = value +} +// SetResourceType sets the resourceType property value. The resourceType property +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions) SetResourceType(value V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceTypeable)() { + m.resourceType = value +} +type V1beta1WebhooksItemWebhooksPatchResponse_subscriptionsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetGroups()([]V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groupsable) + GetResourceType()(V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceTypeable) + SetGroups(value []V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groupsable)() + SetResourceType(value V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceTypeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_subscriptions_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_subscriptions_escaped_groups.go new file mode 100644 index 0000000..9a55d4a --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_subscriptions_escaped_groups.go @@ -0,0 +1,104 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups reference to a Group resource +type V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The Group's unique identifier + id *string + // The Group's name + name *string +} +// NewV1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups instantiates a new V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups and sets the default values. +func NewV1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups()(*V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups) { + m := &V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. The Group's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The Group's name +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The Group's unique identifier +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The Group's name +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groups) SetName(value *string)() { + m.name = value +} +type V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + SetId(value *string)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_subscriptions_escaped_resource_type.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_subscriptions_escaped_resource_type.go new file mode 100644 index 0000000..b9b7d53 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_patch_response_escaped_subscriptions_escaped_resource_type.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceType struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifies the resource type that is subscribed to + applicationResource *string + // Name of the resource type + name *string +} +// NewV1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceType instantiates a new V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceType and sets the default values. +func NewV1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceType()(*V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceType) { + m := &V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceType{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceTypeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceTypeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceType(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceType) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetApplicationResource gets the applicationResource property value. Identifies the resource type that is subscribed to +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceType) GetApplicationResource()(*string) { + return m.applicationResource +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceType) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applicationResource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplicationResource(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource type +// returns a *string when successful +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceType) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceType) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applicationResource", m.GetApplicationResource()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceType) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetApplicationResource sets the applicationResource property value. Identifies the resource type that is subscribed to +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceType) SetApplicationResource(value *string)() { + m.applicationResource = value +} +// SetName sets the name property value. Name of the resource type +func (m *V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceType) SetName(value *string)() { + m.name = value +} +type V1beta1WebhooksItemWebhooksPatchResponse_subscriptions_resourceTypeable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplicationResource()(*string) + GetName()(*string) + SetApplicationResource(value *string)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_response.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_response.go new file mode 100644 index 0000000..f0c35c4 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_item_webhooks_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksItemWebhooksResponse a Webhook resource +// Deprecated: This class is obsolete. Use V1beta1WebhooksItemWebhooksGetResponseable instead. +type V1beta1WebhooksItemWebhooksResponse struct { + V1beta1WebhooksItemWebhooksGetResponse +} +// NewV1beta1WebhooksItemWebhooksResponse instantiates a new V1beta1WebhooksItemWebhooksResponse and sets the default values. +func NewV1beta1WebhooksItemWebhooksResponse()(*V1beta1WebhooksItemWebhooksResponse) { + m := &V1beta1WebhooksItemWebhooksResponse{ + V1beta1WebhooksItemWebhooksGetResponse: *NewV1beta1WebhooksItemWebhooksGetResponse(), + } + return m +} +// CreateV1beta1WebhooksItemWebhooksResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksItemWebhooksResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksItemWebhooksResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1WebhooksItemWebhooksGetResponseable instead. +type V1beta1WebhooksItemWebhooksResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1WebhooksItemWebhooksGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata400_error.go new file mode 100644 index 0000000..6e3cf8b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata400_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksMetadata400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: BAD_REQUEST, INVALID_PARAMETER + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksMetadata400Error instantiates a new V1beta1WebhooksMetadata400Error and sets the default values. +func NewV1beta1WebhooksMetadata400Error()(*V1beta1WebhooksMetadata400Error) { + m := &V1beta1WebhooksMetadata400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksMetadata400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksMetadata400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksMetadata400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksMetadata400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksMetadata400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: BAD_REQUEST, INVALID_PARAMETER +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksMetadata400Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksMetadata400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksMetadata400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksMetadata400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: BAD_REQUEST, INVALID_PARAMETER +func (m *V1beta1WebhooksMetadata400Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksMetadata400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata401_error.go new file mode 100644 index 0000000..50ab227 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata401_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksMetadata401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: UNAUTHENTICATED + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksMetadata401Error instantiates a new V1beta1WebhooksMetadata401Error and sets the default values. +func NewV1beta1WebhooksMetadata401Error()(*V1beta1WebhooksMetadata401Error) { + m := &V1beta1WebhooksMetadata401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksMetadata401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksMetadata401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksMetadata401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksMetadata401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksMetadata401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: UNAUTHENTICATED +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksMetadata401Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksMetadata401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksMetadata401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksMetadata401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: UNAUTHENTICATED +func (m *V1beta1WebhooksMetadata401Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksMetadata401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata403_error.go new file mode 100644 index 0000000..e9e8355 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata403_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksMetadata403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: FORBIDDEN + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksMetadata403Error instantiates a new V1beta1WebhooksMetadata403Error and sets the default values. +func NewV1beta1WebhooksMetadata403Error()(*V1beta1WebhooksMetadata403Error) { + m := &V1beta1WebhooksMetadata403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksMetadata403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksMetadata403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksMetadata403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksMetadata403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksMetadata403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: FORBIDDEN +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksMetadata403Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksMetadata403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksMetadata403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksMetadata403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: FORBIDDEN +func (m *V1beta1WebhooksMetadata403Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksMetadata403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata500_error.go new file mode 100644 index 0000000..0aadf35 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata500_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksMetadata500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: INTERNAL_ERROR + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksMetadata500Error instantiates a new V1beta1WebhooksMetadata500Error and sets the default values. +func NewV1beta1WebhooksMetadata500Error()(*V1beta1WebhooksMetadata500Error) { + m := &V1beta1WebhooksMetadata500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksMetadata500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksMetadata500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksMetadata500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksMetadata500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksMetadata500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: INTERNAL_ERROR +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksMetadata500Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksMetadata500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksMetadata500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksMetadata500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: INTERNAL_ERROR +func (m *V1beta1WebhooksMetadata500Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksMetadata500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata503_error.go new file mode 100644 index 0000000..2916a99 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata503_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksMetadata503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: SERVICE_UNAVAILABLE + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksMetadata503Error instantiates a new V1beta1WebhooksMetadata503Error and sets the default values. +func NewV1beta1WebhooksMetadata503Error()(*V1beta1WebhooksMetadata503Error) { + m := &V1beta1WebhooksMetadata503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksMetadata503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksMetadata503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksMetadata503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksMetadata503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksMetadata503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: SERVICE_UNAVAILABLE +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksMetadata503Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksMetadata503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksMetadata503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksMetadata503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: SERVICE_UNAVAILABLE +func (m *V1beta1WebhooksMetadata503Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksMetadata503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response.go new file mode 100644 index 0000000..cced599 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response.go @@ -0,0 +1,180 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksMetadataGetResponse a list of webhook metadata +type V1beta1WebhooksMetadataGetResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Number of items in this response. + count *int32 + // List of webhook metadata + items []V1beta1WebhooksMetadataGetResponse_itemsable + // The offset query parameter from the request. + offset *int32 + // Total number of items matching the filter parameter in the request. + total *int32 +} +// NewV1beta1WebhooksMetadataGetResponse instantiates a new V1beta1WebhooksMetadataGetResponse and sets the default values. +func NewV1beta1WebhooksMetadataGetResponse()(*V1beta1WebhooksMetadataGetResponse) { + m := &V1beta1WebhooksMetadataGetResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksMetadataGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksMetadataGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksMetadataGetResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksMetadataGetResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCount gets the count property value. Number of items in this response. +// returns a *int32 when successful +func (m *V1beta1WebhooksMetadataGetResponse) GetCount()(*int32) { + return m.count +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksMetadataGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCount(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksMetadataGetResponse_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksMetadataGetResponse_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksMetadataGetResponse_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["offset"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetOffset(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + return res +} +// GetItems gets the items property value. List of webhook metadata +// returns a []V1beta1WebhooksMetadataGetResponse_itemsable when successful +func (m *V1beta1WebhooksMetadataGetResponse) GetItems()([]V1beta1WebhooksMetadataGetResponse_itemsable) { + return m.items +} +// GetOffset gets the offset property value. The offset query parameter from the request. +// returns a *int32 when successful +func (m *V1beta1WebhooksMetadataGetResponse) GetOffset()(*int32) { + return m.offset +} +// GetTotal gets the total property value. Total number of items matching the filter parameter in the request. +// returns a *int32 when successful +func (m *V1beta1WebhooksMetadataGetResponse) GetTotal()(*int32) { + return m.total +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksMetadataGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("count", m.GetCount()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("offset", m.GetOffset()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksMetadataGetResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCount sets the count property value. Number of items in this response. +func (m *V1beta1WebhooksMetadataGetResponse) SetCount(value *int32)() { + m.count = value +} +// SetItems sets the items property value. List of webhook metadata +func (m *V1beta1WebhooksMetadataGetResponse) SetItems(value []V1beta1WebhooksMetadataGetResponse_itemsable)() { + m.items = value +} +// SetOffset sets the offset property value. The offset query parameter from the request. +func (m *V1beta1WebhooksMetadataGetResponse) SetOffset(value *int32)() { + m.offset = value +} +// SetTotal sets the total property value. Total number of items matching the filter parameter in the request. +func (m *V1beta1WebhooksMetadataGetResponse) SetTotal(value *int32)() { + m.total = value +} +type V1beta1WebhooksMetadataGetResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCount()(*int32) + GetItems()([]V1beta1WebhooksMetadataGetResponse_itemsable) + GetOffset()(*int32) + GetTotal()(*int32) + SetCount(value *int32)() + SetItems(value []V1beta1WebhooksMetadataGetResponse_itemsable)() + SetOffset(value *int32)() + SetTotal(value *int32)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response_escaped_items.go new file mode 100644 index 0000000..a38a2e9 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response_escaped_items.go @@ -0,0 +1,296 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksMetadataGetResponse_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // List of metadata + items []V1beta1WebhooksMetadataGetResponse_items_itemsable + // A system specified name for the resource. + name *string + // The self reference for this resource. + resourceUri *string + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1WebhooksMetadataGetResponse_items instantiates a new V1beta1WebhooksMetadataGetResponse_items and sets the default values. +func NewV1beta1WebhooksMetadataGetResponse_items()(*V1beta1WebhooksMetadataGetResponse_items) { + m := &V1beta1WebhooksMetadataGetResponse_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksMetadataGetResponse_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksMetadataGetResponse_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksMetadataGetResponse_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksMetadataGetResponse_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1WebhooksMetadataGetResponse_items) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1WebhooksMetadataGetResponse_items) GetCustomerId()(*string) { + return m.customerId +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksMetadataGetResponse_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksMetadataGetResponse_items_itemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksMetadataGetResponse_items_itemsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksMetadataGetResponse_items_itemsable) + } + } + m.SetItems(res) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1WebhooksMetadataGetResponse_items) GetGeneration()(*int64) { + return m.generation +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1WebhooksMetadataGetResponse_items) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetItems gets the items property value. List of metadata +// returns a []V1beta1WebhooksMetadataGetResponse_items_itemsable when successful +func (m *V1beta1WebhooksMetadataGetResponse_items) GetItems()([]V1beta1WebhooksMetadataGetResponse_items_itemsable) { + return m.items +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1WebhooksMetadataGetResponse_items) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1WebhooksMetadataGetResponse_items) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1WebhooksMetadataGetResponse_items) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1WebhooksMetadataGetResponse_items) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksMetadataGetResponse_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetItems())) + for i, v := range m.GetItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("items", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksMetadataGetResponse_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1WebhooksMetadataGetResponse_items) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1WebhooksMetadataGetResponse_items) SetCustomerId(value *string)() { + m.customerId = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1WebhooksMetadataGetResponse_items) SetGeneration(value *int64)() { + m.generation = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1WebhooksMetadataGetResponse_items) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetItems sets the items property value. List of metadata +func (m *V1beta1WebhooksMetadataGetResponse_items) SetItems(value []V1beta1WebhooksMetadataGetResponse_items_itemsable)() { + m.items = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1WebhooksMetadataGetResponse_items) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1WebhooksMetadataGetResponse_items) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1WebhooksMetadataGetResponse_items) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1WebhooksMetadataGetResponse_items) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1WebhooksMetadataGetResponse_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetGeneration()(*int64) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetItems()([]V1beta1WebhooksMetadataGetResponse_items_itemsable) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetGeneration(value *int64)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetItems(value []V1beta1WebhooksMetadataGetResponse_items_itemsable)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response_escaped_items_escaped_items.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response_escaped_items_escaped_items.go new file mode 100644 index 0000000..700bbcd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response_escaped_items_escaped_items.go @@ -0,0 +1,138 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksMetadataGetResponse_items_items struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Machine readable item identifier + key *string + // Additional attributes for a Resource metadata item + resource V1beta1WebhooksMetadataGetResponse_items_items_resourceable + // Human readable item name + value *string +} +// NewV1beta1WebhooksMetadataGetResponse_items_items instantiates a new V1beta1WebhooksMetadataGetResponse_items_items and sets the default values. +func NewV1beta1WebhooksMetadataGetResponse_items_items()(*V1beta1WebhooksMetadataGetResponse_items_items) { + m := &V1beta1WebhooksMetadataGetResponse_items_items{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksMetadataGetResponse_items_itemsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksMetadataGetResponse_items_itemsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksMetadataGetResponse_items_items(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksMetadataGetResponse_items_items) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksMetadataGetResponse_items_items) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["key"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetKey(val) + } + return nil + } + res["resource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksMetadataGetResponse_items_items_resourceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetResource(val.(V1beta1WebhooksMetadataGetResponse_items_items_resourceable)) + } + return nil + } + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetKey gets the key property value. Machine readable item identifier +// returns a *string when successful +func (m *V1beta1WebhooksMetadataGetResponse_items_items) GetKey()(*string) { + return m.key +} +// GetResource gets the resource property value. Additional attributes for a Resource metadata item +// returns a V1beta1WebhooksMetadataGetResponse_items_items_resourceable when successful +func (m *V1beta1WebhooksMetadataGetResponse_items_items) GetResource()(V1beta1WebhooksMetadataGetResponse_items_items_resourceable) { + return m.resource +} +// GetValue gets the value property value. Human readable item name +// returns a *string when successful +func (m *V1beta1WebhooksMetadataGetResponse_items_items) GetValue()(*string) { + return m.value +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksMetadataGetResponse_items_items) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("key", m.GetKey()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("resource", m.GetResource()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("value", m.GetValue()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksMetadataGetResponse_items_items) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetKey sets the key property value. Machine readable item identifier +func (m *V1beta1WebhooksMetadataGetResponse_items_items) SetKey(value *string)() { + m.key = value +} +// SetResource sets the resource property value. Additional attributes for a Resource metadata item +func (m *V1beta1WebhooksMetadataGetResponse_items_items) SetResource(value V1beta1WebhooksMetadataGetResponse_items_items_resourceable)() { + m.resource = value +} +// SetValue sets the value property value. Human readable item name +func (m *V1beta1WebhooksMetadataGetResponse_items_items) SetValue(value *string)() { + m.value = value +} +type V1beta1WebhooksMetadataGetResponse_items_itemsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetKey()(*string) + GetResource()(V1beta1WebhooksMetadataGetResponse_items_items_resourceable) + GetValue()(*string) + SetKey(value *string)() + SetResource(value V1beta1WebhooksMetadataGetResponse_items_items_resourceable)() + SetValue(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response_escaped_items_escaped_items_escaped_resource.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response_escaped_items_escaped_items_escaped_resource.go new file mode 100644 index 0000000..f982b3f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_get_response_escaped_items_escaped_items_escaped_resource.go @@ -0,0 +1,139 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksMetadataGetResponse_items_items_resource additional attributes for a Resource metadata item +type V1beta1WebhooksMetadataGetResponse_items_items_resource struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifies the resource type + applicationResource *string + // The permission needed to read instances of this resource type + readPermission *string + // Indicates whether or not the permission has scopes + scopedResource *bool +} +// NewV1beta1WebhooksMetadataGetResponse_items_items_resource instantiates a new V1beta1WebhooksMetadataGetResponse_items_items_resource and sets the default values. +func NewV1beta1WebhooksMetadataGetResponse_items_items_resource()(*V1beta1WebhooksMetadataGetResponse_items_items_resource) { + m := &V1beta1WebhooksMetadataGetResponse_items_items_resource{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksMetadataGetResponse_items_items_resourceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksMetadataGetResponse_items_items_resourceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksMetadataGetResponse_items_items_resource(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksMetadataGetResponse_items_items_resource) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetApplicationResource gets the applicationResource property value. Identifies the resource type +// returns a *string when successful +func (m *V1beta1WebhooksMetadataGetResponse_items_items_resource) GetApplicationResource()(*string) { + return m.applicationResource +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksMetadataGetResponse_items_items_resource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applicationResource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplicationResource(val) + } + return nil + } + res["readPermission"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetReadPermission(val) + } + return nil + } + res["scopedResource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetScopedResource(val) + } + return nil + } + return res +} +// GetReadPermission gets the readPermission property value. The permission needed to read instances of this resource type +// returns a *string when successful +func (m *V1beta1WebhooksMetadataGetResponse_items_items_resource) GetReadPermission()(*string) { + return m.readPermission +} +// GetScopedResource gets the scopedResource property value. Indicates whether or not the permission has scopes +// returns a *bool when successful +func (m *V1beta1WebhooksMetadataGetResponse_items_items_resource) GetScopedResource()(*bool) { + return m.scopedResource +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksMetadataGetResponse_items_items_resource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applicationResource", m.GetApplicationResource()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("readPermission", m.GetReadPermission()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("scopedResource", m.GetScopedResource()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksMetadataGetResponse_items_items_resource) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetApplicationResource sets the applicationResource property value. Identifies the resource type +func (m *V1beta1WebhooksMetadataGetResponse_items_items_resource) SetApplicationResource(value *string)() { + m.applicationResource = value +} +// SetReadPermission sets the readPermission property value. The permission needed to read instances of this resource type +func (m *V1beta1WebhooksMetadataGetResponse_items_items_resource) SetReadPermission(value *string)() { + m.readPermission = value +} +// SetScopedResource sets the scopedResource property value. Indicates whether or not the permission has scopes +func (m *V1beta1WebhooksMetadataGetResponse_items_items_resource) SetScopedResource(value *bool)() { + m.scopedResource = value +} +type V1beta1WebhooksMetadataGetResponse_items_items_resourceable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplicationResource()(*string) + GetReadPermission()(*string) + GetScopedResource()(*bool) + SetApplicationResource(value *string)() + SetReadPermission(value *string)() + SetScopedResource(value *bool)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_request_builder.go new file mode 100644 index 0000000..86c52b1 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_request_builder.go @@ -0,0 +1,104 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1WebhooksMetadataRequestBuilder builds and executes requests for operations under \data-services\v1beta1\webhooks-metadata +type V1beta1WebhooksMetadataRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1WebhooksMetadataRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1WebhooksMetadataRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1WebhooksMetadataRequestBuilderInternal instantiates a new V1beta1WebhooksMetadataRequestBuilder and sets the default values. +func NewV1beta1WebhooksMetadataRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1WebhooksMetadataRequestBuilder) { + m := &V1beta1WebhooksMetadataRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/webhooks-metadata", pathParameters), + } + return m +} +// NewV1beta1WebhooksMetadataRequestBuilder instantiates a new V1beta1WebhooksMetadataRequestBuilder and sets the default values. +func NewV1beta1WebhooksMetadataRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1WebhooksMetadataRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1WebhooksMetadataRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns all Webhook metadata. This includes the list of values for each of the webhook enum attributes.It also includes the list of resources that have been onboarded with RTM. +// Deprecated: This method is obsolete. Use GetAsWebhooksMetadataGetResponse instead. +// returns a V1beta1WebhooksMetadataResponseable when successful +// returns a V1beta1WebhooksMetadata400Error error when the service returns a 400 status code +// returns a V1beta1WebhooksMetadata401Error error when the service returns a 401 status code +// returns a V1beta1WebhooksMetadata403Error error when the service returns a 403 status code +// returns a V1beta1WebhooksMetadata500Error error when the service returns a 500 status code +// returns a V1beta1WebhooksMetadata503Error error when the service returns a 503 status code +func (m *V1beta1WebhooksMetadataRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1WebhooksMetadataRequestBuilderGetRequestConfiguration)(V1beta1WebhooksMetadataResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1WebhooksMetadata400ErrorFromDiscriminatorValue, + "401": CreateV1beta1WebhooksMetadata401ErrorFromDiscriminatorValue, + "403": CreateV1beta1WebhooksMetadata403ErrorFromDiscriminatorValue, + "500": CreateV1beta1WebhooksMetadata500ErrorFromDiscriminatorValue, + "503": CreateV1beta1WebhooksMetadata503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1WebhooksMetadataResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1WebhooksMetadataResponseable), nil +} +// GetAsWebhooksMetadataGetResponse returns all Webhook metadata. This includes the list of values for each of the webhook enum attributes.It also includes the list of resources that have been onboarded with RTM. +// returns a V1beta1WebhooksMetadataGetResponseable when successful +// returns a V1beta1WebhooksMetadata400Error error when the service returns a 400 status code +// returns a V1beta1WebhooksMetadata401Error error when the service returns a 401 status code +// returns a V1beta1WebhooksMetadata403Error error when the service returns a 403 status code +// returns a V1beta1WebhooksMetadata500Error error when the service returns a 500 status code +// returns a V1beta1WebhooksMetadata503Error error when the service returns a 503 status code +func (m *V1beta1WebhooksMetadataRequestBuilder) GetAsWebhooksMetadataGetResponse(ctx context.Context, requestConfiguration *V1beta1WebhooksMetadataRequestBuilderGetRequestConfiguration)(V1beta1WebhooksMetadataGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1WebhooksMetadata400ErrorFromDiscriminatorValue, + "401": CreateV1beta1WebhooksMetadata401ErrorFromDiscriminatorValue, + "403": CreateV1beta1WebhooksMetadata403ErrorFromDiscriminatorValue, + "500": CreateV1beta1WebhooksMetadata500ErrorFromDiscriminatorValue, + "503": CreateV1beta1WebhooksMetadata503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1WebhooksMetadataGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1WebhooksMetadataGetResponseable), nil +} +// ToGetRequestInformation returns all Webhook metadata. This includes the list of values for each of the webhook enum attributes.It also includes the list of resources that have been onboarded with RTM. +// returns a *RequestInformation when successful +func (m *V1beta1WebhooksMetadataRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1WebhooksMetadataRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1WebhooksMetadataRequestBuilder when successful +func (m *V1beta1WebhooksMetadataRequestBuilder) WithUrl(rawUrl string)(*V1beta1WebhooksMetadataRequestBuilder) { + return NewV1beta1WebhooksMetadataRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_response.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_response.go new file mode 100644 index 0000000..ee4493d --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_metadata_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksMetadataResponse a list of webhook metadata +// Deprecated: This class is obsolete. Use V1beta1WebhooksMetadataGetResponseable instead. +type V1beta1WebhooksMetadataResponse struct { + V1beta1WebhooksMetadataGetResponse +} +// NewV1beta1WebhooksMetadataResponse instantiates a new V1beta1WebhooksMetadataResponse and sets the default values. +func NewV1beta1WebhooksMetadataResponse()(*V1beta1WebhooksMetadataResponse) { + m := &V1beta1WebhooksMetadataResponse{ + V1beta1WebhooksMetadataGetResponse: *NewV1beta1WebhooksMetadataGetResponse(), + } + return m +} +// CreateV1beta1WebhooksMetadataResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksMetadataResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksMetadataResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1WebhooksMetadataGetResponseable instead. +type V1beta1WebhooksMetadataResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1WebhooksMetadataGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_request_body.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_request_body.go new file mode 100644 index 0000000..b135025 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_request_body.go @@ -0,0 +1,52 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksPostRequestBody creates a Webhook resource +type V1beta1WebhooksPostRequestBody struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any +} +// NewV1beta1WebhooksPostRequestBody instantiates a new V1beta1WebhooksPostRequestBody and sets the default values. +func NewV1beta1WebhooksPostRequestBody()(*V1beta1WebhooksPostRequestBody) { + m := &V1beta1WebhooksPostRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksPostRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksPostRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +type V1beta1WebhooksPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response.go new file mode 100644 index 0000000..855173b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response.go @@ -0,0 +1,454 @@ +package dataservices + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksPostResponse a Webhook resource +type V1beta1WebhooksPostResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // An object containing an identity that is used to authorize published events + authorization V1beta1WebhooksPostResponse_authorizationable + // URI that opens the webhook in the UI console + consoleUri *string + // The createdAt property + createdAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // The customer application identifier + customerId *string + // List of event destinations + destinations []V1beta1WebhooksPostResponse_destinationsable + // A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. + generation *int64 + // List of group associations + groups []V1beta1WebhooksPostResponse_groupsable + // An identifier for the resource, usually a UUID. + id *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID + // The date & timestamp than an event was last delivered to the destination.The value is null if an event has never been delivered. + lastEventDeliveredAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time + // A system specified name for the resource. + name *string + // The self reference for this resource. + resourceUri *string + // List of subscriptions that identify the events that are subscribed toand will be published to the Webhook destination. + subscriptions []V1beta1WebhooksPostResponse_subscriptionsable + // The type of resource. + typeEscaped *string + // The updatedAt property + updatedAt *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +} +// NewV1beta1WebhooksPostResponse instantiates a new V1beta1WebhooksPostResponse and sets the default values. +func NewV1beta1WebhooksPostResponse()(*V1beta1WebhooksPostResponse) { + m := &V1beta1WebhooksPostResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksPostResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksPostResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAuthorization gets the authorization property value. An object containing an identity that is used to authorize published events +// returns a V1beta1WebhooksPostResponse_authorizationable when successful +func (m *V1beta1WebhooksPostResponse) GetAuthorization()(V1beta1WebhooksPostResponse_authorizationable) { + return m.authorization +} +// GetConsoleUri gets the consoleUri property value. URI that opens the webhook in the UI console +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse) GetConsoleUri()(*string) { + return m.consoleUri +} +// GetCreatedAt gets the createdAt property value. The createdAt property +// returns a *Time when successful +func (m *V1beta1WebhooksPostResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.createdAt +} +// GetCustomerId gets the customerId property value. The customer application identifier +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse) GetCustomerId()(*string) { + return m.customerId +} +// GetDestinations gets the destinations property value. List of event destinations +// returns a []V1beta1WebhooksPostResponse_destinationsable when successful +func (m *V1beta1WebhooksPostResponse) GetDestinations()([]V1beta1WebhooksPostResponse_destinationsable) { + return m.destinations +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["authorization"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksPostResponse_authorizationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAuthorization(val.(V1beta1WebhooksPostResponse_authorizationable)) + } + return nil + } + res["consoleUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConsoleUri(val) + } + return nil + } + res["createdAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedAt(val) + } + return nil + } + res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerId(val) + } + return nil + } + res["destinations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksPostResponse_destinationsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksPostResponse_destinationsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksPostResponse_destinationsable) + } + } + m.SetDestinations(res) + } + return nil + } + res["generation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGeneration(val) + } + return nil + } + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksPostResponse_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksPostResponse_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksPostResponse_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["lastEventDeliveredAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastEventDeliveredAt(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["subscriptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksPostResponse_subscriptionsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksPostResponse_subscriptionsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksPostResponse_subscriptionsable) + } + } + m.SetSubscriptions(res) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["updatedAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetUpdatedAt(val) + } + return nil + } + return res +} +// GetGeneration gets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +// returns a *int64 when successful +func (m *V1beta1WebhooksPostResponse) GetGeneration()(*int64) { + return m.generation +} +// GetGroups gets the groups property value. List of group associations +// returns a []V1beta1WebhooksPostResponse_groupsable when successful +func (m *V1beta1WebhooksPostResponse) GetGroups()([]V1beta1WebhooksPostResponse_groupsable) { + return m.groups +} +// GetId gets the id property value. An identifier for the resource, usually a UUID. +// returns a *UUID when successful +func (m *V1beta1WebhooksPostResponse) GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + return m.id +} +// GetLastEventDeliveredAt gets the lastEventDeliveredAt property value. The date & timestamp than an event was last delivered to the destination.The value is null if an event has never been delivered. +// returns a *Time when successful +func (m *V1beta1WebhooksPostResponse) GetLastEventDeliveredAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.lastEventDeliveredAt +} +// GetName gets the name property value. A system specified name for the resource. +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The self reference for this resource. +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse) GetResourceUri()(*string) { + return m.resourceUri +} +// GetSubscriptions gets the subscriptions property value. List of subscriptions that identify the events that are subscribed toand will be published to the Webhook destination. +// returns a []V1beta1WebhooksPostResponse_subscriptionsable when successful +func (m *V1beta1WebhooksPostResponse) GetSubscriptions()([]V1beta1WebhooksPostResponse_subscriptionsable) { + return m.subscriptions +} +// GetTypeEscaped gets the type property value. The type of resource. +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUpdatedAt gets the updatedAt property value. The updatedAt property +// returns a *Time when successful +func (m *V1beta1WebhooksPostResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + return m.updatedAt +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("authorization", m.GetAuthorization()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdAt", m.GetCreatedAt()) + if err != nil { + return err + } + } + if m.GetDestinations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDestinations())) + for i, v := range m.GetDestinations() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("destinations", cast) + if err != nil { + return err + } + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + if m.GetSubscriptions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSubscriptions())) + for i, v := range m.GetSubscriptions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("subscriptions", cast) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("updatedAt", m.GetUpdatedAt()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksPostResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAuthorization sets the authorization property value. An object containing an identity that is used to authorize published events +func (m *V1beta1WebhooksPostResponse) SetAuthorization(value V1beta1WebhooksPostResponse_authorizationable)() { + m.authorization = value +} +// SetConsoleUri sets the consoleUri property value. URI that opens the webhook in the UI console +func (m *V1beta1WebhooksPostResponse) SetConsoleUri(value *string)() { + m.consoleUri = value +} +// SetCreatedAt sets the createdAt property value. The createdAt property +func (m *V1beta1WebhooksPostResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.createdAt = value +} +// SetCustomerId sets the customerId property value. The customer application identifier +func (m *V1beta1WebhooksPostResponse) SetCustomerId(value *string)() { + m.customerId = value +} +// SetDestinations sets the destinations property value. List of event destinations +func (m *V1beta1WebhooksPostResponse) SetDestinations(value []V1beta1WebhooksPostResponse_destinationsable)() { + m.destinations = value +} +// SetGeneration sets the generation property value. A monotonically increasing value. This value updates when the resource is updated and can be used as a short way to determine if a resource has changed or which of two different copies of a resource is more up to date. +func (m *V1beta1WebhooksPostResponse) SetGeneration(value *int64)() { + m.generation = value +} +// SetGroups sets the groups property value. List of group associations +func (m *V1beta1WebhooksPostResponse) SetGroups(value []V1beta1WebhooksPostResponse_groupsable)() { + m.groups = value +} +// SetId sets the id property value. An identifier for the resource, usually a UUID. +func (m *V1beta1WebhooksPostResponse) SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + m.id = value +} +// SetLastEventDeliveredAt sets the lastEventDeliveredAt property value. The date & timestamp than an event was last delivered to the destination.The value is null if an event has never been delivered. +func (m *V1beta1WebhooksPostResponse) SetLastEventDeliveredAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.lastEventDeliveredAt = value +} +// SetName sets the name property value. A system specified name for the resource. +func (m *V1beta1WebhooksPostResponse) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The self reference for this resource. +func (m *V1beta1WebhooksPostResponse) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetSubscriptions sets the subscriptions property value. List of subscriptions that identify the events that are subscribed toand will be published to the Webhook destination. +func (m *V1beta1WebhooksPostResponse) SetSubscriptions(value []V1beta1WebhooksPostResponse_subscriptionsable)() { + m.subscriptions = value +} +// SetTypeEscaped sets the type property value. The type of resource. +func (m *V1beta1WebhooksPostResponse) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUpdatedAt sets the updatedAt property value. The updatedAt property +func (m *V1beta1WebhooksPostResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + m.updatedAt = value +} +type V1beta1WebhooksPostResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAuthorization()(V1beta1WebhooksPostResponse_authorizationable) + GetConsoleUri()(*string) + GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustomerId()(*string) + GetDestinations()([]V1beta1WebhooksPostResponse_destinationsable) + GetGeneration()(*int64) + GetGroups()([]V1beta1WebhooksPostResponse_groupsable) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLastEventDeliveredAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetName()(*string) + GetResourceUri()(*string) + GetSubscriptions()([]V1beta1WebhooksPostResponse_subscriptionsable) + GetTypeEscaped()(*string) + GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetAuthorization(value V1beta1WebhooksPostResponse_authorizationable)() + SetConsoleUri(value *string)() + SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustomerId(value *string)() + SetDestinations(value []V1beta1WebhooksPostResponse_destinationsable)() + SetGeneration(value *int64)() + SetGroups(value []V1beta1WebhooksPostResponse_groupsable)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLastEventDeliveredAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetName(value *string)() + SetResourceUri(value *string)() + SetSubscriptions(value []V1beta1WebhooksPostResponse_subscriptionsable)() + SetTypeEscaped(value *string)() + SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_authorization.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_authorization.go new file mode 100644 index 0000000..6b55755 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_authorization.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksPostResponse_authorization an object containing an identity that is used to authorize published events +type V1beta1WebhooksPostResponse_authorization struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The clientCredentials property + clientCredentials V1beta1WebhooksPostResponse_authorization_clientCredentialsable +} +// NewV1beta1WebhooksPostResponse_authorization instantiates a new V1beta1WebhooksPostResponse_authorization and sets the default values. +func NewV1beta1WebhooksPostResponse_authorization()(*V1beta1WebhooksPostResponse_authorization) { + m := &V1beta1WebhooksPostResponse_authorization{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksPostResponse_authorizationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksPostResponse_authorizationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksPostResponse_authorization(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksPostResponse_authorization) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetClientCredentials gets the clientCredentials property value. The clientCredentials property +// returns a V1beta1WebhooksPostResponse_authorization_clientCredentialsable when successful +func (m *V1beta1WebhooksPostResponse_authorization) GetClientCredentials()(V1beta1WebhooksPostResponse_authorization_clientCredentialsable) { + return m.clientCredentials +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksPostResponse_authorization) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientCredentials"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksPostResponse_authorization_clientCredentialsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetClientCredentials(val.(V1beta1WebhooksPostResponse_authorization_clientCredentialsable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksPostResponse_authorization) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("clientCredentials", m.GetClientCredentials()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksPostResponse_authorization) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetClientCredentials sets the clientCredentials property value. The clientCredentials property +func (m *V1beta1WebhooksPostResponse_authorization) SetClientCredentials(value V1beta1WebhooksPostResponse_authorization_clientCredentialsable)() { + m.clientCredentials = value +} +type V1beta1WebhooksPostResponse_authorizationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetClientCredentials()(V1beta1WebhooksPostResponse_authorization_clientCredentialsable) + SetClientCredentials(value V1beta1WebhooksPostResponse_authorization_clientCredentialsable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_authorization_escaped_client_credentials.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_authorization_escaped_client_credentials.go new file mode 100644 index 0000000..9425a6e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_authorization_escaped_client_credentials.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksPostResponse_authorization_clientCredentials struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Reference to a Secret resource + secret V1beta1WebhooksPostResponse_authorization_clientCredentials_secretable +} +// NewV1beta1WebhooksPostResponse_authorization_clientCredentials instantiates a new V1beta1WebhooksPostResponse_authorization_clientCredentials and sets the default values. +func NewV1beta1WebhooksPostResponse_authorization_clientCredentials()(*V1beta1WebhooksPostResponse_authorization_clientCredentials) { + m := &V1beta1WebhooksPostResponse_authorization_clientCredentials{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksPostResponse_authorization_clientCredentialsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksPostResponse_authorization_clientCredentialsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksPostResponse_authorization_clientCredentials(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["secret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksPostResponse_authorization_clientCredentials_secretFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecret(val.(V1beta1WebhooksPostResponse_authorization_clientCredentials_secretable)) + } + return nil + } + return res +} +// GetSecret gets the secret property value. Reference to a Secret resource +// returns a V1beta1WebhooksPostResponse_authorization_clientCredentials_secretable when successful +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials) GetSecret()(V1beta1WebhooksPostResponse_authorization_clientCredentials_secretable) { + return m.secret +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("secret", m.GetSecret()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetSecret sets the secret property value. Reference to a Secret resource +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials) SetSecret(value V1beta1WebhooksPostResponse_authorization_clientCredentials_secretable)() { + m.secret = value +} +type V1beta1WebhooksPostResponse_authorization_clientCredentialsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSecret()(V1beta1WebhooksPostResponse_authorization_clientCredentials_secretable) + SetSecret(value V1beta1WebhooksPostResponse_authorization_clientCredentials_secretable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_authorization_escaped_client_credentials_escaped_secret.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_authorization_escaped_client_credentials_escaped_secret.go new file mode 100644 index 0000000..b9c0a38 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_authorization_escaped_client_credentials_escaped_secret.go @@ -0,0 +1,150 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksPostResponse_authorization_clientCredentials_secret reference to a Secret resource +type V1beta1WebhooksPostResponse_authorization_clientCredentials_secret struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The secret's unique identifier + id *string + // The secret's name + name *string + // The 'self' reference for this secret resource + resourceUri *string + // The type of this secret resource, 'data-services/secret' + typeEscaped *string +} +// NewV1beta1WebhooksPostResponse_authorization_clientCredentials_secret instantiates a new V1beta1WebhooksPostResponse_authorization_clientCredentials_secret and sets the default values. +func NewV1beta1WebhooksPostResponse_authorization_clientCredentials_secret()(*V1beta1WebhooksPostResponse_authorization_clientCredentials_secret) { + m := &V1beta1WebhooksPostResponse_authorization_clientCredentials_secret{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksPostResponse_authorization_clientCredentials_secretFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksPostResponse_authorization_clientCredentials_secretFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksPostResponse_authorization_clientCredentials_secret(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials_secret) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials_secret) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["resourceUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceUri(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetId gets the id property value. The secret's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials_secret) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The secret's name +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials_secret) GetName()(*string) { + return m.name +} +// GetResourceUri gets the resourceUri property value. The 'self' reference for this secret resource +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials_secret) GetResourceUri()(*string) { + return m.resourceUri +} +// GetTypeEscaped gets the type property value. The type of this secret resource, 'data-services/secret' +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials_secret) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials_secret) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials_secret) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The secret's unique identifier +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials_secret) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The secret's name +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials_secret) SetName(value *string)() { + m.name = value +} +// SetResourceUri sets the resourceUri property value. The 'self' reference for this secret resource +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials_secret) SetResourceUri(value *string)() { + m.resourceUri = value +} +// SetTypeEscaped sets the type property value. The type of this secret resource, 'data-services/secret' +func (m *V1beta1WebhooksPostResponse_authorization_clientCredentials_secret) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +type V1beta1WebhooksPostResponse_authorization_clientCredentials_secretable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + GetResourceUri()(*string) + GetTypeEscaped()(*string) + SetId(value *string)() + SetName(value *string)() + SetResourceUri(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_destinations.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_destinations.go new file mode 100644 index 0000000..a135ba2 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_destinations.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksPostResponse_destinations an object containing the publishing destination attributes +type V1beta1WebhooksPostResponse_destinations struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The cloudEventEndpoint property + cloudEventEndpoint V1beta1WebhooksPostResponse_destinations_cloudEventEndpointable +} +// NewV1beta1WebhooksPostResponse_destinations instantiates a new V1beta1WebhooksPostResponse_destinations and sets the default values. +func NewV1beta1WebhooksPostResponse_destinations()(*V1beta1WebhooksPostResponse_destinations) { + m := &V1beta1WebhooksPostResponse_destinations{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksPostResponse_destinationsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksPostResponse_destinationsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksPostResponse_destinations(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksPostResponse_destinations) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCloudEventEndpoint gets the cloudEventEndpoint property value. The cloudEventEndpoint property +// returns a V1beta1WebhooksPostResponse_destinations_cloudEventEndpointable when successful +func (m *V1beta1WebhooksPostResponse_destinations) GetCloudEventEndpoint()(V1beta1WebhooksPostResponse_destinations_cloudEventEndpointable) { + return m.cloudEventEndpoint +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksPostResponse_destinations) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["cloudEventEndpoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksPostResponse_destinations_cloudEventEndpointFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCloudEventEndpoint(val.(V1beta1WebhooksPostResponse_destinations_cloudEventEndpointable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksPostResponse_destinations) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("cloudEventEndpoint", m.GetCloudEventEndpoint()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksPostResponse_destinations) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCloudEventEndpoint sets the cloudEventEndpoint property value. The cloudEventEndpoint property +func (m *V1beta1WebhooksPostResponse_destinations) SetCloudEventEndpoint(value V1beta1WebhooksPostResponse_destinations_cloudEventEndpointable)() { + m.cloudEventEndpoint = value +} +type V1beta1WebhooksPostResponse_destinationsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCloudEventEndpoint()(V1beta1WebhooksPostResponse_destinations_cloudEventEndpointable) + SetCloudEventEndpoint(value V1beta1WebhooksPostResponse_destinations_cloudEventEndpointable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_destinations_escaped_cloud_event_endpoint.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_destinations_escaped_cloud_event_endpoint.go new file mode 100644 index 0000000..eecb82e --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_destinations_escaped_cloud_event_endpoint.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // An object containing the endpoint authentication attributes + authentication V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authenticationable + // The webhook endpoint address + endpoint *string +} +// NewV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint instantiates a new V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint and sets the default values. +func NewV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint()(*V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint) { + m := &V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksPostResponse_destinations_cloudEventEndpointFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksPostResponse_destinations_cloudEventEndpointFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAuthentication gets the authentication property value. An object containing the endpoint authentication attributes +// returns a V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authenticationable when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint) GetAuthentication()(V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authenticationable) { + return m.authentication +} +// GetEndpoint gets the endpoint property value. The webhook endpoint address +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint) GetEndpoint()(*string) { + return m.endpoint +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["authentication"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authenticationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAuthentication(val.(V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authenticationable)) + } + return nil + } + res["endpoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEndpoint(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("authentication", m.GetAuthentication()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("endpoint", m.GetEndpoint()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAuthentication sets the authentication property value. An object containing the endpoint authentication attributes +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint) SetAuthentication(value V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authenticationable)() { + m.authentication = value +} +// SetEndpoint sets the endpoint property value. The webhook endpoint address +func (m *V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint) SetEndpoint(value *string)() { + m.endpoint = value +} +type V1beta1WebhooksPostResponse_destinations_cloudEventEndpointable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAuthentication()(V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authenticationable) + GetEndpoint()(*string) + SetAuthentication(value V1beta1WebhooksPostResponse_destinations_cloudEventEndpoint_authenticationable)() + SetEndpoint(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_groups.go new file mode 100644 index 0000000..00a89df --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_groups.go @@ -0,0 +1,104 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksPostResponse_groups reference to a Group resource +type V1beta1WebhooksPostResponse_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The Group's unique identifier + id *string + // The Group's name + name *string +} +// NewV1beta1WebhooksPostResponse_groups instantiates a new V1beta1WebhooksPostResponse_groups and sets the default values. +func NewV1beta1WebhooksPostResponse_groups()(*V1beta1WebhooksPostResponse_groups) { + m := &V1beta1WebhooksPostResponse_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksPostResponse_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksPostResponse_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksPostResponse_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksPostResponse_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksPostResponse_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. The Group's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse_groups) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The Group's name +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksPostResponse_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksPostResponse_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The Group's unique identifier +func (m *V1beta1WebhooksPostResponse_groups) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The Group's name +func (m *V1beta1WebhooksPostResponse_groups) SetName(value *string)() { + m.name = value +} +type V1beta1WebhooksPostResponse_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + SetId(value *string)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_subscriptions.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_subscriptions.go new file mode 100644 index 0000000..e38d022 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_subscriptions.go @@ -0,0 +1,122 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksPostResponse_subscriptions an event subscription specification +type V1beta1WebhooksPostResponse_subscriptions struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // List of groups that is used to filter events.Only events associated with these groups arepublished to the webhook endpoint. + groups []V1beta1WebhooksPostResponse_subscriptions_groupsable + // The resourceType property + resourceType V1beta1WebhooksPostResponse_subscriptions_resourceTypeable +} +// NewV1beta1WebhooksPostResponse_subscriptions instantiates a new V1beta1WebhooksPostResponse_subscriptions and sets the default values. +func NewV1beta1WebhooksPostResponse_subscriptions()(*V1beta1WebhooksPostResponse_subscriptions) { + m := &V1beta1WebhooksPostResponse_subscriptions{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksPostResponse_subscriptionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksPostResponse_subscriptionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksPostResponse_subscriptions(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksPostResponse_subscriptions) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksPostResponse_subscriptions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateV1beta1WebhooksPostResponse_subscriptions_groupsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]V1beta1WebhooksPostResponse_subscriptions_groupsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(V1beta1WebhooksPostResponse_subscriptions_groupsable) + } + } + m.SetGroups(res) + } + return nil + } + res["resourceType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksPostResponse_subscriptions_resourceTypeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetResourceType(val.(V1beta1WebhooksPostResponse_subscriptions_resourceTypeable)) + } + return nil + } + return res +} +// GetGroups gets the groups property value. List of groups that is used to filter events.Only events associated with these groups arepublished to the webhook endpoint. +// returns a []V1beta1WebhooksPostResponse_subscriptions_groupsable when successful +func (m *V1beta1WebhooksPostResponse_subscriptions) GetGroups()([]V1beta1WebhooksPostResponse_subscriptions_groupsable) { + return m.groups +} +// GetResourceType gets the resourceType property value. The resourceType property +// returns a V1beta1WebhooksPostResponse_subscriptions_resourceTypeable when successful +func (m *V1beta1WebhooksPostResponse_subscriptions) GetResourceType()(V1beta1WebhooksPostResponse_subscriptions_resourceTypeable) { + return m.resourceType +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksPostResponse_subscriptions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("resourceType", m.GetResourceType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksPostResponse_subscriptions) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetGroups sets the groups property value. List of groups that is used to filter events.Only events associated with these groups arepublished to the webhook endpoint. +func (m *V1beta1WebhooksPostResponse_subscriptions) SetGroups(value []V1beta1WebhooksPostResponse_subscriptions_groupsable)() { + m.groups = value +} +// SetResourceType sets the resourceType property value. The resourceType property +func (m *V1beta1WebhooksPostResponse_subscriptions) SetResourceType(value V1beta1WebhooksPostResponse_subscriptions_resourceTypeable)() { + m.resourceType = value +} +type V1beta1WebhooksPostResponse_subscriptionsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetGroups()([]V1beta1WebhooksPostResponse_subscriptions_groupsable) + GetResourceType()(V1beta1WebhooksPostResponse_subscriptions_resourceTypeable) + SetGroups(value []V1beta1WebhooksPostResponse_subscriptions_groupsable)() + SetResourceType(value V1beta1WebhooksPostResponse_subscriptions_resourceTypeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_subscriptions_escaped_groups.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_subscriptions_escaped_groups.go new file mode 100644 index 0000000..fad8298 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_subscriptions_escaped_groups.go @@ -0,0 +1,104 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksPostResponse_subscriptions_groups reference to a Group resource +type V1beta1WebhooksPostResponse_subscriptions_groups struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The Group's unique identifier + id *string + // The Group's name + name *string +} +// NewV1beta1WebhooksPostResponse_subscriptions_groups instantiates a new V1beta1WebhooksPostResponse_subscriptions_groups and sets the default values. +func NewV1beta1WebhooksPostResponse_subscriptions_groups()(*V1beta1WebhooksPostResponse_subscriptions_groups) { + m := &V1beta1WebhooksPostResponse_subscriptions_groups{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksPostResponse_subscriptions_groupsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksPostResponse_subscriptions_groupsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksPostResponse_subscriptions_groups(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksPostResponse_subscriptions_groups) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksPostResponse_subscriptions_groups) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetId gets the id property value. The Group's unique identifier +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse_subscriptions_groups) GetId()(*string) { + return m.id +} +// GetName gets the name property value. The Group's name +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse_subscriptions_groups) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksPostResponse_subscriptions_groups) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksPostResponse_subscriptions_groups) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetId sets the id property value. The Group's unique identifier +func (m *V1beta1WebhooksPostResponse_subscriptions_groups) SetId(value *string)() { + m.id = value +} +// SetName sets the name property value. The Group's name +func (m *V1beta1WebhooksPostResponse_subscriptions_groups) SetName(value *string)() { + m.name = value +} +type V1beta1WebhooksPostResponse_subscriptions_groupsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetId()(*string) + GetName()(*string) + SetId(value *string)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_subscriptions_escaped_resource_type.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_subscriptions_escaped_resource_type.go new file mode 100644 index 0000000..207e587 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_post_response_escaped_subscriptions_escaped_resource_type.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksPostResponse_subscriptions_resourceType struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Identifies the resource type that is subscribed to + applicationResource *string + // Name of the resource type + name *string +} +// NewV1beta1WebhooksPostResponse_subscriptions_resourceType instantiates a new V1beta1WebhooksPostResponse_subscriptions_resourceType and sets the default values. +func NewV1beta1WebhooksPostResponse_subscriptions_resourceType()(*V1beta1WebhooksPostResponse_subscriptions_resourceType) { + m := &V1beta1WebhooksPostResponse_subscriptions_resourceType{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksPostResponse_subscriptions_resourceTypeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksPostResponse_subscriptions_resourceTypeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksPostResponse_subscriptions_resourceType(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksPostResponse_subscriptions_resourceType) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetApplicationResource gets the applicationResource property value. Identifies the resource type that is subscribed to +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse_subscriptions_resourceType) GetApplicationResource()(*string) { + return m.applicationResource +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksPostResponse_subscriptions_resourceType) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applicationResource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplicationResource(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the resource type +// returns a *string when successful +func (m *V1beta1WebhooksPostResponse_subscriptions_resourceType) GetName()(*string) { + return m.name +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksPostResponse_subscriptions_resourceType) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applicationResource", m.GetApplicationResource()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksPostResponse_subscriptions_resourceType) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetApplicationResource sets the applicationResource property value. Identifies the resource type that is subscribed to +func (m *V1beta1WebhooksPostResponse_subscriptions_resourceType) SetApplicationResource(value *string)() { + m.applicationResource = value +} +// SetName sets the name property value. Name of the resource type +func (m *V1beta1WebhooksPostResponse_subscriptions_resourceType) SetName(value *string)() { + m.name = value +} +type V1beta1WebhooksPostResponse_subscriptions_resourceTypeable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplicationResource()(*string) + GetName()(*string) + SetApplicationResource(value *string)() + SetName(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_request_builder.go new file mode 100644 index 0000000..9d4560b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_request_builder.go @@ -0,0 +1,224 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" +) + +// V1beta1WebhooksRequestBuilder builds and executes requests for operations under \data-services\v1beta1\webhooks +type V1beta1WebhooksRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1WebhooksRequestBuilderGetQueryParameters returns a list of Webhook resources that are visible to the user.The response can be paged by using the `limit` and `offset` query parameters +type V1beta1WebhooksRequestBuilderGetQueryParameters struct { + // Limit is the maximum number of items to include in the response.If not specified, The default limit is 10.Limit should be used in conjunction with `offset`.```offset=30&limit=10``` + Limit *int32 `uriparametername:"limit"` + // Offset is the number of items from the beginning of the result set tothe first item included in the response.If not specified, the default offset is 0.Offset should be used in conjunction with `limit`.```offset=30&limit=10``` + Offset *int32 `uriparametername:"offset"` +} +// V1beta1WebhooksRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1WebhooksRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *V1beta1WebhooksRequestBuilderGetQueryParameters +} +// V1beta1WebhooksRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1WebhooksRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ById gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.webhooks.item collection +// Deprecated: This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead. +// returns a *V1beta1WebhooksWebhooksItemRequestBuilder when successful +func (m *V1beta1WebhooksRequestBuilder) ById(id string)(*V1beta1WebhooksWebhooksItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if id != "" { + urlTplParams["id"] = id + } + return NewV1beta1WebhooksWebhooksItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ByIdGuid gets an item from the github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices.dataServices.v1beta1.webhooks.item collection +// returns a *V1beta1WebhooksWebhooksItemRequestBuilder when successful +func (m *V1beta1WebhooksRequestBuilder) ByIdGuid(id i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)(*V1beta1WebhooksWebhooksItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + urlTplParams["id"] = id.String() + return NewV1beta1WebhooksWebhooksItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewV1beta1WebhooksRequestBuilderInternal instantiates a new V1beta1WebhooksRequestBuilder and sets the default values. +func NewV1beta1WebhooksRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1WebhooksRequestBuilder) { + m := &V1beta1WebhooksRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/webhooks{?limit*,offset*}", pathParameters), + } + return m +} +// NewV1beta1WebhooksRequestBuilder instantiates a new V1beta1WebhooksRequestBuilder and sets the default values. +func NewV1beta1WebhooksRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1WebhooksRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1WebhooksRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns a list of Webhook resources that are visible to the user.The response can be paged by using the `limit` and `offset` query parameters +// Deprecated: This method is obsolete. Use GetAsWebhooksGetResponse instead. +// returns a V1beta1WebhooksResponseable when successful +// returns a V1beta1Webhooks400Error error when the service returns a 400 status code +// returns a V1beta1Webhooks401Error error when the service returns a 401 status code +// returns a V1beta1Webhooks403Error error when the service returns a 403 status code +// returns a V1beta1Webhooks500Error error when the service returns a 500 status code +// returns a V1beta1Webhooks503Error error when the service returns a 503 status code +func (m *V1beta1WebhooksRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1WebhooksRequestBuilderGetRequestConfiguration)(V1beta1WebhooksResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Webhooks400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Webhooks401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Webhooks403ErrorFromDiscriminatorValue, + "500": CreateV1beta1Webhooks500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Webhooks503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1WebhooksResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1WebhooksResponseable), nil +} +// GetAsWebhooksGetResponse returns a list of Webhook resources that are visible to the user.The response can be paged by using the `limit` and `offset` query parameters +// returns a V1beta1WebhooksGetResponseable when successful +// returns a V1beta1Webhooks400Error error when the service returns a 400 status code +// returns a V1beta1Webhooks401Error error when the service returns a 401 status code +// returns a V1beta1Webhooks403Error error when the service returns a 403 status code +// returns a V1beta1Webhooks500Error error when the service returns a 500 status code +// returns a V1beta1Webhooks503Error error when the service returns a 503 status code +func (m *V1beta1WebhooksRequestBuilder) GetAsWebhooksGetResponse(ctx context.Context, requestConfiguration *V1beta1WebhooksRequestBuilderGetRequestConfiguration)(V1beta1WebhooksGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Webhooks400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Webhooks401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Webhooks403ErrorFromDiscriminatorValue, + "500": CreateV1beta1Webhooks500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Webhooks503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1WebhooksGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1WebhooksGetResponseable), nil +} +// Post creates a Webhook. +// Deprecated: This method is obsolete. Use PostAsWebhooksPostResponse instead. +// returns a V1beta1WebhooksResponseable when successful +// returns a V1beta1Webhooks400Error error when the service returns a 400 status code +// returns a V1beta1Webhooks401Error error when the service returns a 401 status code +// returns a V1beta1Webhooks403Error error when the service returns a 403 status code +// returns a V1beta1Webhooks500Error error when the service returns a 500 status code +// returns a V1beta1Webhooks503Error error when the service returns a 503 status code +func (m *V1beta1WebhooksRequestBuilder) Post(ctx context.Context, body V1beta1WebhooksPostRequestBodyable, requestConfiguration *V1beta1WebhooksRequestBuilderPostRequestConfiguration)(V1beta1WebhooksResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Webhooks400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Webhooks401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Webhooks403ErrorFromDiscriminatorValue, + "500": CreateV1beta1Webhooks500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Webhooks503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1WebhooksResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1WebhooksResponseable), nil +} +// PostAsWebhooksPostResponse creates a Webhook. +// returns a V1beta1WebhooksPostResponseable when successful +// returns a V1beta1Webhooks400Error error when the service returns a 400 status code +// returns a V1beta1Webhooks401Error error when the service returns a 401 status code +// returns a V1beta1Webhooks403Error error when the service returns a 403 status code +// returns a V1beta1Webhooks500Error error when the service returns a 500 status code +// returns a V1beta1Webhooks503Error error when the service returns a 503 status code +func (m *V1beta1WebhooksRequestBuilder) PostAsWebhooksPostResponse(ctx context.Context, body V1beta1WebhooksPostRequestBodyable, requestConfiguration *V1beta1WebhooksRequestBuilderPostRequestConfiguration)(V1beta1WebhooksPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1Webhooks400ErrorFromDiscriminatorValue, + "401": CreateV1beta1Webhooks401ErrorFromDiscriminatorValue, + "403": CreateV1beta1Webhooks403ErrorFromDiscriminatorValue, + "500": CreateV1beta1Webhooks500ErrorFromDiscriminatorValue, + "503": CreateV1beta1Webhooks503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1WebhooksPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1WebhooksPostResponseable), nil +} +// TestConnection the testConnection property +// returns a *V1beta1WebhooksTestConnectionRequestBuilder when successful +func (m *V1beta1WebhooksRequestBuilder) TestConnection()(*V1beta1WebhooksTestConnectionRequestBuilder) { + return NewV1beta1WebhooksTestConnectionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation returns a list of Webhook resources that are visible to the user.The response can be paged by using the `limit` and `offset` query parameters +// returns a *RequestInformation when successful +func (m *V1beta1WebhooksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1WebhooksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation creates a Webhook. +// returns a *RequestInformation when successful +func (m *V1beta1WebhooksRequestBuilder) ToPostRequestInformation(ctx context.Context, body V1beta1WebhooksPostRequestBodyable, requestConfiguration *V1beta1WebhooksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1WebhooksRequestBuilder when successful +func (m *V1beta1WebhooksRequestBuilder) WithUrl(rawUrl string)(*V1beta1WebhooksRequestBuilder) { + return NewV1beta1WebhooksRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_response.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_response.go new file mode 100644 index 0000000..df65c80 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_response.go @@ -0,0 +1,28 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksResponse a list of webhooks +// Deprecated: This class is obsolete. Use V1beta1WebhooksGetResponseable instead. +type V1beta1WebhooksResponse struct { + V1beta1WebhooksGetResponse +} +// NewV1beta1WebhooksResponse instantiates a new V1beta1WebhooksResponse and sets the default values. +func NewV1beta1WebhooksResponse()(*V1beta1WebhooksResponse) { + m := &V1beta1WebhooksResponse{ + V1beta1WebhooksGetResponse: *NewV1beta1WebhooksGetResponse(), + } + return m +} +// CreateV1beta1WebhooksResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1WebhooksGetResponseable instead. +type V1beta1WebhooksResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1WebhooksGetResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection400_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection400_error.go new file mode 100644 index 0000000..0e285bd --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection400_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksTestConnection400Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: BAD_REQUEST, INVALID_PARAMETER + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksTestConnection400Error instantiates a new V1beta1WebhooksTestConnection400Error and sets the default values. +func NewV1beta1WebhooksTestConnection400Error()(*V1beta1WebhooksTestConnection400Error) { + m := &V1beta1WebhooksTestConnection400Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksTestConnection400ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksTestConnection400ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksTestConnection400Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksTestConnection400Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksTestConnection400Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: BAD_REQUEST, INVALID_PARAMETER +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksTestConnection400Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksTestConnection400Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksTestConnection400Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksTestConnection400Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: BAD_REQUEST, INVALID_PARAMETER +func (m *V1beta1WebhooksTestConnection400Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksTestConnection400Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection401_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection401_error.go new file mode 100644 index 0000000..621bb19 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection401_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksTestConnection401Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: UNAUTHENTICATED + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksTestConnection401Error instantiates a new V1beta1WebhooksTestConnection401Error and sets the default values. +func NewV1beta1WebhooksTestConnection401Error()(*V1beta1WebhooksTestConnection401Error) { + m := &V1beta1WebhooksTestConnection401Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksTestConnection401ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksTestConnection401ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksTestConnection401Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksTestConnection401Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksTestConnection401Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: UNAUTHENTICATED +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksTestConnection401Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksTestConnection401Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksTestConnection401Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksTestConnection401Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: UNAUTHENTICATED +func (m *V1beta1WebhooksTestConnection401Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksTestConnection401Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection403_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection403_error.go new file mode 100644 index 0000000..19c868b --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection403_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksTestConnection403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: FORBIDDEN + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksTestConnection403Error instantiates a new V1beta1WebhooksTestConnection403Error and sets the default values. +func NewV1beta1WebhooksTestConnection403Error()(*V1beta1WebhooksTestConnection403Error) { + m := &V1beta1WebhooksTestConnection403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksTestConnection403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksTestConnection403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksTestConnection403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksTestConnection403Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksTestConnection403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: FORBIDDEN +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksTestConnection403Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksTestConnection403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksTestConnection403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksTestConnection403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: FORBIDDEN +func (m *V1beta1WebhooksTestConnection403Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksTestConnection403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection500_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection500_error.go new file mode 100644 index 0000000..4741778 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection500_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksTestConnection500Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: INTERNAL_ERROR + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksTestConnection500Error instantiates a new V1beta1WebhooksTestConnection500Error and sets the default values. +func NewV1beta1WebhooksTestConnection500Error()(*V1beta1WebhooksTestConnection500Error) { + m := &V1beta1WebhooksTestConnection500Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksTestConnection500ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksTestConnection500ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksTestConnection500Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksTestConnection500Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksTestConnection500Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: INTERNAL_ERROR +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksTestConnection500Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksTestConnection500Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksTestConnection500Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksTestConnection500Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: INTERNAL_ERROR +func (m *V1beta1WebhooksTestConnection500Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksTestConnection500Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection503_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection503_error.go new file mode 100644 index 0000000..359077f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection503_error.go @@ -0,0 +1,88 @@ +package dataservices + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksTestConnection503Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Possible values: SERVICE_UNAVAILABLE + errorCode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable +} +// NewV1beta1WebhooksTestConnection503Error instantiates a new V1beta1WebhooksTestConnection503Error and sets the default values. +func NewV1beta1WebhooksTestConnection503Error()(*V1beta1WebhooksTestConnection503Error) { + m := &V1beta1WebhooksTestConnection503Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksTestConnection503ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksTestConnection503ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksTestConnection503Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *V1beta1WebhooksTestConnection503Error) Error()(string) { + return m.ApiError.Error() +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksTestConnection503Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetErrorCode gets the errorCode property value. Possible values: SERVICE_UNAVAILABLE +// returns a UntypedNodeable when successful +func (m *V1beta1WebhooksTestConnection503Error) GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksTestConnection503Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksTestConnection503Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksTestConnection503Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetErrorCode sets the errorCode property value. Possible values: SERVICE_UNAVAILABLE +func (m *V1beta1WebhooksTestConnection503Error) SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { + m.errorCode = value +} +type V1beta1WebhooksTestConnection503Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetErrorCode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) + SetErrorCode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_request_body.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_request_body.go new file mode 100644 index 0000000..4dca32f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_request_body.go @@ -0,0 +1,80 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksTestConnectionPostRequestBody struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // An object containing the publishing destination attributes + destination V1beta1WebhooksTestConnectionPostRequestBody_destinationable +} +// NewV1beta1WebhooksTestConnectionPostRequestBody instantiates a new V1beta1WebhooksTestConnectionPostRequestBody and sets the default values. +func NewV1beta1WebhooksTestConnectionPostRequestBody()(*V1beta1WebhooksTestConnectionPostRequestBody) { + m := &V1beta1WebhooksTestConnectionPostRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksTestConnectionPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksTestConnectionPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksTestConnectionPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDestination gets the destination property value. An object containing the publishing destination attributes +// returns a V1beta1WebhooksTestConnectionPostRequestBody_destinationable when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody) GetDestination()(V1beta1WebhooksTestConnectionPostRequestBody_destinationable) { + return m.destination +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["destination"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksTestConnectionPostRequestBody_destinationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetDestination(val.(V1beta1WebhooksTestConnectionPostRequestBody_destinationable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksTestConnectionPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("destination", m.GetDestination()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksTestConnectionPostRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDestination sets the destination property value. An object containing the publishing destination attributes +func (m *V1beta1WebhooksTestConnectionPostRequestBody) SetDestination(value V1beta1WebhooksTestConnectionPostRequestBody_destinationable)() { + m.destination = value +} +type V1beta1WebhooksTestConnectionPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDestination()(V1beta1WebhooksTestConnectionPostRequestBody_destinationable) + SetDestination(value V1beta1WebhooksTestConnectionPostRequestBody_destinationable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_request_body_escaped_destination.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_request_body_escaped_destination.go new file mode 100644 index 0000000..1361669 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_request_body_escaped_destination.go @@ -0,0 +1,81 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// V1beta1WebhooksTestConnectionPostRequestBody_destination an object containing the publishing destination attributes +type V1beta1WebhooksTestConnectionPostRequestBody_destination struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The cloudEventEndpoint property + cloudEventEndpoint V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpointable +} +// NewV1beta1WebhooksTestConnectionPostRequestBody_destination instantiates a new V1beta1WebhooksTestConnectionPostRequestBody_destination and sets the default values. +func NewV1beta1WebhooksTestConnectionPostRequestBody_destination()(*V1beta1WebhooksTestConnectionPostRequestBody_destination) { + m := &V1beta1WebhooksTestConnectionPostRequestBody_destination{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksTestConnectionPostRequestBody_destinationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksTestConnectionPostRequestBody_destinationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksTestConnectionPostRequestBody_destination(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetCloudEventEndpoint gets the cloudEventEndpoint property value. The cloudEventEndpoint property +// returns a V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpointable when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination) GetCloudEventEndpoint()(V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpointable) { + return m.cloudEventEndpoint +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["cloudEventEndpoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpointFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCloudEventEndpoint(val.(V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpointable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("cloudEventEndpoint", m.GetCloudEventEndpoint()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetCloudEventEndpoint sets the cloudEventEndpoint property value. The cloudEventEndpoint property +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination) SetCloudEventEndpoint(value V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpointable)() { + m.cloudEventEndpoint = value +} +type V1beta1WebhooksTestConnectionPostRequestBody_destinationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCloudEventEndpoint()(V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpointable) + SetCloudEventEndpoint(value V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpointable)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_request_body_escaped_destination_escaped_cloud_event_endpoint.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_request_body_escaped_destination_escaped_cloud_event_endpoint.go new file mode 100644 index 0000000..cad26ba --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_request_body_escaped_destination_escaped_cloud_event_endpoint.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // An object containing the endpoint authentication attributes + authentication V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authenticationable + // The webhook endpoint address + endpoint *string +} +// NewV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint instantiates a new V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint and sets the default values. +func NewV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint()(*V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint) { + m := &V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpointFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpointFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAuthentication gets the authentication property value. An object containing the endpoint authentication attributes +// returns a V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authenticationable when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint) GetAuthentication()(V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authenticationable) { + return m.authentication +} +// GetEndpoint gets the endpoint property value. The webhook endpoint address +// returns a *string when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint) GetEndpoint()(*string) { + return m.endpoint +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["authentication"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authenticationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAuthentication(val.(V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authenticationable)) + } + return nil + } + res["endpoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEndpoint(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("authentication", m.GetAuthentication()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("endpoint", m.GetEndpoint()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAuthentication sets the authentication property value. An object containing the endpoint authentication attributes +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint) SetAuthentication(value V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authenticationable)() { + m.authentication = value +} +// SetEndpoint sets the endpoint property value. The webhook endpoint address +func (m *V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint) SetEndpoint(value *string)() { + m.endpoint = value +} +type V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpointable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAuthentication()(V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authenticationable) + GetEndpoint()(*string) + SetAuthentication(value V1beta1WebhooksTestConnectionPostRequestBody_destination_cloudEventEndpoint_authenticationable)() + SetEndpoint(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_response.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_response.go new file mode 100644 index 0000000..9a9fa1f --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_response.go @@ -0,0 +1,109 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksTestConnectionPostResponse struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The error property + error V1beta1WebhooksTestConnectionPostResponse_errorable + // Indicates whether or not connection to the remote endpoint succeeded. + succeeded *bool +} +// NewV1beta1WebhooksTestConnectionPostResponse instantiates a new V1beta1WebhooksTestConnectionPostResponse and sets the default values. +func NewV1beta1WebhooksTestConnectionPostResponse()(*V1beta1WebhooksTestConnectionPostResponse) { + m := &V1beta1WebhooksTestConnectionPostResponse{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksTestConnectionPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksTestConnectionPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksTestConnectionPostResponse(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksTestConnectionPostResponse) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetError gets the error property value. The error property +// returns a V1beta1WebhooksTestConnectionPostResponse_errorable when successful +func (m *V1beta1WebhooksTestConnectionPostResponse) GetError()(V1beta1WebhooksTestConnectionPostResponse_errorable) { + return m.error +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksTestConnectionPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["error"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateV1beta1WebhooksTestConnectionPostResponse_errorFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetError(val.(V1beta1WebhooksTestConnectionPostResponse_errorable)) + } + return nil + } + res["succeeded"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetSucceeded(val) + } + return nil + } + return res +} +// GetSucceeded gets the succeeded property value. Indicates whether or not connection to the remote endpoint succeeded. +// returns a *bool when successful +func (m *V1beta1WebhooksTestConnectionPostResponse) GetSucceeded()(*bool) { + return m.succeeded +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksTestConnectionPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("error", m.GetError()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("succeeded", m.GetSucceeded()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksTestConnectionPostResponse) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetError sets the error property value. The error property +func (m *V1beta1WebhooksTestConnectionPostResponse) SetError(value V1beta1WebhooksTestConnectionPostResponse_errorable)() { + m.error = value +} +// SetSucceeded sets the succeeded property value. Indicates whether or not connection to the remote endpoint succeeded. +func (m *V1beta1WebhooksTestConnectionPostResponse) SetSucceeded(value *bool)() { + m.succeeded = value +} +type V1beta1WebhooksTestConnectionPostResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetError()(V1beta1WebhooksTestConnectionPostResponse_errorable) + GetSucceeded()(*bool) + SetError(value V1beta1WebhooksTestConnectionPostResponse_errorable)() + SetSucceeded(value *bool)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_response_escaped_error.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_response_escaped_error.go new file mode 100644 index 0000000..15876b3 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_post_response_escaped_error.go @@ -0,0 +1,167 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type V1beta1WebhooksTestConnectionPostResponse_error struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // A unique identifier for the request + debugId *string + // A machine friendly identifier for the error response + errorCode *string + // The HTTP status code of the response + httpStatusCode *int32 + // A user-friendly error message + message *string +} +// NewV1beta1WebhooksTestConnectionPostResponse_error instantiates a new V1beta1WebhooksTestConnectionPostResponse_error and sets the default values. +func NewV1beta1WebhooksTestConnectionPostResponse_error()(*V1beta1WebhooksTestConnectionPostResponse_error) { + m := &V1beta1WebhooksTestConnectionPostResponse_error{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateV1beta1WebhooksTestConnectionPostResponse_errorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksTestConnectionPostResponse_errorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksTestConnectionPostResponse_error(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *V1beta1WebhooksTestConnectionPostResponse_error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDebugId gets the debugId property value. A unique identifier for the request +// returns a *string when successful +func (m *V1beta1WebhooksTestConnectionPostResponse_error) GetDebugId()(*string) { + return m.debugId +} +// GetErrorCode gets the errorCode property value. A machine friendly identifier for the error response +// returns a *string when successful +func (m *V1beta1WebhooksTestConnectionPostResponse_error) GetErrorCode()(*string) { + return m.errorCode +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *V1beta1WebhooksTestConnectionPostResponse_error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["debugId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDebugId(val) + } + return nil + } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val) + } + return nil + } + res["httpStatusCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetHttpStatusCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetHttpStatusCode gets the httpStatusCode property value. The HTTP status code of the response +// returns a *int32 when successful +func (m *V1beta1WebhooksTestConnectionPostResponse_error) GetHttpStatusCode()(*int32) { + return m.httpStatusCode +} +// GetMessage gets the message property value. A user-friendly error message +// returns a *string when successful +func (m *V1beta1WebhooksTestConnectionPostResponse_error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *V1beta1WebhooksTestConnectionPostResponse_error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("debugId", m.GetDebugId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("errorCode", m.GetErrorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("httpStatusCode", m.GetHttpStatusCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *V1beta1WebhooksTestConnectionPostResponse_error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDebugId sets the debugId property value. A unique identifier for the request +func (m *V1beta1WebhooksTestConnectionPostResponse_error) SetDebugId(value *string)() { + m.debugId = value +} +// SetErrorCode sets the errorCode property value. A machine friendly identifier for the error response +func (m *V1beta1WebhooksTestConnectionPostResponse_error) SetErrorCode(value *string)() { + m.errorCode = value +} +// SetHttpStatusCode sets the httpStatusCode property value. The HTTP status code of the response +func (m *V1beta1WebhooksTestConnectionPostResponse_error) SetHttpStatusCode(value *int32)() { + m.httpStatusCode = value +} +// SetMessage sets the message property value. A user-friendly error message +func (m *V1beta1WebhooksTestConnectionPostResponse_error) SetMessage(value *string)() { + m.message = value +} +type V1beta1WebhooksTestConnectionPostResponse_errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDebugId()(*string) + GetErrorCode()(*string) + GetHttpStatusCode()(*int32) + GetMessage()(*string) + SetDebugId(value *string)() + SetErrorCode(value *string)() + SetHttpStatusCode(value *int32)() + SetMessage(value *string)() +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_request_builder.go new file mode 100644 index 0000000..e3c66c8 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_request_builder.go @@ -0,0 +1,108 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1WebhooksTestConnectionRequestBuilder builds and executes requests for operations under \data-services\v1beta1\webhooks\test-connection +type V1beta1WebhooksTestConnectionRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1WebhooksTestConnectionRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1WebhooksTestConnectionRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1WebhooksTestConnectionRequestBuilderInternal instantiates a new V1beta1WebhooksTestConnectionRequestBuilder and sets the default values. +func NewV1beta1WebhooksTestConnectionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1WebhooksTestConnectionRequestBuilder) { + m := &V1beta1WebhooksTestConnectionRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/webhooks/test-connection", pathParameters), + } + return m +} +// NewV1beta1WebhooksTestConnectionRequestBuilder instantiates a new V1beta1WebhooksTestConnectionRequestBuilder and sets the default values. +func NewV1beta1WebhooksTestConnectionRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1WebhooksTestConnectionRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1WebhooksTestConnectionRequestBuilderInternal(urlParams, requestAdapter) +} +// Post tests the connection to a webhook endpoint to ensure that the destinationparameters are set correctly. +// Deprecated: This method is obsolete. Use PostAsTestConnectionPostResponse instead. +// returns a V1beta1WebhooksTestConnectionResponseable when successful +// returns a V1beta1WebhooksTestConnection400Error error when the service returns a 400 status code +// returns a V1beta1WebhooksTestConnection401Error error when the service returns a 401 status code +// returns a V1beta1WebhooksTestConnection403Error error when the service returns a 403 status code +// returns a V1beta1WebhooksTestConnection500Error error when the service returns a 500 status code +// returns a V1beta1WebhooksTestConnection503Error error when the service returns a 503 status code +func (m *V1beta1WebhooksTestConnectionRequestBuilder) Post(ctx context.Context, body V1beta1WebhooksTestConnectionPostRequestBodyable, requestConfiguration *V1beta1WebhooksTestConnectionRequestBuilderPostRequestConfiguration)(V1beta1WebhooksTestConnectionResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1WebhooksTestConnection400ErrorFromDiscriminatorValue, + "401": CreateV1beta1WebhooksTestConnection401ErrorFromDiscriminatorValue, + "403": CreateV1beta1WebhooksTestConnection403ErrorFromDiscriminatorValue, + "500": CreateV1beta1WebhooksTestConnection500ErrorFromDiscriminatorValue, + "503": CreateV1beta1WebhooksTestConnection503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1WebhooksTestConnectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1WebhooksTestConnectionResponseable), nil +} +// PostAsTestConnectionPostResponse tests the connection to a webhook endpoint to ensure that the destinationparameters are set correctly. +// returns a V1beta1WebhooksTestConnectionPostResponseable when successful +// returns a V1beta1WebhooksTestConnection400Error error when the service returns a 400 status code +// returns a V1beta1WebhooksTestConnection401Error error when the service returns a 401 status code +// returns a V1beta1WebhooksTestConnection403Error error when the service returns a 403 status code +// returns a V1beta1WebhooksTestConnection500Error error when the service returns a 500 status code +// returns a V1beta1WebhooksTestConnection503Error error when the service returns a 503 status code +func (m *V1beta1WebhooksTestConnectionRequestBuilder) PostAsTestConnectionPostResponse(ctx context.Context, body V1beta1WebhooksTestConnectionPostRequestBodyable, requestConfiguration *V1beta1WebhooksTestConnectionRequestBuilderPostRequestConfiguration)(V1beta1WebhooksTestConnectionPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1WebhooksTestConnection400ErrorFromDiscriminatorValue, + "401": CreateV1beta1WebhooksTestConnection401ErrorFromDiscriminatorValue, + "403": CreateV1beta1WebhooksTestConnection403ErrorFromDiscriminatorValue, + "500": CreateV1beta1WebhooksTestConnection500ErrorFromDiscriminatorValue, + "503": CreateV1beta1WebhooksTestConnection503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1WebhooksTestConnectionPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1WebhooksTestConnectionPostResponseable), nil +} +// ToPostRequestInformation tests the connection to a webhook endpoint to ensure that the destinationparameters are set correctly. +// returns a *RequestInformation when successful +func (m *V1beta1WebhooksTestConnectionRequestBuilder) ToPostRequestInformation(ctx context.Context, body V1beta1WebhooksTestConnectionPostRequestBodyable, requestConfiguration *V1beta1WebhooksTestConnectionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1WebhooksTestConnectionRequestBuilder when successful +func (m *V1beta1WebhooksTestConnectionRequestBuilder) WithUrl(rawUrl string)(*V1beta1WebhooksTestConnectionRequestBuilder) { + return NewV1beta1WebhooksTestConnectionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_response.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_response.go new file mode 100644 index 0000000..cba7e14 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_test_connection_response.go @@ -0,0 +1,27 @@ +package dataservices + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use V1beta1WebhooksTestConnectionPostResponseable instead. +type V1beta1WebhooksTestConnectionResponse struct { + V1beta1WebhooksTestConnectionPostResponse +} +// NewV1beta1WebhooksTestConnectionResponse instantiates a new V1beta1WebhooksTestConnectionResponse and sets the default values. +func NewV1beta1WebhooksTestConnectionResponse()(*V1beta1WebhooksTestConnectionResponse) { + m := &V1beta1WebhooksTestConnectionResponse{ + V1beta1WebhooksTestConnectionPostResponse: *NewV1beta1WebhooksTestConnectionPostResponse(), + } + return m +} +// CreateV1beta1WebhooksTestConnectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateV1beta1WebhooksTestConnectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewV1beta1WebhooksTestConnectionResponse(), nil +} +// Deprecated: This class is obsolete. Use V1beta1WebhooksTestConnectionPostResponseable instead. +type V1beta1WebhooksTestConnectionResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + V1beta1WebhooksTestConnectionPostResponseable +} diff --git a/internal/sdk/dataservices/dataservices/v1beta1_webhooks_webhooks_item_request_builder.go b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_webhooks_item_request_builder.go new file mode 100644 index 0000000..1dfe002 --- /dev/null +++ b/internal/sdk/dataservices/dataservices/v1beta1_webhooks_webhooks_item_request_builder.go @@ -0,0 +1,235 @@ +package dataservices + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// V1beta1WebhooksWebhooksItemRequestBuilder builds and executes requests for operations under \data-services\v1beta1\webhooks\{id} +type V1beta1WebhooksWebhooksItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// V1beta1WebhooksWebhooksItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1WebhooksWebhooksItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// V1beta1WebhooksWebhooksItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1WebhooksWebhooksItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// V1beta1WebhooksWebhooksItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type V1beta1WebhooksWebhooksItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewV1beta1WebhooksWebhooksItemRequestBuilderInternal instantiates a new V1beta1WebhooksWebhooksItemRequestBuilder and sets the default values. +func NewV1beta1WebhooksWebhooksItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1WebhooksWebhooksItemRequestBuilder) { + m := &V1beta1WebhooksWebhooksItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/data-services/v1beta1/webhooks/{id}", pathParameters), + } + return m +} +// NewV1beta1WebhooksWebhooksItemRequestBuilder instantiates a new V1beta1WebhooksWebhooksItemRequestBuilder and sets the default values. +func NewV1beta1WebhooksWebhooksItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*V1beta1WebhooksWebhooksItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewV1beta1WebhooksWebhooksItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete deletes the webhook having the given unique identifier. +// returns a V1beta1WebhooksItemWebhooks400Error error when the service returns a 400 status code +// returns a V1beta1WebhooksItemWebhooks401Error error when the service returns a 401 status code +// returns a V1beta1WebhooksItemWebhooks403Error error when the service returns a 403 status code +// returns a V1beta1WebhooksItemWebhooks404Error error when the service returns a 404 status code +// returns a V1beta1WebhooksItemWebhooks500Error error when the service returns a 500 status code +// returns a V1beta1WebhooksItemWebhooks503Error error when the service returns a 503 status code +func (m *V1beta1WebhooksWebhooksItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *V1beta1WebhooksWebhooksItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1WebhooksItemWebhooks400ErrorFromDiscriminatorValue, + "401": CreateV1beta1WebhooksItemWebhooks401ErrorFromDiscriminatorValue, + "403": CreateV1beta1WebhooksItemWebhooks403ErrorFromDiscriminatorValue, + "404": CreateV1beta1WebhooksItemWebhooks404ErrorFromDiscriminatorValue, + "500": CreateV1beta1WebhooksItemWebhooks500ErrorFromDiscriminatorValue, + "503": CreateV1beta1WebhooksItemWebhooks503ErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns details of a webhook having the given unique identifier. +// Deprecated: This method is obsolete. Use GetAsWebhooksGetResponse instead. +// returns a V1beta1WebhooksItemWebhooksResponseable when successful +// returns a V1beta1WebhooksItemWebhooks400Error error when the service returns a 400 status code +// returns a V1beta1WebhooksItemWebhooks401Error error when the service returns a 401 status code +// returns a V1beta1WebhooksItemWebhooks403Error error when the service returns a 403 status code +// returns a V1beta1WebhooksItemWebhooks404Error error when the service returns a 404 status code +// returns a V1beta1WebhooksItemWebhooks500Error error when the service returns a 500 status code +// returns a V1beta1WebhooksItemWebhooks503Error error when the service returns a 503 status code +func (m *V1beta1WebhooksWebhooksItemRequestBuilder) Get(ctx context.Context, requestConfiguration *V1beta1WebhooksWebhooksItemRequestBuilderGetRequestConfiguration)(V1beta1WebhooksItemWebhooksResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1WebhooksItemWebhooks400ErrorFromDiscriminatorValue, + "401": CreateV1beta1WebhooksItemWebhooks401ErrorFromDiscriminatorValue, + "403": CreateV1beta1WebhooksItemWebhooks403ErrorFromDiscriminatorValue, + "404": CreateV1beta1WebhooksItemWebhooks404ErrorFromDiscriminatorValue, + "500": CreateV1beta1WebhooksItemWebhooks500ErrorFromDiscriminatorValue, + "503": CreateV1beta1WebhooksItemWebhooks503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1WebhooksItemWebhooksResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1WebhooksItemWebhooksResponseable), nil +} +// GetAsWebhooksGetResponse returns details of a webhook having the given unique identifier. +// returns a V1beta1WebhooksItemWebhooksGetResponseable when successful +// returns a V1beta1WebhooksItemWebhooks400Error error when the service returns a 400 status code +// returns a V1beta1WebhooksItemWebhooks401Error error when the service returns a 401 status code +// returns a V1beta1WebhooksItemWebhooks403Error error when the service returns a 403 status code +// returns a V1beta1WebhooksItemWebhooks404Error error when the service returns a 404 status code +// returns a V1beta1WebhooksItemWebhooks500Error error when the service returns a 500 status code +// returns a V1beta1WebhooksItemWebhooks503Error error when the service returns a 503 status code +func (m *V1beta1WebhooksWebhooksItemRequestBuilder) GetAsWebhooksGetResponse(ctx context.Context, requestConfiguration *V1beta1WebhooksWebhooksItemRequestBuilderGetRequestConfiguration)(V1beta1WebhooksItemWebhooksGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1WebhooksItemWebhooks400ErrorFromDiscriminatorValue, + "401": CreateV1beta1WebhooksItemWebhooks401ErrorFromDiscriminatorValue, + "403": CreateV1beta1WebhooksItemWebhooks403ErrorFromDiscriminatorValue, + "404": CreateV1beta1WebhooksItemWebhooks404ErrorFromDiscriminatorValue, + "500": CreateV1beta1WebhooksItemWebhooks500ErrorFromDiscriminatorValue, + "503": CreateV1beta1WebhooksItemWebhooks503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1WebhooksItemWebhooksGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1WebhooksItemWebhooksGetResponseable), nil +} +// Patch updates the webhook having the given unique identifier.Request body format is [RFC-7396 JSON Merge Patch](https://datatracker.ietf.org/doc/html/rfc7396). +// Deprecated: This method is obsolete. Use PatchAsWebhooksPatchResponse instead. +// returns a V1beta1WebhooksItemWebhooksResponseable when successful +// returns a V1beta1WebhooksItemWebhooks400Error error when the service returns a 400 status code +// returns a V1beta1WebhooksItemWebhooks401Error error when the service returns a 401 status code +// returns a V1beta1WebhooksItemWebhooks403Error error when the service returns a 403 status code +// returns a V1beta1WebhooksItemWebhooks404Error error when the service returns a 404 status code +// returns a V1beta1WebhooksItemWebhooks500Error error when the service returns a 500 status code +// returns a V1beta1WebhooksItemWebhooks503Error error when the service returns a 503 status code +func (m *V1beta1WebhooksWebhooksItemRequestBuilder) Patch(ctx context.Context, body V1beta1WebhooksItemWebhooksPatchRequestBodyable, requestConfiguration *V1beta1WebhooksWebhooksItemRequestBuilderPatchRequestConfiguration)(V1beta1WebhooksItemWebhooksResponseable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1WebhooksItemWebhooks400ErrorFromDiscriminatorValue, + "401": CreateV1beta1WebhooksItemWebhooks401ErrorFromDiscriminatorValue, + "403": CreateV1beta1WebhooksItemWebhooks403ErrorFromDiscriminatorValue, + "404": CreateV1beta1WebhooksItemWebhooks404ErrorFromDiscriminatorValue, + "500": CreateV1beta1WebhooksItemWebhooks500ErrorFromDiscriminatorValue, + "503": CreateV1beta1WebhooksItemWebhooks503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1WebhooksItemWebhooksResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1WebhooksItemWebhooksResponseable), nil +} +// PatchAsWebhooksPatchResponse updates the webhook having the given unique identifier.Request body format is [RFC-7396 JSON Merge Patch](https://datatracker.ietf.org/doc/html/rfc7396). +// returns a V1beta1WebhooksItemWebhooksPatchResponseable when successful +// returns a V1beta1WebhooksItemWebhooks400Error error when the service returns a 400 status code +// returns a V1beta1WebhooksItemWebhooks401Error error when the service returns a 401 status code +// returns a V1beta1WebhooksItemWebhooks403Error error when the service returns a 403 status code +// returns a V1beta1WebhooksItemWebhooks404Error error when the service returns a 404 status code +// returns a V1beta1WebhooksItemWebhooks500Error error when the service returns a 500 status code +// returns a V1beta1WebhooksItemWebhooks503Error error when the service returns a 503 status code +func (m *V1beta1WebhooksWebhooksItemRequestBuilder) PatchAsWebhooksPatchResponse(ctx context.Context, body V1beta1WebhooksItemWebhooksPatchRequestBodyable, requestConfiguration *V1beta1WebhooksWebhooksItemRequestBuilderPatchRequestConfiguration)(V1beta1WebhooksItemWebhooksPatchResponseable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "400": CreateV1beta1WebhooksItemWebhooks400ErrorFromDiscriminatorValue, + "401": CreateV1beta1WebhooksItemWebhooks401ErrorFromDiscriminatorValue, + "403": CreateV1beta1WebhooksItemWebhooks403ErrorFromDiscriminatorValue, + "404": CreateV1beta1WebhooksItemWebhooks404ErrorFromDiscriminatorValue, + "500": CreateV1beta1WebhooksItemWebhooks500ErrorFromDiscriminatorValue, + "503": CreateV1beta1WebhooksItemWebhooks503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1beta1WebhooksItemWebhooksPatchResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(V1beta1WebhooksItemWebhooksPatchResponseable), nil +} +// ToDeleteRequestInformation deletes the webhook having the given unique identifier. +// returns a *RequestInformation when successful +func (m *V1beta1WebhooksWebhooksItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *V1beta1WebhooksWebhooksItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation returns details of a webhook having the given unique identifier. +// returns a *RequestInformation when successful +func (m *V1beta1WebhooksWebhooksItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1beta1WebhooksWebhooksItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation updates the webhook having the given unique identifier.Request body format is [RFC-7396 JSON Merge Patch](https://datatracker.ietf.org/doc/html/rfc7396). +// returns a *RequestInformation when successful +func (m *V1beta1WebhooksWebhooksItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body V1beta1WebhooksItemWebhooksPatchRequestBodyable, requestConfiguration *V1beta1WebhooksWebhooksItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/merge-patch+json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *V1beta1WebhooksWebhooksItemRequestBuilder when successful +func (m *V1beta1WebhooksWebhooksItemRequestBuilder) WithUrl(rawUrl string)(*V1beta1WebhooksWebhooksItemRequestBuilder) { + return NewV1beta1WebhooksWebhooksItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/internal/sdk/dataservices/kiota-lock.json b/internal/sdk/dataservices/kiota-lock.json new file mode 100644 index 0000000..68d6318 --- /dev/null +++ b/internal/sdk/dataservices/kiota-lock.json @@ -0,0 +1,34 @@ +{ + "descriptionHash": "E0B2B9AE6EB68E1442C97CAEE91841C18A6CF4BC38207FF979155F2DE4E0E073B5951485919A2AD3914CD9D3BE3156FA5C7EAE2EF77170F58D1A99D04C0A7EC5", + "descriptionLocation": "../../../../in.yaml", + "lockFileVersion": "1.0.0", + "kiotaVersion": "1.21.0", + "clientClassName": "ApiClient", + "typeAccessModifier": "Public", + "clientNamespaceName": "github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/dataservices", + "language": "Go", + "usesBackingStore": false, + "excludeBackwardCompatible": false, + "includeAdditionalData": true, + "disableSSLValidation": false, + "serializers": [ + "Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory" + ], + "deserializers": [ + "Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory", + "Microsoft.Kiota.Serialization.Text.TextParseNodeFactory", + "Microsoft.Kiota.Serialization.Form.FormParseNodeFactory" + ], + "structuredMimeTypes": [ + "application/json", + "text/plain;q=0.9", + "application/x-www-form-urlencoded;q=0.2", + "multipart/form-data;q=0.1" + ], + "includePatterns": [], + "excludePatterns": [], + "disabledValidationRules": [] +} \ No newline at end of file diff --git a/internal/sdk/systems/kiota-lock.json b/internal/sdk/systems/kiota-lock.json index 72279e4..a7d9f71 100644 --- a/internal/sdk/systems/kiota-lock.json +++ b/internal/sdk/systems/kiota-lock.json @@ -2,8 +2,9 @@ "descriptionHash": "612642230D5956BFC5E423E204E87C965141AE9A113FEAA06AE7F6C234220A465EB8E24C42F4BDEC32F4649301B7737115242C8551E9EFCE7F8CDB786885FF74", "descriptionLocation": "../../../../in.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.16.0", + "kiotaVersion": "1.21.0", "clientClassName": "ApiClient", + "typeAccessModifier": "Public", "clientNamespaceName": "github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/systems", "language": "Go", "usesBackingStore": false, diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_hypervisor_clusters_current_software_catalog.go b/internal/sdk/systems/privatecloudbusiness/06adedc07dc4e656e5e53b8e22dec11aa89854d9315da5fac348083c8c7e33c2.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_hypervisor_clusters_current_software_catalog.go rename to internal/sdk/systems/privatecloudbusiness/06adedc07dc4e656e5e53b8e22dec11aa89854d9315da5fac348083c8c7e33c2.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_hypervisor_clusters_unavailable_software_catalogs.go b/internal/sdk/systems/privatecloudbusiness/0730660299ca6de99f1b70cc20c2694f27302958156c212d03f26eccc33c1425.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_hypervisor_clusters_unavailable_software_catalogs.go rename to internal/sdk/systems/privatecloudbusiness/0730660299ca6de99f1b70cc20c2694f27302958156c212d03f26eccc33c1425.go diff --git a/internal/sdk/systems/privatecloudbusiness/edc76ef0b1e151cace7f263a7784da63e9b32e04e8a2e188531f001397046857.go b/internal/sdk/systems/privatecloudbusiness/09b4acc373d9b448c027845fb9279dba4f5adb8f23d69bca918c648350149f08.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/edc76ef0b1e151cace7f263a7784da63e9b32e04e8a2e188531f001397046857.go rename to internal/sdk/systems/privatecloudbusiness/09b4acc373d9b448c027845fb9279dba4f5adb8f23d69bca918c648350149f08.go diff --git a/internal/sdk/systems/privatecloudbusiness/5ca4906de37c20fadb3caa2ffd693cd1209f80fd9ff216f47fc7265b707594ca.go b/internal/sdk/systems/privatecloudbusiness/0d06213388723c3e9b3171079615aeb540600ac6d55e3a92a518c7ed4fb5e0be.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/5ca4906de37c20fadb3caa2ffd693cd1209f80fd9ff216f47fc7265b707594ca.go rename to internal/sdk/systems/privatecloudbusiness/0d06213388723c3e9b3171079615aeb540600ac6d55e3a92a518c7ed4fb5e0be.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_hypervisor_clusters_available_software_catalogs.go b/internal/sdk/systems/privatecloudbusiness/104102c184300b8e1dec495801137ba0ea06147d4da85f68a2cb1aa3907d3761.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_hypervisor_clusters_available_software_catalogs.go rename to internal/sdk/systems/privatecloudbusiness/104102c184300b8e1dec495801137ba0ea06147d4da85f68a2cb1aa3907d3761.go diff --git a/internal/sdk/systems/privatecloudbusiness/0ec8661b2c9e4e8a8306b29faca730c3a7c0b4dacd3b7d4de0b4d13548d0b8e9.go b/internal/sdk/systems/privatecloudbusiness/1c84d33a9db69423c0770f70978be3300072ee321a3110e8adb72b71c5d41287.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/0ec8661b2c9e4e8a8306b29faca730c3a7c0b4dacd3b7d4de0b4d13548d0b8e9.go rename to internal/sdk/systems/privatecloudbusiness/1c84d33a9db69423c0770f70978be3300072ee321a3110e8adb72b71c5d41287.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_hypervisor_clusters_unavailable_software_catalogs.go b/internal/sdk/systems/privatecloudbusiness/1f47d0e38516847a21f8844a14e91c6231de6c000e588d0345501c9dad0c28b6.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_hypervisor_clusters_unavailable_software_catalogs.go rename to internal/sdk/systems/privatecloudbusiness/1f47d0e38516847a21f8844a14e91c6231de6c000e588d0345501c9dad0c28b6.go diff --git a/internal/sdk/systems/privatecloudbusiness/7e14844a2e74185c660d6c3721c3755427ce1e31f831a02fbd213e1469200e9f.go b/internal/sdk/systems/privatecloudbusiness/25bf76832fad6ad2a897f35cdac45b67dcee7287bb1983d1c540f97fac5ed369.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/7e14844a2e74185c660d6c3721c3755427ce1e31f831a02fbd213e1469200e9f.go rename to internal/sdk/systems/privatecloudbusiness/25bf76832fad6ad2a897f35cdac45b67dcee7287bb1983d1c540f97fac5ed369.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_hypervisor_clusters_hypervisor_manager_admin_password_secret.go b/internal/sdk/systems/privatecloudbusiness/277b377cc2418d5d861e5aade6265fc2750350fb9bfd74ee29393781046c448d.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_hypervisor_clusters_hypervisor_manager_admin_password_secret.go rename to internal/sdk/systems/privatecloudbusiness/277b377cc2418d5d861e5aade6265fc2750350fb9bfd74ee29393781046c448d.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_hypervisor_clusters_current_update_status.go b/internal/sdk/systems/privatecloudbusiness/2bdc5a5917fc26b4c0f186453ccb6f5b7530ee6255c9dc5ddb9d6631abcb929b.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_hypervisor_clusters_current_update_status.go rename to internal/sdk/systems/privatecloudbusiness/2bdc5a5917fc26b4c0f186453ccb6f5b7530ee6255c9dc5ddb9d6631abcb929b.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_ilo_user_credential_secret.go b/internal/sdk/systems/privatecloudbusiness/31a668f1ce3eac6786b6164ffb56419e4207c421dc2fbf6623fd656e9b3837d2.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_ilo_user_credential_secret.go rename to internal/sdk/systems/privatecloudbusiness/31a668f1ce3eac6786b6164ffb56419e4207c421dc2fbf6623fd656e9b3837d2.go diff --git a/internal/sdk/systems/privatecloudbusiness/8c795cc433c7b40cdbbb63ca164c4b2035875a50d114529911a431e976a3d5e5.go b/internal/sdk/systems/privatecloudbusiness/3313a62f015d57f81b026dd834de277d5e782026f2c3fdb1ee66e846bd05e63d.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/8c795cc433c7b40cdbbb63ca164c4b2035875a50d114529911a431e976a3d5e5.go rename to internal/sdk/systems/privatecloudbusiness/3313a62f015d57f81b026dd834de277d5e782026f2c3fdb1ee66e846bd05e63d.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_pc_for_ai_software_info_current_update_status.go b/internal/sdk/systems/privatecloudbusiness/3cdd705b36f9d3643cf1ef8f66a7b8b4e65464cf75d6af520d998651c034c880.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_pc_for_ai_software_info_current_update_status.go rename to internal/sdk/systems/privatecloudbusiness/3cdd705b36f9d3643cf1ef8f66a7b8b4e65464cf75d6af520d998651c034c880.go diff --git a/internal/sdk/systems/privatecloudbusiness/f93efd113888ea5dae2f688dfcf529b02ca46dbda623214d0af276bce9695075.go b/internal/sdk/systems/privatecloudbusiness/44818158c76fc7e660cd04216b586ee0416eacee14fddae094ade6a88f2a178d.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/f93efd113888ea5dae2f688dfcf529b02ca46dbda623214d0af276bce9695075.go rename to internal/sdk/systems/privatecloudbusiness/44818158c76fc7e660cd04216b586ee0416eacee14fddae094ade6a88f2a178d.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_pc_for_ai_software_info_current_software_catalog.go b/internal/sdk/systems/privatecloudbusiness/46547cae9357ab15435939ca5395f1ed5143cf65f619323c70f7d51679129e23.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_pc_for_ai_software_info_current_software_catalog.go rename to internal/sdk/systems/privatecloudbusiness/46547cae9357ab15435939ca5395f1ed5143cf65f619323c70f7d51679129e23.go diff --git a/internal/sdk/systems/privatecloudbusiness/9bc2b24d4eae0485a893d746c66c2cfa4b296596a9c56d4012a77c2e32d9e057.go b/internal/sdk/systems/privatecloudbusiness/4a5528981f81040abe96987e45ae80ccab0a956752034e31b50880a4ace41d61.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/9bc2b24d4eae0485a893d746c66c2cfa4b296596a9c56d4012a77c2e32d9e057.go rename to internal/sdk/systems/privatecloudbusiness/4a5528981f81040abe96987e45ae80ccab0a956752034e31b50880a4ace41d61.go diff --git a/internal/sdk/systems/privatecloudbusiness/a29f9daf9cb6d69a63ef1137951b14140e7c22702798f235fa4dace30fb8ac7c.go b/internal/sdk/systems/privatecloudbusiness/4c31976905a9bac10a0ecfd3c785fb0cbaa9016b861babcd8f9b17607467f0ee.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/a29f9daf9cb6d69a63ef1137951b14140e7c22702798f235fa4dace30fb8ac7c.go rename to internal/sdk/systems/privatecloudbusiness/4c31976905a9bac10a0ecfd3c785fb0cbaa9016b861babcd8f9b17607467f0ee.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_hypervisor_clusters_unavailable_software_catalogs.go b/internal/sdk/systems/privatecloudbusiness/52fda2ad35f5a5df7aaa50339127e7340f9899e19419c905a480f7fae058c2b3.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_hypervisor_clusters_unavailable_software_catalogs.go rename to internal/sdk/systems/privatecloudbusiness/52fda2ad35f5a5df7aaa50339127e7340f9899e19419c905a480f7fae058c2b3.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_ilo_mgmt_ip_info.go b/internal/sdk/systems/privatecloudbusiness/619978a575d93ac1fd98e5af5a565b56c64b5f500047096141e65f5960494334.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_ilo_mgmt_ip_info.go rename to internal/sdk/systems/privatecloudbusiness/619978a575d93ac1fd98e5af5a565b56c64b5f500047096141e65f5960494334.go diff --git a/internal/sdk/systems/privatecloudbusiness/61bd0b4705de8b63e6a43f6cdfc40f88019748ed31a6c9bd3a0184d05c75c866.go b/internal/sdk/systems/privatecloudbusiness/631ffce83bf1218ff3c6e93ae1a2897ff31959ab730db45534c91a4b6d8f49ac.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/61bd0b4705de8b63e6a43f6cdfc40f88019748ed31a6c9bd3a0184d05c75c866.go rename to internal/sdk/systems/privatecloudbusiness/631ffce83bf1218ff3c6e93ae1a2897ff31959ab730db45534c91a4b6d8f49ac.go diff --git a/internal/sdk/systems/privatecloudbusiness/faaa11e6d18a2628a19c49fe8159bd23c6845683a5dcbc9e9ef685e74df14dbd.go b/internal/sdk/systems/privatecloudbusiness/636d9272dbcc6146af8f19a8a1d0422a636584db4d284a572c935fd3f9ee2e1b.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/faaa11e6d18a2628a19c49fe8159bd23c6845683a5dcbc9e9ef685e74df14dbd.go rename to internal/sdk/systems/privatecloudbusiness/636d9272dbcc6146af8f19a8a1d0422a636584db4d284a572c935fd3f9ee2e1b.go diff --git a/internal/sdk/systems/privatecloudbusiness/9fe1233f4c1036603046b5d478a70c40a036cdb9bbb9b4cac0b7a1eb8786f0f2.go b/internal/sdk/systems/privatecloudbusiness/6b983eae77cef7019607699cbf20419cbcb9281141a98ccbb662137dec175a5d.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/9fe1233f4c1036603046b5d478a70c40a036cdb9bbb9b4cac0b7a1eb8786f0f2.go rename to internal/sdk/systems/privatecloudbusiness/6b983eae77cef7019607699cbf20419cbcb9281141a98ccbb662137dec175a5d.go diff --git a/internal/sdk/systems/privatecloudbusiness/d572ed524a3bcfd81f7ba74a708dc46e0c481c610ad40f1aa9f188547717a5e0.go b/internal/sdk/systems/privatecloudbusiness/6bd9f017dfa27f6b1ae35056fe39443551f492a4c099ca326c7cd6c4e640a861.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/d572ed524a3bcfd81f7ba74a708dc46e0c481c610ad40f1aa9f188547717a5e0.go rename to internal/sdk/systems/privatecloudbusiness/6bd9f017dfa27f6b1ae35056fe39443551f492a4c099ca326c7cd6c4e640a861.go diff --git a/internal/sdk/systems/privatecloudbusiness/6ec8d5ca2392666f5e33254e3b0fa04bdef750e07447ecf031e072a49c703eed.go b/internal/sdk/systems/privatecloudbusiness/6be486281b86fad6de3e44219a82fcd8041473ec1b233a0f3c21f0b10c89a2fa.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/6ec8d5ca2392666f5e33254e3b0fa04bdef750e07447ecf031e072a49c703eed.go rename to internal/sdk/systems/privatecloudbusiness/6be486281b86fad6de3e44219a82fcd8041473ec1b233a0f3c21f0b10c89a2fa.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_compute_clusters_hypervisor_manager_admin_password_secret.go b/internal/sdk/systems/privatecloudbusiness/6c3464fcf37355853d99032adada4641411ffc619bc39891e1fdbf21820470d6.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_compute_clusters_hypervisor_manager_admin_password_secret.go rename to internal/sdk/systems/privatecloudbusiness/6c3464fcf37355853d99032adada4641411ffc619bc39891e1fdbf21820470d6.go diff --git a/internal/sdk/systems/privatecloudbusiness/adccb2f1a47ba3ea6938f85910e8c5c4af12513bdcd1c551bb8c3431d742aaef.go b/internal/sdk/systems/privatecloudbusiness/6d51835c974ffe0bbc4bea82af831797527f4b44ebdf1183397c0f823367c0f2.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/adccb2f1a47ba3ea6938f85910e8c5c4af12513bdcd1c551bb8c3431d742aaef.go rename to internal/sdk/systems/privatecloudbusiness/6d51835c974ffe0bbc4bea82af831797527f4b44ebdf1183397c0f823367c0f2.go diff --git a/internal/sdk/systems/privatecloudbusiness/609251c2a38ac2d73c3acb023a79ebbe44180d8f733ae543716702d3ce4db6c4.go b/internal/sdk/systems/privatecloudbusiness/708a084145e309b8468def9e547c9a7a69137fe5324ff36adaef8f3200f198ef.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/609251c2a38ac2d73c3acb023a79ebbe44180d8f733ae543716702d3ce4db6c4.go rename to internal/sdk/systems/privatecloudbusiness/708a084145e309b8468def9e547c9a7a69137fe5324ff36adaef8f3200f198ef.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_hypervisor_manager.go b/internal/sdk/systems/privatecloudbusiness/728a8b1bc9af6c9e3eac554ee8a0dab62ad15544ef7ae2292af0ca2a4fd6a630.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_hypervisor_manager.go rename to internal/sdk/systems/privatecloudbusiness/728a8b1bc9af6c9e3eac554ee8a0dab62ad15544ef7ae2292af0ca2a4fd6a630.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_hypervisor_clusters_available_software_catalogs.go b/internal/sdk/systems/privatecloudbusiness/7a5bf20c4df898347b589e8df33b61582cf222b84b8d4d67d3c9734d4010b1df.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_hypervisor_clusters_available_software_catalogs.go rename to internal/sdk/systems/privatecloudbusiness/7a5bf20c4df898347b589e8df33b61582cf222b84b8d4d67d3c9734d4010b1df.go diff --git a/internal/sdk/systems/privatecloudbusiness/f9120d2188856b313f4850ab58a902b6b6eddc06628b80d01f5206070ec1a7d9.go b/internal/sdk/systems/privatecloudbusiness/7b2e132d103b7898dbac5f02154612c29d9038b09e14809379908622a6ee73f2.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/f9120d2188856b313f4850ab58a902b6b6eddc06628b80d01f5206070ec1a7d9.go rename to internal/sdk/systems/privatecloudbusiness/7b2e132d103b7898dbac5f02154612c29d9038b09e14809379908622a6ee73f2.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_hypervisor_clusters_current_software_catalog.go b/internal/sdk/systems/privatecloudbusiness/7baf79c5521447784c0c3f042d44463b3ecf30d43f07b6ecd930ecb6b6e6b48e.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_hypervisor_clusters_current_software_catalog.go rename to internal/sdk/systems/privatecloudbusiness/7baf79c5521447784c0c3f042d44463b3ecf30d43f07b6ecd930ecb6b6e6b48e.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_hypervisor_clusters_current_software_catalog.go b/internal/sdk/systems/privatecloudbusiness/7cdcafab0f2d2ddb9e05656e3403b4525267eea3d01c523f1b7b06b080227091.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_hypervisor_clusters_current_software_catalog.go rename to internal/sdk/systems/privatecloudbusiness/7cdcafab0f2d2ddb9e05656e3403b4525267eea3d01c523f1b7b06b080227091.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_pc_for_ai_software_info_available_software_catalogs.go b/internal/sdk/systems/privatecloudbusiness/8b5364cb1994c0ee2531dde1ece36218a9a7a4978123351f37ab0d0c48225777.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_pc_for_ai_software_info_available_software_catalogs.go rename to internal/sdk/systems/privatecloudbusiness/8b5364cb1994c0ee2531dde1ece36218a9a7a4978123351f37ab0d0c48225777.go diff --git a/internal/sdk/systems/privatecloudbusiness/b4c67cbf1f9741a3dca4eb5e60c62a682f12f27ee2aa395cdab7eaa859bda34e.go b/internal/sdk/systems/privatecloudbusiness/92ea938c099e111a8b9f5bb00071e17ce90604dc0ff3e7a892ac095db69fd8f2.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/b4c67cbf1f9741a3dca4eb5e60c62a682f12f27ee2aa395cdab7eaa859bda34e.go rename to internal/sdk/systems/privatecloudbusiness/92ea938c099e111a8b9f5bb00071e17ce90604dc0ff3e7a892ac095db69fd8f2.go diff --git a/internal/sdk/systems/privatecloudbusiness/ec99e3f768f780218faf4d94c85d0d10650249433b1c02d7d30903b67e169ba7.go b/internal/sdk/systems/privatecloudbusiness/96b9b2a43ca0c827f44d591413253177c3ddeec526f09d1a38700e3a00a3c499.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/ec99e3f768f780218faf4d94c85d0d10650249433b1c02d7d30903b67e169ba7.go rename to internal/sdk/systems/privatecloudbusiness/96b9b2a43ca0c827f44d591413253177c3ddeec526f09d1a38700e3a00a3c499.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_hypervisor_clusters_current_update_status.go b/internal/sdk/systems/privatecloudbusiness/991b9a51f0cc978de1f4f3164ebd4206e76800d7e888fd5a4e7a9420af573eba.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_hypervisor_clusters_current_update_status.go rename to internal/sdk/systems/privatecloudbusiness/991b9a51f0cc978de1f4f3164ebd4206e76800d7e888fd5a4e7a9420af573eba.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_hypervisor_host_root_user_password_secret.go b/internal/sdk/systems/privatecloudbusiness/9d722b5904464e2d6b32759b46e21a754cb08ed4771911f61795ea78c1ae9b17.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_hypervisor_host_root_user_password_secret.go rename to internal/sdk/systems/privatecloudbusiness/9d722b5904464e2d6b32759b46e21a754cb08ed4771911f61795ea78c1ae9b17.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_pc_for_ai_software_info_current_software_catalog.go b/internal/sdk/systems/privatecloudbusiness/a21bfe14837a49779a9ab28f8da62d1ad095dfb905bd0352f0baa8ef5db3cff7.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_pc_for_ai_software_info_current_software_catalog.go rename to internal/sdk/systems/privatecloudbusiness/a21bfe14837a49779a9ab28f8da62d1ad095dfb905bd0352f0baa8ef5db3cff7.go diff --git a/internal/sdk/systems/privatecloudbusiness/cd99868a60a183310980f82dbd701b1d7c2c246e0e2e273c072229914b3506a6.go b/internal/sdk/systems/privatecloudbusiness/a25cd043ab5575be12412dfe549577ad48bd212b54dbe29bb346981498d1488c.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/cd99868a60a183310980f82dbd701b1d7c2c246e0e2e273c072229914b3506a6.go rename to internal/sdk/systems/privatecloudbusiness/a25cd043ab5575be12412dfe549577ad48bd212b54dbe29bb346981498d1488c.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_hypervisor_clusters_current_update_status.go b/internal/sdk/systems/privatecloudbusiness/a3a0c0321631fd45926e28fcc6f44bd79dda9a0201b80af964e60c2df20f4a7b.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_hypervisor_clusters_current_update_status.go rename to internal/sdk/systems/privatecloudbusiness/a3a0c0321631fd45926e28fcc6f44bd79dda9a0201b80af964e60c2df20f4a7b.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_pc_for_ai_software_info_available_software_catalogs.go b/internal/sdk/systems/privatecloudbusiness/a835b27c39ec112d1bb9b8a2d88543f5a8da83dfa6a1c19a671e3297d1ce4116.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_pc_for_ai_software_info_available_software_catalogs.go rename to internal/sdk/systems/privatecloudbusiness/a835b27c39ec112d1bb9b8a2d88543f5a8da83dfa6a1c19a671e3297d1ce4116.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_systems_with_update_path.go b/internal/sdk/systems/privatecloudbusiness/ad82c81c3c49682a46d0e6229792df599843ae791e4a6d0881865e9306218181.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_systems_with_update_path.go rename to internal/sdk/systems/privatecloudbusiness/ad82c81c3c49682a46d0e6229792df599843ae791e4a6d0881865e9306218181.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_hypervisor_host_root_user_password_secret.go b/internal/sdk/systems/privatecloudbusiness/afbf582dc86c6ed7905d816f9dcbb62d01febd75f0c5e07f9237135226acc6cd.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_hypervisor_host_root_user_password_secret.go rename to internal/sdk/systems/privatecloudbusiness/afbf582dc86c6ed7905d816f9dcbb62d01febd75f0c5e07f9237135226acc6cd.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_ilo_network_info_network_interfaces.go b/internal/sdk/systems/privatecloudbusiness/b430e2e16a90301e46befb9517ec314fc88d23070148d6a2b356e397033be4f7.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_ilo_network_info_network_interfaces.go rename to internal/sdk/systems/privatecloudbusiness/b430e2e16a90301e46befb9517ec314fc88d23070148d6a2b356e397033be4f7.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_pc_for_ai_software_info_current_software_catalog.go b/internal/sdk/systems/privatecloudbusiness/b69af8e3aebf5736be2c88163823b4b5727ea0595f5a82b946a46b355998768d.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_pc_for_ai_software_info_current_software_catalog.go rename to internal/sdk/systems/privatecloudbusiness/b69af8e3aebf5736be2c88163823b4b5727ea0595f5a82b946a46b355998768d.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_systems_with_update_path_hypervisor_clusters.go b/internal/sdk/systems/privatecloudbusiness/bec7e5c0d20cb32fcd05b8e1a80674bd76b2a95deb90b0fd4cd8fe628e880e8c.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_systems_with_update_path_hypervisor_clusters.go rename to internal/sdk/systems/privatecloudbusiness/bec7e5c0d20cb32fcd05b8e1a80674bd76b2a95deb90b0fd4cd8fe628e880e8c.go diff --git a/internal/sdk/systems/privatecloudbusiness/1aef9b7c93d4513625518d8df3a6891f03172bffe6f6c2882b76a3aa9c30813a.go b/internal/sdk/systems/privatecloudbusiness/c8920659607f93afddd39a849821780c611f923bbdb82193911aed4c187ef954.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/1aef9b7c93d4513625518d8df3a6891f03172bffe6f6c2882b76a3aa9c30813a.go rename to internal/sdk/systems/privatecloudbusiness/c8920659607f93afddd39a849821780c611f923bbdb82193911aed4c187ef954.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_pc_for_ai_software_info_current_update_status.go b/internal/sdk/systems/privatecloudbusiness/c90bb39759dc19bbc876b424fd7e79bed63d21a20384f6724abf4911f2ecb5e3.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_pc_for_ai_software_info_current_update_status.go rename to internal/sdk/systems/privatecloudbusiness/c90bb39759dc19bbc876b424fd7e79bed63d21a20384f6724abf4911f2ecb5e3.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_data_ip_infos.go b/internal/sdk/systems/privatecloudbusiness/d11bd3b4c70298d5a38daf80dd9cff4ff3ebae90eb2cd1b74d0fa68d5725c5e4.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_data_ip_infos.go rename to internal/sdk/systems/privatecloudbusiness/d11bd3b4c70298d5a38daf80dd9cff4ff3ebae90eb2cd1b74d0fa68d5725c5e4.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_hypervisor_clusters_available_software_catalogs.go b/internal/sdk/systems/privatecloudbusiness/d1c7c9e1621afeb98020b8125e04256ccffea3d0c5e28ac49a19e8c39e2dae7d.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_hypervisor_clusters_available_software_catalogs.go rename to internal/sdk/systems/privatecloudbusiness/d1c7c9e1621afeb98020b8125e04256ccffea3d0c5e28ac49a19e8c39e2dae7d.go diff --git a/internal/sdk/systems/privatecloudbusiness/fdf5d2b6f1c9f7635bf0a5bf7976082e26fdf8658e299a129c537020af9ba8fe.go b/internal/sdk/systems/privatecloudbusiness/d409aad580a1d90eadb4c373952d1c4b8178edb4edbb5aa4bb798c4f0aaaa4aa.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/fdf5d2b6f1c9f7635bf0a5bf7976082e26fdf8658e299a129c537020af9ba8fe.go rename to internal/sdk/systems/privatecloudbusiness/d409aad580a1d90eadb4c373952d1c4b8178edb4edbb5aa4bb798c4f0aaaa4aa.go diff --git a/internal/sdk/systems/privatecloudbusiness/7750d3c1c616df98f77d350f0eaf567efd7bb00063a8ba89448c09e1501c8c42.go b/internal/sdk/systems/privatecloudbusiness/d4b0e2c0d1360bc8aa78cd93b39524e7dfc8aed9f3013838f125973b2feefeae.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/7750d3c1c616df98f77d350f0eaf567efd7bb00063a8ba89448c09e1501c8c42.go rename to internal/sdk/systems/privatecloudbusiness/d4b0e2c0d1360bc8aa78cd93b39524e7dfc8aed9f3013838f125973b2feefeae.go diff --git a/internal/sdk/systems/privatecloudbusiness/2822b57053367bd7b26e2d3bf02d3b770bcf26f5aff99cd06aa6fd0f24badaea.go b/internal/sdk/systems/privatecloudbusiness/d9fdc25770555bd9cfe43b98e061b30a6dceee9749354fdadaa2b916d9436e77.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/2822b57053367bd7b26e2d3bf02d3b770bcf26f5aff99cd06aa6fd0f24badaea.go rename to internal/sdk/systems/privatecloudbusiness/d9fdc25770555bd9cfe43b98e061b30a6dceee9749354fdadaa2b916d9436e77.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_pc_for_ai_software_info_current_update_status.go b/internal/sdk/systems/privatecloudbusiness/e650073a269362fe6739f5ecdfe539c656aeda993ea7f80a3a769283be042dc9.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_pc_for_ai_software_info_current_update_status.go rename to internal/sdk/systems/privatecloudbusiness/e650073a269362fe6739f5ecdfe539c656aeda993ea7f80a3a769283be042dc9.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_compute_clusters_hypervisor_manager_admin_password_secret.go b/internal/sdk/systems/privatecloudbusiness/f0720e11a0b00cafa7f77f980be33060cffc1ff5bec83e21eae85cee5ffd5da8.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_compute_clusters_hypervisor_manager_admin_password_secret.go rename to internal/sdk/systems/privatecloudbusiness/f0720e11a0b00cafa7f77f980be33060cffc1ff5bec83e21eae85cee5ffd5da8.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_ilo_network_info_network_interfaces.go b/internal/sdk/systems/privatecloudbusiness/f0df208f63bf90df735e51e46b6c10d1d4c343294754b447e92710d289da3e6a.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_ilo_network_info_network_interfaces.go rename to internal/sdk/systems/privatecloudbusiness/f0df208f63bf90df735e51e46b6c10d1d4c343294754b447e92710d289da3e6a.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_hypervisor_clusters_hypervisor_manager_admin_password_secret.go b/internal/sdk/systems/privatecloudbusiness/f148ea8362ae46eb13af1d6750867a9ba272b6ad8f45431019c61fb96788fdbe.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_hypervisor_clusters_hypervisor_manager_admin_password_secret.go rename to internal/sdk/systems/privatecloudbusiness/f148ea8362ae46eb13af1d6750867a9ba272b6ad8f45431019c61fb96788fdbe.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_hypervisor_clusters_hypervisor_manager_admin_password_secret.go b/internal/sdk/systems/privatecloudbusiness/f22a25d51383e64178e698b7f0cf6f8bdfb3516ab34c3c86913a7045dde574c0.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_hypervisor_clusters_hypervisor_manager_admin_password_secret.go rename to internal/sdk/systems/privatecloudbusiness/f22a25d51383e64178e698b7f0cf6f8bdfb3516ab34c3c86913a7045dde574c0.go diff --git a/internal/sdk/systems/privatecloudbusiness/970e5af0b1376f5f187e6de7c70fcb24292c71b8eb7fd0071e1a6cdd37364cad.go b/internal/sdk/systems/privatecloudbusiness/f8f88f2c5ae014b7fd21522fa1579f687113efe53f4fb2f3799aff5f743697fa.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/970e5af0b1376f5f187e6de7c70fcb24292c71b8eb7fd0071e1a6cdd37364cad.go rename to internal/sdk/systems/privatecloudbusiness/f8f88f2c5ae014b7fd21522fa1579f687113efe53f4fb2f3799aff5f743697fa.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_compute_clusters_hypervisor_manager_admin_password_secret.go b/internal/sdk/systems/privatecloudbusiness/fa8760323d45f09819e1221691e3706d16d169a7ab50d8b530790137995d7c62.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_compute_clusters_hypervisor_manager_admin_password_secret.go rename to internal/sdk/systems/privatecloudbusiness/fa8760323d45f09819e1221691e3706d16d169a7ab50d8b530790137995d7c62.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_esx_mgmt_ip_info.go b/internal/sdk/systems/privatecloudbusiness/fd7d464f98063dad8b31f816dc50c7af833e09096dde8553a7449397f26517d5.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network_esx_mgmt_ip_info.go rename to internal/sdk/systems/privatecloudbusiness/fd7d464f98063dad8b31f816dc50c7af833e09096dde8553a7449397f26517d5.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_compute_clusters_hypervisor_manager_admin_password_secret_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/1dfd092d1794fd4cce6b801071a54fae8a01c36e0e857345d1e314cec3ed3acb.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_compute_clusters_hypervisor_manager_admin_password_secret_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/1dfd092d1794fd4cce6b801071a54fae8a01c36e0e857345d1e314cec3ed3acb.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_software_info_hypervisor_clusters_current_update_status_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/3440c842ef527b3ea1f974c59274fd1366c20ff185b0ea6f167d7e9d7fdc7d7e.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_software_info_hypervisor_clusters_current_update_status_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/3440c842ef527b3ea1f974c59274fd1366c20ff185b0ea6f167d7e9d7fdc7d7e.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_software_info_pc_for_ai_software_info_current_update_status_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/5df81134d55c892476968a3daaa15ded611c097dff5f42b84b1658ee0edda066.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_software_info_pc_for_ai_software_info_current_update_status_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/5df81134d55c892476968a3daaa15ded611c097dff5f42b84b1658ee0edda066.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_hypervisor_clusters_hypervisor_manager_admin_password_secret_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/7c9f6fc4e4cca111b25f33b3600f6db7fa76fe726fc2596eb948e3cc00671a80.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_hypervisor_clusters_hypervisor_manager_admin_password_secret_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/7c9f6fc4e4cca111b25f33b3600f6db7fa76fe726fc2596eb948e3cc00671a80.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_hypervisor_clusters_hypervisor_manager_admin_password_secret_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/1c2278308dc080d4f9e384a44294f084ead51da87074aa94d9f66e1ec5ddaf3a.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_hypervisor_clusters_hypervisor_manager_admin_password_secret_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/1c2278308dc080d4f9e384a44294f084ead51da87074aa94d9f66e1ec5ddaf3a.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_software_info_hypervisor_clusters_current_update_status_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/743553f516546362dd223f0541a0f1bf3bcc38d942f774d75f69910baf60c24d.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_software_info_hypervisor_clusters_current_update_status_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/743553f516546362dd223f0541a0f1bf3bcc38d942f774d75f69910baf60c24d.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_compute_clusters_hypervisor_manager_admin_password_secret_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/8e17ea427214bb49732f154a0e731f50b74fe678c4535c69276737926b51ab10.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_compute_clusters_hypervisor_manager_admin_password_secret_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/8e17ea427214bb49732f154a0e731f50b74fe678c4535c69276737926b51ab10.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_hypervisor_clusters_hypervisor_manager_admin_password_secret_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/ae332c5c1336bb807e843fa852d46ab1a3f9cb21f3e1041a7ba8b305b8a8461b.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_hypervisor_clusters_hypervisor_manager_admin_password_secret_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/ae332c5c1336bb807e843fa852d46ab1a3f9cb21f3e1041a7ba8b305b8a8461b.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/assignsecret/assign_secret_post_request_body_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/assignsecret/assign_secret_post_request_body_escaped_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/assignsecret/assign_secret_post_request_body_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/assignsecret/assign_secret_post_request_body_escaped_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_software_info_hypervisor_clusters_current_update_status_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/b2c85a8c52bd3b7698f414b6b9cc9231f6287a431e2d7c33fb4dbec7a048cdab.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_software_info_hypervisor_clusters_current_update_status_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/b2c85a8c52bd3b7698f414b6b9cc9231f6287a431e2d7c33fb4dbec7a048cdab.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_software_info_pc_for_ai_software_info_current_update_status_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/d590216282a05329b0216fa66c9d2e512e4136d55e18e63053e7b4ab22bb1d3c.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_software_info_pc_for_ai_software_info_current_update_status_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/d590216282a05329b0216fa66c9d2e512e4136d55e18e63053e7b4ab22bb1d3c.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_software_info_pc_for_ai_software_info_current_update_status_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/f42c80cdace68f952a55bad5ad42d280538ed476e682ab6db58729a5eaa7cb82.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_software_info_pc_for_ai_software_info_current_update_status_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/f42c80cdace68f952a55bad5ad42d280538ed476e682ab6db58729a5eaa7cb82.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_compute_clusters_compute_cluster_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_compute_clusters_escaped_compute_cluster_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_compute_clusters_compute_cluster_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_compute_clusters_escaped_compute_cluster_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_compute_clusters_hypervisor_manager_admin_password_secret_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_compute_clusters_escaped_hypervisor_manager_admin_password_secret_escaped_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_compute_clusters_hypervisor_manager_admin_password_secret_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_compute_clusters_escaped_hypervisor_manager_admin_password_secret_escaped_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_health_network.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_health_escaped_network.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_health_network.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_health_escaped_network.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_health_overall_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_health_escaped_overall_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_health_overall_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_health_escaped_overall_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_health_servers.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_health_escaped_servers.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_health_servers.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_health_escaped_servers.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_health_storage.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_health_escaped_storage.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_health_storage.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_health_escaped_storage.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_hypervisor_clusters_hypervisor_cluster_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_hypervisor_clusters_escaped_hypervisor_cluster_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_hypervisor_clusters_hypervisor_cluster_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_hypervisor_clusters_escaped_hypervisor_cluster_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_software_info_current_update_status_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_software_info_escaped_current_update_status_escaped_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_software_info_current_update_status_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_software_info_escaped_current_update_status_escaped_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_stack_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_stack_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_stack_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_stack_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/get_response_escaped_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_compute_clusters_compute_cluster_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_compute_clusters_escaped_compute_cluster_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_compute_clusters_compute_cluster_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_compute_clusters_escaped_compute_cluster_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_health_network.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_health_escaped_network.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_health_network.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_health_escaped_network.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_health_overall_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_health_escaped_overall_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_health_overall_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_health_escaped_overall_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_health_servers.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_health_escaped_servers.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_health_servers.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_health_escaped_servers.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_health_storage.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_health_escaped_storage.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_health_storage.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_health_escaped_storage.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_hypervisor_clusters_hypervisor_cluster_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_hypervisor_clusters_escaped_hypervisor_cluster_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_hypervisor_clusters_hypervisor_cluster_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_hypervisor_clusters_escaped_hypervisor_cluster_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_software_info_current_update_status_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_software_info_escaped_current_update_status_escaped_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_software_info_current_update_status_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_software_info_escaped_current_update_status_escaped_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_stack_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_stack_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_stack_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_stack_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/patch_response_escaped_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_consumed_by_consumer_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_consumed_by_escaped_consumer_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_consumed_by_consumer_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_consumed_by_escaped_consumer_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_hypervisor_host_hypervisor_host_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_hypervisor_host_escaped_hypervisor_host_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_hypervisor_host_hypervisor_host_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_hypervisor_host_escaped_hypervisor_host_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_hypervisor_host_root_user_password_secret_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_hypervisor_host_root_user_password_secret_escaped_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_hypervisor_host_root_user_password_secret_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_hypervisor_host_root_user_password_secret_escaped_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_ilo_admin_user_password_secret_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_ilo_admin_user_password_secret_escaped_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_ilo_admin_user_password_secret_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_ilo_admin_user_password_secret_escaped_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_ilo_network_info_network_interfaces_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_ilo_network_info_escaped_network_interfaces_escaped_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_ilo_network_info_network_interfaces_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_ilo_network_info_escaped_network_interfaces_escaped_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_ilo_user_credential_secret_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_ilo_user_credential_escaped_secret_escaped_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_ilo_user_credential_secret_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_ilo_user_credential_escaped_secret_escaped_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_operating_system_info_operating_system_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_operating_system_info_escaped_operating_system_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_operating_system_info_operating_system_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_operating_system_info_escaped_operating_system_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_os_user_credential_secret_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_os_user_credential_escaped_secret_escaped_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_os_user_credential_secret_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_os_user_credential_escaped_secret_escaped_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_power_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_power_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_power_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_power_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_server_network_interfaces_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_server_network_interfaces_escaped_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_server_network_interfaces_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/item/with_server_get_response_escaped_server_network_interfaces_escaped_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_consumed_by_consumer_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_consumed_by_escaped_consumer_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_consumed_by_consumer_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_consumed_by_escaped_consumer_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_hypervisor_host_hypervisor_host_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_hypervisor_host_escaped_hypervisor_host_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_hypervisor_host_hypervisor_host_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_hypervisor_host_escaped_hypervisor_host_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_hypervisor_host_root_user_password_secret_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_hypervisor_host_root_user_password_secret_escaped_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_hypervisor_host_root_user_password_secret_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_hypervisor_host_root_user_password_secret_escaped_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_ilo_admin_user_password_secret_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_ilo_admin_user_password_secret_escaped_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_ilo_admin_user_password_secret_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_ilo_admin_user_password_secret_escaped_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_ilo_network_info_network_interfaces_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_ilo_network_info_escaped_network_interfaces_escaped_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_ilo_network_info_network_interfaces_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_ilo_network_info_escaped_network_interfaces_escaped_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_ilo_user_credential_secret_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_ilo_user_credential_escaped_secret_escaped_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_ilo_user_credential_secret_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_ilo_user_credential_escaped_secret_escaped_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_operating_system_info_operating_system_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_operating_system_info_escaped_operating_system_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_operating_system_info_operating_system_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_operating_system_info_escaped_operating_system_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_os_user_credential_secret_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_os_user_credential_escaped_secret_escaped_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_os_user_credential_secret_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_os_user_credential_escaped_secret_escaped_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_power_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_power_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_power_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_power_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_server_network_interfaces_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_server_network_interfaces_escaped_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_items_server_network_interfaces_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/servers/servers_get_response_escaped_items_escaped_server_network_interfaces_escaped_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_items_health_controller.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_escaped_items_escaped_health_escaped_controller.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_items_health_controller.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_escaped_items_escaped_health_escaped_controller.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_items_health_disk.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_escaped_items_escaped_health_escaped_disk.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_items_health_disk.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_escaped_items_escaped_health_escaped_disk.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_items_health_network.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_escaped_items_escaped_health_escaped_network.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_items_health_network.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_escaped_items_escaped_health_escaped_network.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_items_health_overall_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_escaped_items_escaped_health_escaped_overall_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_items_health_overall_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_escaped_items_escaped_health_escaped_overall_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_items_health_shelf.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_escaped_items_escaped_health_escaped_shelf.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_items_health_shelf.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/storagearrays/storage_arrays_get_response_escaped_items_escaped_health_escaped_shelf.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_health_cpu_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_escaped_health_escaped_cpu_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_health_cpu_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_escaped_health_escaped_cpu_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_health_fans_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_escaped_health_escaped_fans_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_health_fans_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_escaped_health_escaped_fans_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_health_memory_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_escaped_health_escaped_memory_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_health_memory_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_escaped_health_escaped_memory_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_health_overall_switch_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_escaped_health_escaped_overall_switch_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_health_overall_switch_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_escaped_health_escaped_overall_switch_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_health_power_supplies_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_escaped_health_escaped_power_supplies_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_health_power_supplies_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_escaped_health_escaped_power_supplies_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_health_temperature_sensors_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_escaped_health_escaped_temperature_sensors_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_health_temperature_sensors_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/item/with_switch_get_response_escaped_health_escaped_temperature_sensors_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_items_health_cpu_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_escaped_items_escaped_health_escaped_cpu_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_items_health_cpu_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_escaped_items_escaped_health_escaped_cpu_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_items_health_fans_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_escaped_items_escaped_health_escaped_fans_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_items_health_fans_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_escaped_items_escaped_health_escaped_fans_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_items_health_memory_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_escaped_items_escaped_health_escaped_memory_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_items_health_memory_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_escaped_items_escaped_health_escaped_memory_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_items_health_overall_switch_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_escaped_items_escaped_health_escaped_overall_switch_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_items_health_overall_switch_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_escaped_items_escaped_health_escaped_overall_switch_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_items_health_power_supplies_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_escaped_items_escaped_health_escaped_power_supplies_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_items_health_power_supplies_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_escaped_items_escaped_health_escaped_power_supplies_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_items_health_temperature_sensors_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_escaped_items_escaped_health_escaped_temperature_sensors_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_items_health_temperature_sensors_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/item/switches/switches_get_response_escaped_items_escaped_health_escaped_temperature_sensors_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_compute_clusters_compute_cluster_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_compute_clusters_escaped_compute_cluster_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_compute_clusters_compute_cluster_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_compute_clusters_escaped_compute_cluster_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_health_network.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_health_escaped_network.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_health_network.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_health_escaped_network.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_health_overall_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_health_escaped_overall_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_health_overall_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_health_escaped_overall_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_health_servers.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_health_escaped_servers.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_health_servers.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_health_escaped_servers.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_health_storage.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_health_escaped_storage.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_health_storage.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_health_escaped_storage.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_hypervisor_clusters_hypervisor_cluster_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_hypervisor_clusters_escaped_hypervisor_cluster_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_hypervisor_clusters_hypervisor_cluster_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_hypervisor_clusters_escaped_hypervisor_cluster_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_software_info_current_update_status_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_software_info_escaped_current_update_status_escaped_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_software_info_current_update_status_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_software_info_escaped_current_update_status_escaped_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_stack_type.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_stack_type.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_stack_type.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_stack_type.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_state.go b/internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_state.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_items_state.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1/systems/systems_get_response_escaped_items_escaped_state.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_ai_essentials.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items_escaped_ai_essentials.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_ai_essentials.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items_escaped_ai_essentials.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_hypervisor.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items_escaped_hypervisor.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_hypervisor.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items_escaped_hypervisor.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_hypervisor_manager.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items_escaped_hypervisor_manager.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_hypervisor_manager.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items_escaped_hypervisor_manager.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_server_firmware.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items_escaped_server_firmware.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_server_firmware.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items_escaped_server_firmware.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_storage_connection_manager.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items_escaped_storage_connection_manager.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_storage_connection_manager.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items_escaped_storage_connection_manager.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_storage_software.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items_escaped_storage_software.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_storage_software.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items_escaped_storage_software.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_systems_with_update_path.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items_escaped_systems_with_update_path.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_items_systems_with_update_path.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_get_response_escaped_items_escaped_systems_with_update_path.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_ai_essentials.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_escaped_ai_essentials.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_ai_essentials.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_escaped_ai_essentials.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_hypervisor.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_escaped_hypervisor.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_hypervisor.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_escaped_hypervisor.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_server_firmware.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_escaped_server_firmware.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_server_firmware.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_escaped_server_firmware.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_storage_software.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_escaped_storage_software.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_storage_software.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_system_software_catalogs_item_system_software_catalogs_get_response_escaped_storage_software.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_associated_resource_counts.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_associated_resource_counts.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_associated_resource_counts.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_associated_resource_counts.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_compute_clusters.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_compute_clusters.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_compute_clusters.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_compute_clusters.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_compute_usage.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_compute_usage.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_compute_usage.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_compute_usage.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_config_analysis_status.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_config_analysis_status.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_config_analysis_status.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_config_analysis_status.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_hypervisor_clusters.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_hypervisor_clusters.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_hypervisor_clusters.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_hypervisor_clusters.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_location.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_location.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_location.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_location.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_software_info.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_software_info.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_current_update_status.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_software_info_escaped_current_update_status.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_current_update_status.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_software_info_escaped_current_update_status.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_hypervisor_clusters.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_software_info_escaped_hypervisor_clusters.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_hypervisor_clusters.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_software_info_escaped_hypervisor_clusters.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_pc_for_ai_software_info.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_software_info_escaped_pc_for_ai_software_info.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_software_info_pc_for_ai_software_info.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_software_info_escaped_pc_for_ai_software_info.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_storage_system.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_storage_system.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_storage_system.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_storage_system.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_storage_usage.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_storage_usage.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_storage_usage.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_storage_usage.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_system_vms.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_system_vms.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_items_system_vms.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_get_response_escaped_items_escaped_system_vms.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_escaped_server_network.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_server_network.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_add_hypervisor_servers_post_request_body_escaped_server_network.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_associated_resource_counts.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_associated_resource_counts.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_associated_resource_counts.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_associated_resource_counts.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_compute_clusters.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_compute_clusters.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_compute_clusters.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_compute_clusters.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_compute_usage.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_compute_usage.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_compute_usage.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_compute_usage.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_config_analysis_status.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_config_analysis_status.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_config_analysis_status.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_config_analysis_status.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_hypervisor_clusters.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_hypervisor_clusters.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_hypervisor_clusters.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_hypervisor_clusters.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_location.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_location.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_location.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_location.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_software_info.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_software_info.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_current_update_status.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_software_info_escaped_current_update_status.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_current_update_status.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_software_info_escaped_current_update_status.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_hypervisor_clusters.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_software_info_escaped_hypervisor_clusters.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_hypervisor_clusters.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_software_info_escaped_hypervisor_clusters.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_pc_for_ai_software_info.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_software_info_escaped_pc_for_ai_software_info.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_software_info_pc_for_ai_software_info.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_software_info_escaped_pc_for_ai_software_info.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_storage_system.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_storage_system.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_storage_system.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_storage_system.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_storage_usage.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_storage_usage.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_storage_usage.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_storage_usage.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_system_vms.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_system_vms.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_system_vms.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_get_response_escaped_system_vms.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_request_body_location.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_request_body_escaped_location.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_request_body_location.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_request_body_escaped_location.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_associated_resource_counts.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_associated_resource_counts.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_associated_resource_counts.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_associated_resource_counts.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_compute_clusters.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_compute_clusters.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_compute_clusters.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_compute_clusters.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_compute_usage.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_compute_usage.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_compute_usage.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_compute_usage.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_config_analysis_status.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_config_analysis_status.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_config_analysis_status.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_config_analysis_status.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_hypervisor_clusters.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_hypervisor_clusters.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_hypervisor_clusters.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_hypervisor_clusters.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_location.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_location.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_location.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_location.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_software_info.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_software_info.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_current_update_status.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_software_info_escaped_current_update_status.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_current_update_status.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_software_info_escaped_current_update_status.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_hypervisor_clusters.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_software_info_escaped_hypervisor_clusters.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_hypervisor_clusters.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_software_info_escaped_hypervisor_clusters.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_pc_for_ai_software_info.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_software_info_escaped_pc_for_ai_software_info.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_software_info_pc_for_ai_software_info.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_software_info_escaped_pc_for_ai_software_info.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_storage_system.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_storage_system.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_storage_system.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_storage_system.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_storage_usage.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_storage_usage.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_storage_usage.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_storage_usage.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_system_vms.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_system_vms.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_system_vms.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_patch_response_escaped_system_vms.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_cloud_module_config.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_cloud_module_config.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_cloud_module_config.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_cloud_module_config.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_compute_usage.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_compute_usage.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_compute_usage.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_compute_usage.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_consumed_by.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_consumed_by.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_consumed_by.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_consumed_by.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_gpus.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_gpus.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_gpus.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_gpus.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_hypervisor_host.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_hypervisor_host.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_hypervisor_host.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_hypervisor_host.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_ilo_admin_user_password_secret.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_ilo_admin_user_password_secret.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_ilo_admin_user_password_secret.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_ilo_admin_user_password_secret.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_ilo_network_info.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_ilo_network_info.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_ilo_network_info.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_ilo_network_info.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_ilo_user_credential.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_ilo_user_credential.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_ilo_user_credential.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_ilo_user_credential.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_ilo_user_credential_secret.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_ilo_user_credential_escaped_secret.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_ilo_user_credential_secret.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_ilo_user_credential_escaped_secret.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_link_local_info.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_link_local_info.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_link_local_info.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_link_local_info.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_operating_system_info.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_operating_system_info.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_operating_system_info.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_operating_system_info.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_os_user_credential.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_os_user_credential.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_os_user_credential.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_os_user_credential.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_os_user_credential_secret.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_os_user_credential_escaped_secret.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_os_user_credential_secret.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_os_user_credential_escaped_secret.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_server_network_interfaces.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_server_network_interfaces.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_items_server_network_interfaces.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_get_response_escaped_items_escaped_server_network_interfaces.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_cloud_module_config.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_cloud_module_config.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_cloud_module_config.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_cloud_module_config.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_compute_usage.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_compute_usage.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_compute_usage.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_compute_usage.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_consumed_by.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_consumed_by.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_consumed_by.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_consumed_by.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_gpus.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_gpus.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_gpus.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_gpus.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_hypervisor_host.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_hypervisor_host.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_hypervisor_host.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_hypervisor_host.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_ilo_admin_user_password_secret.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_ilo_admin_user_password_secret.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_ilo_admin_user_password_secret.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_ilo_admin_user_password_secret.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_ilo_network_info.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_ilo_network_info.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_ilo_network_info.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_ilo_network_info.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_ilo_user_credential.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_ilo_user_credential.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_ilo_user_credential.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_ilo_user_credential.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_link_local_info.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_link_local_info.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_link_local_info.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_link_local_info.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_operating_system_info.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_operating_system_info.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_operating_system_info.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_operating_system_info.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_os_user_credential.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_os_user_credential.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_os_user_credential.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_os_user_credential.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_os_user_credential_secret.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_os_user_credential_escaped_secret.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_os_user_credential_secret.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_os_user_credential_escaped_secret.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_server_network_interfaces.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_server_network_interfaces.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_server_network_interfaces.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_servers_item_with_server_get_response_escaped_server_network_interfaces.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_items.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_escaped_items.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_items.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_escaped_items.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_items_capacity_metrics.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_escaped_items_escaped_capacity_metrics.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_items_capacity_metrics.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_escaped_items_escaped_capacity_metrics.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_items_details.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_escaped_items_escaped_details.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_items_details.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_escaped_items_escaped_details.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_items_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_escaped_items_escaped_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_items_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_arrays_get_response_escaped_items_escaped_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_pools_get_response_items.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_pools_get_response_escaped_items.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_pools_get_response_items.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_pools_get_response_escaped_items.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_replication_partners_get_response_items.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_replication_partners_get_response_escaped_items.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_replication_partners_get_response_items.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_replication_partners_get_response_escaped_items.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_replication_partners_get_response_items_throttles.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_replication_partners_get_response_escaped_items_escaped_throttles.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_replication_partners_get_response_items_throttles.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_storage_replication_partners_get_response_escaped_items_escaped_throttles.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_switches_get_response_items.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_switches_get_response_escaped_items.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_switches_get_response_items.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_switches_get_response_escaped_items.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_switches_get_response_items_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_switches_get_response_escaped_items_escaped_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_switches_get_response_items_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_switches_get_response_escaped_items_escaped_health.go diff --git a/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_switches_item_with_switch_get_response_health.go b/internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_switches_item_with_switch_get_response_escaped_health.go similarity index 100% rename from internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_switches_item_with_switch_get_response_health.go rename to internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_switches_item_with_switch_get_response_escaped_health.go diff --git a/internal/sdk/virt/kiota-lock.json b/internal/sdk/virt/kiota-lock.json index e4226e8..67a6734 100644 --- a/internal/sdk/virt/kiota-lock.json +++ b/internal/sdk/virt/kiota-lock.json @@ -2,8 +2,9 @@ "descriptionHash": "4E07B5766E0A93262D4AE3EF498F26BCCFA4974693989C34E816047CF564F3A39F340F4DD1A7296C7FC1ADB0696C85F77CDBFC6CDDE6C1C585E7707B328C7AB9", "descriptionLocation": "../../../../in.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.16.0", + "kiotaVersion": "1.21.0", "clientClassName": "ApiClient", + "typeAccessModifier": "Public", "clientNamespaceName": "github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/sdk/virt", "language": "Go", "usesBackingStore": false, diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_protection_job_info_protection_policy_info.go b/internal/sdk/virt/virtualization/010a285f5062e6efec8e39b20cb6c2cf70bb0f85bc53f09a4982e6a5eaaf6d21.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_protection_job_info_protection_policy_info.go rename to internal/sdk/virt/virtualization/010a285f5062e6efec8e39b20cb6c2cf70bb0f85bc53f09a4982e6a5eaaf6d21.go diff --git a/internal/sdk/virt/virtualization/d610511c6ec9bded01e99da22e4739b865af8c272271cccc8a1685c608e217cc.go b/internal/sdk/virt/virtualization/014c44a50f1b68caaef36ac77a007bad909441116cbdae472b6e4c6222b889b0.go similarity index 100% rename from internal/sdk/virt/virtualization/d610511c6ec9bded01e99da22e4739b865af8c272271cccc8a1685c608e217cc.go rename to internal/sdk/virt/virtualization/014c44a50f1b68caaef36ac77a007bad909441116cbdae472b6e4c6222b889b0.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_child_resource_pools.go b/internal/sdk/virt/virtualization/057d56b5864e7829958d0f802ceff7ae744e349252abd9dd1848566819d2615c.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_child_resource_pools.go rename to internal/sdk/virt/virtualization/057d56b5864e7829958d0f802ceff7ae744e349252abd9dd1848566819d2615c.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_protection_job_info_schedule_info.go b/internal/sdk/virt/virtualization/0925ced391d56b8db0aae42aec9fc121f0f94d6e69a5e87a8b01d208f029ca22.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_protection_job_info_schedule_info.go rename to internal/sdk/virt/virtualization/0925ced391d56b8db0aae42aec9fc121f0f94d6e69a5e87a8b01d208f029ca22.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info_network_info_vpc_info.go b/internal/sdk/virt/virtualization/09e5e8b389a6d1fdf9c02b717347d27e8021b2b86fa03cd760025de747958d7e.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info_network_info_vpc_info.go rename to internal/sdk/virt/virtualization/09e5e8b389a6d1fdf9c02b717347d27e8021b2b86fa03cd760025de747958d7e.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_volumes_info_storage_folder_info.go b/internal/sdk/virt/virtualization/0a2f21a9b4b79f9c4ebe14228040b59dd7188d254f597b8254e775e56847ade2.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_volumes_info_storage_folder_info.go rename to internal/sdk/virt/virtualization/0a2f21a9b4b79f9c4ebe14228040b59dd7188d254f597b8254e775e56847ade2.go diff --git a/internal/sdk/virt/virtualization/d79bf8f02cc789396dfbe0ea2653c93dee575deb2175a2e5932c8ace95bbf00d.go b/internal/sdk/virt/virtualization/0abf9d0334ab2b20ac48a644b0eab6389e187bdcf2e74301e825e276a8ee9127.go similarity index 100% rename from internal/sdk/virt/virtualization/d79bf8f02cc789396dfbe0ea2653c93dee575deb2175a2e5932c8ace95bbf00d.go rename to internal/sdk/virt/virtualization/0abf9d0334ab2b20ac48a644b0eab6389e187bdcf2e74301e825e276a8ee9127.go diff --git a/internal/sdk/virt/virtualization/3c3f67479b497fd1c02b4aed8714019376606ee2f31089d2e9b51840b17a91ab.go b/internal/sdk/virt/virtualization/0edce3f2f327c7f077daf617b63a5bd4ebad56b87d05b5a407de3e44c02a9c64.go similarity index 100% rename from internal/sdk/virt/virtualization/3c3f67479b497fd1c02b4aed8714019376606ee2f31089d2e9b51840b17a91ab.go rename to internal/sdk/virt/virtualization/0edce3f2f327c7f077daf617b63a5bd4ebad56b87d05b5a407de3e44c02a9c64.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_items_app_info_vmware_datacenters.go b/internal/sdk/virt/virtualization/0f7aeaffd332e909d7dcef3e0221d42a0529a47361b4d4e85ab8a2dab5040e9d.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_items_app_info_vmware_datacenters.go rename to internal/sdk/virt/virtualization/0f7aeaffd332e909d7dcef3e0221d42a0529a47361b4d4e85ab8a2dab5040e9d.go diff --git a/internal/sdk/virt/virtualization/6c32fa2d84b61a36e85f68fb4be65531c4cf96a14695d6997ed32a312778f470.go b/internal/sdk/virt/virtualization/1082226a44b7a5c1fc5012e81031fbed55ede8d38ce3eadd0c73c7647a13caf8.go similarity index 100% rename from internal/sdk/virt/virtualization/6c32fa2d84b61a36e85f68fb4be65531c4cf96a14695d6997ed32a312778f470.go rename to internal/sdk/virt/virtualization/1082226a44b7a5c1fc5012e81031fbed55ede8d38ce3eadd0c73c7647a13caf8.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_app_info_vmware_datacenter_info.go b/internal/sdk/virt/virtualization/1432aadcfa85413ce5dfd88c7edfc8b5688ba18469d2dea6376ce0fe5b80fb88.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_app_info_vmware_datacenter_info.go rename to internal/sdk/virt/virtualization/1432aadcfa85413ce5dfd88c7edfc8b5688ba18469d2dea6376ce0fe5b80fb88.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member2_features.go b/internal/sdk/virt/virtualization/1453f4d0d1cedd57db0cfb1937fa7ff385c13cd6937f304bd692167118f02d3b.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member2_features.go rename to internal/sdk/virt/virtualization/1453f4d0d1cedd57db0cfb1937fa7ff385c13cd6937f304bd692167118f02d3b.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_protection_job_info_schedule_info.go b/internal/sdk/virt/virtualization/17d59e0dd9b5814f186dc76c0936463ad71cee2f8a2f36f5ca8f207724a405c6.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_protection_job_info_schedule_info.go rename to internal/sdk/virt/virtualization/17d59e0dd9b5814f186dc76c0936463ad71cee2f8a2f36f5ca8f207724a405c6.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_protection_job_info_protection_policy_info.go b/internal/sdk/virt/virtualization/19fc8f290fb4272f0a343b36a04774fd96696d029fc4b80c66ed8bbc032cb524.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_protection_job_info_protection_policy_info.go rename to internal/sdk/virt/virtualization/19fc8f290fb4272f0a343b36a04774fd96696d029fc4b80c66ed8bbc032cb524.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_host_network_system_port_groups_nic_teaming_policy.go b/internal/sdk/virt/virtualization/1b27f9645379fd10a8882e0fe0b1013f26779df7b32eb8762f1cd3cd486330fd.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_host_network_system_port_groups_nic_teaming_policy.go rename to internal/sdk/virt/virtualization/1b27f9645379fd10a8882e0fe0b1013f26779df7b32eb8762f1cd3cd486330fd.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member2_version_info.go b/internal/sdk/virt/virtualization/1d1537e55b0fc88baedae4a37bfcd2b85de8336c73d99f37c3602a632a12a863.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member2_version_info.go rename to internal/sdk/virt/virtualization/1d1537e55b0fc88baedae4a37bfcd2b85de8336c73d99f37c3602a632a12a863.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_protection_policy_applied_at_info.go b/internal/sdk/virt/virtualization/1e4289c6f22a3433518feaee789961115b2f3165afe86efe49a3838d0244283a.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_protection_policy_applied_at_info.go rename to internal/sdk/virt/virtualization/1e4289c6f22a3433518feaee789961115b2f3165afe86efe49a3838d0244283a.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_volumes_info_storage_pool_info.go b/internal/sdk/virt/virtualization/21a7c490c5fa24c70e6bb3cc4bf6d5938f6f00bacf4a8a40d4e9a2584b5f9f50.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_volumes_info_storage_pool_info.go rename to internal/sdk/virt/virtualization/21a7c490c5fa24c70e6bb3cc4bf6d5938f6f00bacf4a8a40d4e9a2584b5f9f50.go diff --git a/internal/sdk/virt/virtualization/13e51552bc67d43d7e2554901c5cf65683f37727cbb673da5bb489dd53590fe5.go b/internal/sdk/virt/virtualization/23d3a780114196061fd38def6e59c5eb96f9654b6bd01ccb932d01ec414bdd8c.go similarity index 100% rename from internal/sdk/virt/virtualization/13e51552bc67d43d7e2554901c5cf65683f37727cbb673da5bb489dd53590fe5.go rename to internal/sdk/virt/virtualization/23d3a780114196061fd38def6e59c5eb96f9654b6bd01ccb932d01ec414bdd8c.go diff --git a/internal/sdk/virt/virtualization/863a2496a307e2ea071fee417e96d0b6f8e164a08b03e2c37d9d03dc2897e15c.go b/internal/sdk/virt/virtualization/27700fa8dd4b489a54201c2648ba48e716f178ca9cb872d5630b79477a1b4c4f.go similarity index 100% rename from internal/sdk/virt/virtualization/863a2496a307e2ea071fee417e96d0b6f8e164a08b03e2c37d9d03dc2897e15c.go rename to internal/sdk/virt/virtualization/27700fa8dd4b489a54201c2648ba48e716f178ca9cb872d5630b79477a1b4c4f.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_app_info_vmware_datastores_info.go b/internal/sdk/virt/virtualization/277c22e7013a05c832897b9d88b02885beb63e701104c755f615588a337af272.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_app_info_vmware_datastores_info.go rename to internal/sdk/virt/virtualization/277c22e7013a05c832897b9d88b02885beb63e701104c755f615588a337af272.go diff --git a/internal/sdk/virt/virtualization/0437cfc0531363b24be48ad093504661abb55400eec676e4588c4a1514404b48.go b/internal/sdk/virt/virtualization/283e190382ab73f1b7560256e5981f21c54ff0433191fa36e70c432adb219b50.go similarity index 100% rename from internal/sdk/virt/virtualization/0437cfc0531363b24be48ad093504661abb55400eec676e4588c4a1514404b48.go rename to internal/sdk/virt/virtualization/283e190382ab73f1b7560256e5981f21c54ff0433191fa36e70c432adb219b50.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_protection_job_info_schedule_info.go b/internal/sdk/virt/virtualization/290962307d49a9fe526e5f9fe6e845b2b16010bed194cf08ff93450329b1bf48.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_protection_job_info_schedule_info.go rename to internal/sdk/virt/virtualization/290962307d49a9fe526e5f9fe6e845b2b16010bed194cf08ff93450329b1bf48.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member2_disallowed.go b/internal/sdk/virt/virtualization/2ad5e27869459853637b7fa4f0d35a3f23d3f33c9ab459b0c85a63393cd994ab.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member2_disallowed.go rename to internal/sdk/virt/virtualization/2ad5e27869459853637b7fa4f0d35a3f23d3f33c9ab459b0c85a63393cd994ab.go diff --git a/internal/sdk/virt/virtualization/465f9e9f996cd90079dd1afad8e28252f80272ee8c3793f6470ee704500c5e92.go b/internal/sdk/virt/virtualization/2b41bee8c56978abb0305efffc17d223066926fcdde07202b5aeba97b64dca85.go similarity index 100% rename from internal/sdk/virt/virtualization/465f9e9f996cd90079dd1afad8e28252f80272ee8c3793f6470ee704500c5e92.go rename to internal/sdk/virt/virtualization/2b41bee8c56978abb0305efffc17d223066926fcdde07202b5aeba97b64dca85.go diff --git a/internal/sdk/virt/virtualization/9a1bca7ca2173361de1f1c75e6ca5cdd7d107db8d0e63b04411b2cde8f2cd853.go b/internal/sdk/virt/virtualization/2b6767cb0be2b9d9ef7148e5aad015a286c2b507c339390b88de8cb0fc5b5d6c.go similarity index 100% rename from internal/sdk/virt/virtualization/9a1bca7ca2173361de1f1c75e6ca5cdd7d107db8d0e63b04411b2cde8f2cd853.go rename to internal/sdk/virt/virtualization/2b6767cb0be2b9d9ef7148e5aad015a286c2b507c339390b88de8cb0fc5b5d6c.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_network_info.go b/internal/sdk/virt/virtualization/2c447ae3eccc9d3a31e4939d0da0c30295937aeb91744ad740bba42793f558cd.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_network_info.go rename to internal/sdk/virt/virtualization/2c447ae3eccc9d3a31e4939d0da0c30295937aeb91744ad740bba42793f558cd.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_volumes_info_storage_system_info.go b/internal/sdk/virt/virtualization/2f048741d90ab8734d8e3fe3f8e56ac4beed1957905b7a19da8268e1f20e86a1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_volumes_info_storage_system_info.go rename to internal/sdk/virt/virtualization/2f048741d90ab8734d8e3fe3f8e56ac4beed1957905b7a19da8268e1f20e86a1.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member2_restrictions.go b/internal/sdk/virt/virtualization/2fb1a427bc4071d4b02134983363cb92ae2f7dbcfae61827fbff82c9765215a8.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member2_restrictions.go rename to internal/sdk/virt/virtualization/2fb1a427bc4071d4b02134983363cb92ae2f7dbcfae61827fbff82c9765215a8.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_items_app_info_vmware_datacenter_info.go b/internal/sdk/virt/virtualization/309067f3fad5a1e91228d6b2b30f05fc6fd7527e20e5e1ec1b8d2a364044b3fb.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_items_app_info_vmware_datacenter_info.go rename to internal/sdk/virt/virtualization/309067f3fad5a1e91228d6b2b30f05fc6fd7527e20e5e1ec1b8d2a364044b3fb.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_machine_instance_attachment_info_attached_to.go b/internal/sdk/virt/virtualization/30e0e2fe137771a75340e7ed7164c8d7756b465d04b6b5ae163223406bad24e5.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_machine_instance_attachment_info_attached_to.go rename to internal/sdk/virt/virtualization/30e0e2fe137771a75340e7ed7164c8d7756b465d04b6b5ae163223406bad24e5.go diff --git a/internal/sdk/virt/virtualization/e39379cd1317b3a95cf44e5f9005a7fa24d48067bbab1ed2951274dd14c8b9ee.go b/internal/sdk/virt/virtualization/3133248c92c7bb9327a6da392d35ff45cc095446fc039ad727d535f6b242cf4d.go similarity index 100% rename from internal/sdk/virt/virtualization/e39379cd1317b3a95cf44e5f9005a7fa24d48067bbab1ed2951274dd14c8b9ee.go rename to internal/sdk/virt/virtualization/3133248c92c7bb9327a6da392d35ff45cc095446fc039ad727d535f6b242cf4d.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_volume_attachment_info_attached_to.go b/internal/sdk/virt/virtualization/33ab24adc872689feefb6e953456c14ab140a3a4307d8d7855039728b585910e.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_volume_attachment_info_attached_to.go rename to internal/sdk/virt/virtualization/33ab24adc872689feefb6e953456c14ab140a3a4307d8d7855039728b585910e.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_volumes_info_volume_set_info.go b/internal/sdk/virt/virtualization/356fb10aed9d93df2eafa872a1abf2fb79b6b755047188bdc029627554db6999.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_volumes_info_volume_set_info.go rename to internal/sdk/virt/virtualization/356fb10aed9d93df2eafa872a1abf2fb79b6b755047188bdc029627554db6999.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_disks_app_info_vmware_datastore_info.go b/internal/sdk/virt/virtualization/35aa4346ccf38616774edd4dd5029582e444d1acd2d0e8d648a82b5329d9a81f.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_disks_app_info_vmware_datastore_info.go rename to internal/sdk/virt/virtualization/35aa4346ccf38616774edd4dd5029582e444d1acd2d0e8d648a82b5329d9a81f.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member2_os_disk_image.go b/internal/sdk/virt/virtualization/368103a636351a51200edfdb5904755c1a0d6b5af4350c013c4cacb628209de9.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member2_os_disk_image.go rename to internal/sdk/virt/virtualization/368103a636351a51200edfdb5904755c1a0d6b5af4350c013c4cacb628209de9.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_app_info_vmware.go b/internal/sdk/virt/virtualization/3a67e9004a824e77429cc52815c41a368809b9df7a5742a5e94b115b0a9713b5.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_app_info_vmware.go rename to internal/sdk/virt/virtualization/3a67e9004a824e77429cc52815c41a368809b9df7a5742a5e94b115b0a9713b5.go diff --git a/internal/sdk/virt/virtualization/97d7b2a5e7895491e50503593e3f1b7f9da5c3abee440feea3eaa8a1d25c2ca4.go b/internal/sdk/virt/virtualization/3c80c0638ebd7f1c79fc97035049d4b3f1f75d1c2ec86746012cda13f1262e57.go similarity index 100% rename from internal/sdk/virt/virtualization/97d7b2a5e7895491e50503593e3f1b7f9da5c3abee440feea3eaa8a1d25c2ca4.go rename to internal/sdk/virt/virtualization/3c80c0638ebd7f1c79fc97035049d4b3f1f75d1c2ec86746012cda13f1262e57.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member1_network_info.go b/internal/sdk/virt/virtualization/3d5c91a27303584810788fa4a9b6039949a452c0e877ec497eb455403eb06891.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member1_network_info.go rename to internal/sdk/virt/virtualization/3d5c91a27303584810788fa4a9b6039949a452c0e877ec497eb455403eb06891.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info_vm_dns_setting_vm_dns.go b/internal/sdk/virt/virtualization/3daad586e34fa38fd7e229f92a4bf2119997e94e934aa618d9b5b30968fdd9bc.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info_vm_dns_setting_vm_dns.go rename to internal/sdk/virt/virtualization/3daad586e34fa38fd7e229f92a4bf2119997e94e934aa618d9b5b30968fdd9bc.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_host_network_system_port_groups_nic_teaming_policy.go b/internal/sdk/virt/virtualization/40714f7a4aca86d422cd298e88fbd7af735eee9cb48ecd00466bc3a64743d9a1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_host_network_system_port_groups_nic_teaming_policy.go rename to internal/sdk/virt/virtualization/40714f7a4aca86d422cd298e88fbd7af735eee9cb48ecd00466bc3a64743d9a1.go diff --git a/internal/sdk/virt/virtualization/37b910488fde7703f4d9e4a3ef9ffb7c5408a5d5afde5413d4f012cfb364ac09.go b/internal/sdk/virt/virtualization/413e35491b2a2ca7e08ea8e7a8f484e44a4a35a66f5926b5b1fd397e548dcf89.go similarity index 100% rename from internal/sdk/virt/virtualization/37b910488fde7703f4d9e4a3ef9ffb7c5408a5d5afde5413d4f012cfb364ac09.go rename to internal/sdk/virt/virtualization/413e35491b2a2ca7e08ea8e7a8f484e44a4a35a66f5926b5b1fd397e548dcf89.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member2_image_deprecation_status_info.go b/internal/sdk/virt/virtualization/4158163f24b1312351b5e53bc5fb853bb5753f66c80a7b6032da7eac8882d90e.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member2_image_deprecation_status_info.go rename to internal/sdk/virt/virtualization/4158163f24b1312351b5e53bc5fb853bb5753f66c80a7b6032da7eac8882d90e.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member2_csp_tags.go b/internal/sdk/virt/virtualization/42c4a6dcfab6f118587a5aadb250f4b951b77ed2fe60453e7f16cbc82c4baf04.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member2_csp_tags.go rename to internal/sdk/virt/virtualization/42c4a6dcfab6f118587a5aadb250f4b951b77ed2fe60453e7f16cbc82c4baf04.go diff --git a/internal/sdk/virt/virtualization/41c2c972fd85be3654ebd35fc97c598db0232e5f4c5095ce246a0d9d5c20d2dd.go b/internal/sdk/virt/virtualization/478b05ea9486ae8f1c93157c1e120e81ce1b5eca413bbf15e4d199cf98f27cc6.go similarity index 100% rename from internal/sdk/virt/virtualization/41c2c972fd85be3654ebd35fc97c598db0232e5f4c5095ce246a0d9d5c20d2dd.go rename to internal/sdk/virt/virtualization/478b05ea9486ae8f1c93157c1e120e81ce1b5eca413bbf15e4d199cf98f27cc6.go diff --git a/internal/sdk/virt/virtualization/b3df71855325f56101005637ebda8f61160269746768a2ffa2bb04d4a7786adc.go b/internal/sdk/virt/virtualization/47f4749bf07046b55f12c9135ae0eff9c5fc4710f6b6caac41edc0abd75e5492.go similarity index 100% rename from internal/sdk/virt/virtualization/b3df71855325f56101005637ebda8f61160269746768a2ffa2bb04d4a7786adc.go rename to internal/sdk/virt/virtualization/47f4749bf07046b55f12c9135ae0eff9c5fc4710f6b6caac41edc0abd75e5492.go diff --git a/internal/sdk/virt/virtualization/d1007f0ac2ba88efebd9a92271f91ff349d40ca3d4e6d62d4489dbf7d89d450f.go b/internal/sdk/virt/virtualization/4d435043986c61f18596932bd8c8fb2f5f7f6922e344d31b8caa72ba15c71bfe.go similarity index 100% rename from internal/sdk/virt/virtualization/d1007f0ac2ba88efebd9a92271f91ff349d40ca3d4e6d62d4489dbf7d89d450f.go rename to internal/sdk/virt/virtualization/4d435043986c61f18596932bd8c8fb2f5f7f6922e344d31b8caa72ba15c71bfe.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_app_info_vmware_datastores_info.go b/internal/sdk/virt/virtualization/4d75af18454191dea82759692b9589a3849fe061559a838024d6b7e66350078a.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_app_info_vmware_datastores_info.go rename to internal/sdk/virt/virtualization/4d75af18454191dea82759692b9589a3849fe061559a838024d6b7e66350078a.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member2_automatic_os_upgrade_properties.go b/internal/sdk/virt/virtualization/4f09738d23af9fe17c60d954b02685f5e8543386f1626ffb98ae38730f6355c7.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member2_automatic_os_upgrade_properties.go rename to internal/sdk/virt/virtualization/4f09738d23af9fe17c60d954b02685f5e8543386f1626ffb98ae38730f6355c7.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_customize_guest_os_post_request_body_linux_config_network_interfaces.go b/internal/sdk/virt/virtualization/4f724ae66ac1c001e729038b1550c9a9c295aee05b8db8f17e4f6581975afde8.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_customize_guest_os_post_request_body_linux_config_network_interfaces.go rename to internal/sdk/virt/virtualization/4f724ae66ac1c001e729038b1550c9a9c295aee05b8db8f17e4f6581975afde8.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_app_info_vmware.go b/internal/sdk/virt/virtualization/501676623d11822def5be8b68f4efff74eb61fc9b684b9307a93ca4c5752bbec.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_app_info_vmware.go rename to internal/sdk/virt/virtualization/501676623d11822def5be8b68f4efff74eb61fc9b684b9307a93ca4c5752bbec.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_csp_info_network_info_vpc_info.go b/internal/sdk/virt/virtualization/51b96db432f72f1fe233e80fc0a7fc5c69f7f4fbc5b3b4005c195e1f5cc3af75.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_csp_info_network_info_vpc_info.go rename to internal/sdk/virt/virtualization/51b96db432f72f1fe233e80fc0a7fc5c69f7f4fbc5b3b4005c195e1f5cc3af75.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_app_info_vmware_datacenter_info.go b/internal/sdk/virt/virtualization/540f8fd8e8e93756e4434c567cec7e7c6d3afc6522658533a529c91148f71bef.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_app_info_vmware_datacenter_info.go rename to internal/sdk/virt/virtualization/540f8fd8e8e93756e4434c567cec7e7c6d3afc6522658533a529c91148f71bef.go diff --git a/internal/sdk/virt/virtualization/194974cb546c6db756ec5a9d5caff111579129a3f1bd3e29742322a5ab5d7fb6.go b/internal/sdk/virt/virtualization/54b8b2f9e9d10a2c1a3864a1de91ec862c4c96100461428373f563e7302bd9bb.go similarity index 100% rename from internal/sdk/virt/virtualization/194974cb546c6db756ec5a9d5caff111579129a3f1bd3e29742322a5ab5d7fb6.go rename to internal/sdk/virt/virtualization/54b8b2f9e9d10a2c1a3864a1de91ec862c4c96100461428373f563e7302bd9bb.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_app_info_vmware_resource_pool_info.go b/internal/sdk/virt/virtualization/57af9a281c6f1eccf2d8515a187a9340e03113b9c70c8befe3074d669a3e829a.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_app_info_vmware_resource_pool_info.go rename to internal/sdk/virt/virtualization/57af9a281c6f1eccf2d8515a187a9340e03113b9c70c8befe3074d669a3e829a.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_protection_job_info_protection_policy_info.go b/internal/sdk/virt/virtualization/57d6803d02ba84f995da7889e0b52b3ff96f6bf3d6ff604874ea5c734f80c4a6.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_protection_job_info_protection_policy_info.go rename to internal/sdk/virt/virtualization/57d6803d02ba84f995da7889e0b52b3ff96f6bf3d6ff604874ea5c734f80c4a6.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member2_network_info_connections.go b/internal/sdk/virt/virtualization/5861deb911959b747b05e83577729f5d9e3a677f1d625b28d49c74e7f10cece4.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member2_network_info_connections.go rename to internal/sdk/virt/virtualization/5861deb911959b747b05e83577729f5d9e3a677f1d625b28d49c74e7f10cece4.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_cpu_mem_config_memory.go b/internal/sdk/virt/virtualization/5a5babd758e2b6a3154f5452da92458f3b6de7d1975cf39a145f8e2d356dfebe.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_cpu_mem_config_memory.go rename to internal/sdk/virt/virtualization/5a5babd758e2b6a3154f5452da92458f3b6de7d1975cf39a145f8e2d356dfebe.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member2_network_info.go b/internal/sdk/virt/virtualization/5c77a959ff7c117d2d786492c0117def313f45f42a82604ae7e60eb6603b8f6b.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member2_network_info.go rename to internal/sdk/virt/virtualization/5c77a959ff7c117d2d786492c0117def313f45f42a82604ae7e60eb6603b8f6b.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member1_block_device_mappings.go b/internal/sdk/virt/virtualization/5ed1d2529777045a286fcc2ba2a1b09bbf85c05fc9212bc93169820eb3df5b93.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member1_block_device_mappings.go rename to internal/sdk/virt/virtualization/5ed1d2529777045a286fcc2ba2a1b09bbf85c05fc9212bc93169820eb3df5b93.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_app_info_vmware_tools_info.go b/internal/sdk/virt/virtualization/617d42538a8782abbc8ae81da21d29d813e5271c220b153ea4c4843a29434a24.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_app_info_vmware_tools_info.go rename to internal/sdk/virt/virtualization/617d42538a8782abbc8ae81da21d29d813e5271c220b153ea4c4843a29434a24.go diff --git a/internal/sdk/virt/virtualization/284f8bf59474cbf84f646ce0486fea029377e252931b765941d2308136c4b21f.go b/internal/sdk/virt/virtualization/61c7f155a68b424c979abd401d5c293ad627e67714d0ee3ad35111e089984f8c.go similarity index 100% rename from internal/sdk/virt/virtualization/284f8bf59474cbf84f646ce0486fea029377e252931b765941d2308136c4b21f.go rename to internal/sdk/virt/virtualization/61c7f155a68b424c979abd401d5c293ad627e67714d0ee3ad35111e089984f8c.go diff --git a/internal/sdk/virt/virtualization/247a2bd2f4ba7c92bb7306ff56e812e68adae2e21618c7db5a387d71fe137d2e.go b/internal/sdk/virt/virtualization/6384fc2a69ea10d6a7cb4c6ab4fb3633636df28ae86f2dcf9e1f8b080e28d170.go similarity index 100% rename from internal/sdk/virt/virtualization/247a2bd2f4ba7c92bb7306ff56e812e68adae2e21618c7db5a387d71fe137d2e.go rename to internal/sdk/virt/virtualization/6384fc2a69ea10d6a7cb4c6ab4fb3633636df28ae86f2dcf9e1f8b080e28d170.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_disks_storage_system_info.go b/internal/sdk/virt/virtualization/66d495f84ece40e3911055db1673832d92cfba30b068dbbd56ef95c995c41e7e.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_disks_storage_system_info.go rename to internal/sdk/virt/virtualization/66d495f84ece40e3911055db1673832d92cfba30b068dbbd56ef95c995c41e7e.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_disks_app_info_vmware.go b/internal/sdk/virt/virtualization/6833f24520199db76246f9da97f49107df10ccb64ba3ab4c9b84ef6cf5d14356.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_disks_app_info_vmware.go rename to internal/sdk/virt/virtualization/6833f24520199db76246f9da97f49107df10ccb64ba3ab4c9b84ef6cf5d14356.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_app_info_vmware_datacenter_info.go b/internal/sdk/virt/virtualization/69e3a1f97380d759ca13e1079d6765bc5a93362cc2c162f43335ccfea9be5ba9.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_app_info_vmware_datacenter_info.go rename to internal/sdk/virt/virtualization/69e3a1f97380d759ca13e1079d6765bc5a93362cc2c162f43335ccfea9be5ba9.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info_network_interfaces_info.go b/internal/sdk/virt/virtualization/6e744f9c071bab1f2aeabfa41da67de2de1e1b366164f347e0ef1eafe95aea67.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info_network_interfaces_info.go rename to internal/sdk/virt/virtualization/6e744f9c071bab1f2aeabfa41da67de2de1e1b366164f347e0ef1eafe95aea67.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member2_network_info.go b/internal/sdk/virt/virtualization/73274c49f430b7e7976ef8aa451920f1933432549656f0b0de22745bd8bd8c2e.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member2_network_info.go rename to internal/sdk/virt/virtualization/73274c49f430b7e7976ef8aa451920f1933432549656f0b0de22745bd8bd8c2e.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member1_network_info_security_groups.go b/internal/sdk/virt/virtualization/75a052ee0ca90cd80e60d5770c9f8fffc782c077fc63614a6e24e08a8d23df74.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member1_network_info_security_groups.go rename to internal/sdk/virt/virtualization/75a052ee0ca90cd80e60d5770c9f8fffc782c077fc63614a6e24e08a8d23df74.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_processor_info.go b/internal/sdk/virt/virtualization/774cda25bd13e59217d0d1b73cf11fb6e8bb6cb01fef150b19d1b71110e5341b.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_processor_info.go rename to internal/sdk/virt/virtualization/774cda25bd13e59217d0d1b73cf11fb6e8bb6cb01fef150b19d1b71110e5341b.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_ebs_info.go b/internal/sdk/virt/virtualization/7b381e19cde9d4111bf0a775866b7a6c825065f710184b3c109f9ea3ddac027a.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_ebs_info.go rename to internal/sdk/virt/virtualization/7b381e19cde9d4111bf0a775866b7a6c825065f710184b3c109f9ea3ddac027a.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info_vm_dns_setting.go b/internal/sdk/virt/virtualization/7eebf779fc412412e3aafd06812cd214d402d8f067462b38632dd6f300f5c64d.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info_vm_dns_setting.go rename to internal/sdk/virt/virtualization/7eebf779fc412412e3aafd06812cd214d402d8f067462b38632dd6f300f5c64d.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_memory_info.go b/internal/sdk/virt/virtualization/805d8fe4ef0415880d62a7185e58dd675a459f16d25d99dc9515ac9f82371320.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_memory_info.go rename to internal/sdk/virt/virtualization/805d8fe4ef0415880d62a7185e58dd675a459f16d25d99dc9515ac9f82371320.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_app_info_vmware_datacenter_info.go b/internal/sdk/virt/virtualization/835bd47cf74e736eb407a02da4b7239473d2e30897567dc236beea4424f108c5.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_app_info_vmware_datacenter_info.go rename to internal/sdk/virt/virtualization/835bd47cf74e736eb407a02da4b7239473d2e30897567dc236beea4424f108c5.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_app_info_vmware_datacenter_info.go b/internal/sdk/virt/virtualization/83a23239a4c0461cfe7b6444aca996ae4d1f24dd2cd6e91c2d658bc44cbe83d2.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_app_info_vmware_datacenter_info.go rename to internal/sdk/virt/virtualization/83a23239a4c0461cfe7b6444aca996ae4d1f24dd2cd6e91c2d658bc44cbe83d2.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_guest_info_network_interfaces_info_ip_addresses.go b/internal/sdk/virt/virtualization/8b3ce7c213eacb21cad7d4d94aba30e7e38bf1bf248d63bd866cd6854689e9b4.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_guest_info_network_interfaces_info_ip_addresses.go rename to internal/sdk/virt/virtualization/8b3ce7c213eacb21cad7d4d94aba30e7e38bf1bf248d63bd866cd6854689e9b4.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member1_network_info.go b/internal/sdk/virt/virtualization/8f434e1da793e7c8f7728ace50f412f4999dc37888897c981b0f53808a036fb5.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member1_network_info.go rename to internal/sdk/virt/virtualization/8f434e1da793e7c8f7728ace50f412f4999dc37888897c981b0f53808a036fb5.go diff --git a/internal/sdk/virt/virtualization/3e0d36a75f82f1bb2f4e58e3826e13096a766d0f61a624970be9d780fa5dfc1b.go b/internal/sdk/virt/virtualization/8f5a60225059c38123f35c03864fc7d0ad194b26f21baba7d7f760c0c93ef2a7.go similarity index 100% rename from internal/sdk/virt/virtualization/3e0d36a75f82f1bb2f4e58e3826e13096a766d0f61a624970be9d780fa5dfc1b.go rename to internal/sdk/virt/virtualization/8f5a60225059c38123f35c03864fc7d0ad194b26f21baba7d7f760c0c93ef2a7.go diff --git a/internal/sdk/virt/virtualization/a697db1d8ea0a7df9bac74698eccb594694b7b77cb3e871c27d30bd4fb3b79f8.go b/internal/sdk/virt/virtualization/8f92b0834ab7ecd5247ffb53499a792506f04b8ae63426037e641684fa59ec1f.go similarity index 100% rename from internal/sdk/virt/virtualization/a697db1d8ea0a7df9bac74698eccb594694b7b77cb3e871c27d30bd4fb3b79f8.go rename to internal/sdk/virt/virtualization/8f92b0834ab7ecd5247ffb53499a792506f04b8ae63426037e641684fa59ec1f.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_item_with_resource_group_get_response_account_info.go b/internal/sdk/virt/virtualization/900fe92346f20dddb36c0a2ebf7201385aca58dca5bd3037c1091eb7a4c74783.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_item_with_resource_group_get_response_account_info.go rename to internal/sdk/virt/virtualization/900fe92346f20dddb36c0a2ebf7201385aca58dca5bd3037c1091eb7a4c74783.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_items_app_info_vmware_datacenter_info.go b/internal/sdk/virt/virtualization/9564d1cc4bc3a07e3df941d726e690556f8908701069d34cc6816c33015d1ede.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_items_app_info_vmware_datacenter_info.go rename to internal/sdk/virt/virtualization/9564d1cc4bc3a07e3df941d726e690556f8908701069d34cc6816c33015d1ede.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_v_cpu_info.go b/internal/sdk/virt/virtualization/9757db6ce80b3a7416a87c4a4f004ab0356fc942a702caccb8b5d5d9b82fbb9c.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_v_cpu_info.go rename to internal/sdk/virt/virtualization/9757db6ce80b3a7416a87c4a4f004ab0356fc942a702caccb8b5d5d9b82fbb9c.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_csp_info_network_info_subnet_group.go b/internal/sdk/virt/virtualization/9797ee88c8c3765322ffd60f532523c9a523749820f215bc3e81d7f46d31350e.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_csp_info_network_info_subnet_group.go rename to internal/sdk/virt/virtualization/9797ee88c8c3765322ffd60f532523c9a523749820f215bc3e81d7f46d31350e.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_disks_storage_system_info.go b/internal/sdk/virt/virtualization/98756e511499b16ea5ee4d7ba7f1b800fc3bf164e6e0f394cecae6484a2570ec.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_disks_storage_system_info.go rename to internal/sdk/virt/virtualization/98756e511499b16ea5ee4d7ba7f1b800fc3bf164e6e0f394cecae6484a2570ec.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_app_info_vmware_datacenters.go b/internal/sdk/virt/virtualization/9a87db9213b458e1546885fc143d568df2a07662a4f2fd7071ebad8aabef37ce.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_app_info_vmware_datacenters.go rename to internal/sdk/virt/virtualization/9a87db9213b458e1546885fc143d568df2a07662a4f2fd7071ebad8aabef37ce.go diff --git a/internal/sdk/virt/virtualization/3a8dd9384d9b70f551e377e147585c68212b8bc6a93b425790eccc4da4529cda.go b/internal/sdk/virt/virtualization/9b78ced63046d2dd104689d81d68c2fce7d08ce79467bf665b303457188a2588.go similarity index 100% rename from internal/sdk/virt/virtualization/3a8dd9384d9b70f551e377e147585c68212b8bc6a93b425790eccc4da4529cda.go rename to internal/sdk/virt/virtualization/9b78ced63046d2dd104689d81d68c2fce7d08ce79467bf665b303457188a2588.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_protection_job_info_asset_info.go b/internal/sdk/virt/virtualization/9e0e5e47f4b1402a224d225cf1788ae88701bfcc3462ba08588c71ce2016d060.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_protection_job_info_asset_info.go rename to internal/sdk/virt/virtualization/9e0e5e47f4b1402a224d225cf1788ae88701bfcc3462ba08588c71ce2016d060.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_network_info_network_cards.go b/internal/sdk/virt/virtualization/a2a9f29d769d521e570cfdb7a3783c659b326cf0a37b0b38495f75641cd8ba05.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_network_info_network_cards.go rename to internal/sdk/virt/virtualization/a2a9f29d769d521e570cfdb7a3783c659b326cf0a37b0b38495f75641cd8ba05.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_item_csp_machine_instance_types_get_response_csp_info_member2.go b/internal/sdk/virt/virtualization/a61034e89dc53cb2e52d21a8e4d4ab29e0e1312d05ec3e712d987baed7f61ac1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_item_csp_machine_instance_types_get_response_csp_info_member2.go rename to internal/sdk/virt/virtualization/a61034e89dc53cb2e52d21a8e4d4ab29e0e1312d05ec3e712d987baed7f61ac1.go diff --git a/internal/sdk/virt/virtualization/6a10f04bd3ca5adb1ad02a832e34c69aeac7ef66cb056d4e8d3942a557f08f70.go b/internal/sdk/virt/virtualization/a79f2224c0c65fc837f2fbf976b52cee8e7216b45cd4d2dcf0b854d38c14c4f1.go similarity index 100% rename from internal/sdk/virt/virtualization/6a10f04bd3ca5adb1ad02a832e34c69aeac7ef66cb056d4e8d3942a557f08f70.go rename to internal/sdk/virt/virtualization/a79f2224c0c65fc837f2fbf976b52cee8e7216b45cd4d2dcf0b854d38c14c4f1.go diff --git a/internal/sdk/virt/virtualization/397d19a751a7859940a22e3feb2cab59292d22fa4853aec8ea8db3fb97e45812.go b/internal/sdk/virt/virtualization/a8b70df5250bcf22aba3ba0732c0599851a3017ad2703d980073e53d30764054.go similarity index 100% rename from internal/sdk/virt/virtualization/397d19a751a7859940a22e3feb2cab59292d22fa4853aec8ea8db3fb97e45812.go rename to internal/sdk/virt/virtualization/a8b70df5250bcf22aba3ba0732c0599851a3017ad2703d980073e53d30764054.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member2_network_info_connections_vpc_info.go b/internal/sdk/virt/virtualization/a91b6225e59592686d1dbcb863ebae4e54e2b25e41ba0425dd22f667b5257f24.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member2_network_info_connections_vpc_info.go rename to internal/sdk/virt/virtualization/a91b6225e59592686d1dbcb863ebae4e54e2b25e41ba0425dd22f667b5257f24.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_storage_config_volume_info_encryption.go b/internal/sdk/virt/virtualization/ac55c7f4fb82cf3366d1d3972184c6ac98fd594dd258e1a56e71650e13f1f87b.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_storage_config_volume_info_encryption.go rename to internal/sdk/virt/virtualization/ac55c7f4fb82cf3366d1d3972184c6ac98fd594dd258e1a56e71650e13f1f87b.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_guest_info_vm_dns_setting_vm_dns_values.go b/internal/sdk/virt/virtualization/ae0d7a59aa0863808b5c6f5a4fca71a76ab1db5d92dadd7c0f38cd16ee871e87.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_guest_info_vm_dns_setting_vm_dns_values.go rename to internal/sdk/virt/virtualization/ae0d7a59aa0863808b5c6f5a4fca71a76ab1db5d92dadd7c0f38cd16ee871e87.go diff --git a/internal/sdk/virt/virtualization/f2a5f58ed8fbfd5a0a751b8b5823266a96bab2a46e7e2a968d858514878eb048.go b/internal/sdk/virt/virtualization/af3aab69ab4b5360857c7393e68d3b09510752f1c31d843240484c5b6182d2bc.go similarity index 100% rename from internal/sdk/virt/virtualization/f2a5f58ed8fbfd5a0a751b8b5823266a96bab2a46e7e2a968d858514878eb048.go rename to internal/sdk/virt/virtualization/af3aab69ab4b5360857c7393e68d3b09510752f1c31d843240484c5b6182d2bc.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_protection_job_info_protection_policy_info.go b/internal/sdk/virt/virtualization/b2d02931b1112848daeb8ad2d98910600c21cb5649a2e9f0f345e5d616917845.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_protection_job_info_protection_policy_info.go rename to internal/sdk/virt/virtualization/b2d02931b1112848daeb8ad2d98910600c21cb5649a2e9f0f345e5d616917845.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_customize_guest_os_post_request_body_linux_config_hostname.go b/internal/sdk/virt/virtualization/b5b9073e85633e61bbbc08f91e7083e29b65fafbc288b835f4cd649ef3f53633.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_customize_guest_os_post_request_body_linux_config_hostname.go rename to internal/sdk/virt/virtualization/b5b9073e85633e61bbbc08f91e7083e29b65fafbc288b835f4cd649ef3f53633.go diff --git a/internal/sdk/virt/virtualization/1284d897086db48221c5c1663dae1dbd4e4af2b37fe482eba2fbb9363b9ee450.go b/internal/sdk/virt/virtualization/b671c13095673eccd5337cbfa567480bc0286bb9877ea1fde73710f888e986a3.go similarity index 100% rename from internal/sdk/virt/virtualization/1284d897086db48221c5c1663dae1dbd4e4af2b37fe482eba2fbb9363b9ee450.go rename to internal/sdk/virt/virtualization/b671c13095673eccd5337cbfa567480bc0286bb9877ea1fde73710f888e986a3.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_app_info_vmware_tools_info.go b/internal/sdk/virt/virtualization/b6c9cb4965466cb36301d1ab794832cc2871e3a4a780b350a66ae91444a952f4.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_app_info_vmware_tools_info.go rename to internal/sdk/virt/virtualization/b6c9cb4965466cb36301d1ab794832cc2871e3a4a780b350a66ae91444a952f4.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_disks_app_info_vmware.go b/internal/sdk/virt/virtualization/bc426d801aa630d7c7942130e74cff11d9f0f6f2fb26dc1068a15a4853c3a654.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_disks_app_info_vmware.go rename to internal/sdk/virt/virtualization/bc426d801aa630d7c7942130e74cff11d9f0f6f2fb26dc1068a15a4853c3a654.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_guest_info_network_interfaces_info.go b/internal/sdk/virt/virtualization/bd7ebdeea2c582eec8ed556a251e03627a0e8e58921225af72e8e0fffa20fe7e.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_guest_info_network_interfaces_info.go rename to internal/sdk/virt/virtualization/bd7ebdeea2c582eec8ed556a251e03627a0e8e58921225af72e8e0fffa20fe7e.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info_vm_dns_setting_vm_dns_values.go b/internal/sdk/virt/virtualization/bd9f3f303f957613b041cdc3afc4c61e8636ec465f0794ae829e06e4ba870ce1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info_vm_dns_setting_vm_dns_values.go rename to internal/sdk/virt/virtualization/bd9f3f303f957613b041cdc3afc4c61e8636ec465f0794ae829e06e4ba870ce1.go diff --git a/internal/sdk/virt/virtualization/53a0f6e87edc00cbbec401cb23be3c750642a4404b4f81d286a67428deac0af6.go b/internal/sdk/virt/virtualization/c1ce2c5a2fccdbf2a806a624a160e1bede20065483e6fec186414957abf61a64.go similarity index 100% rename from internal/sdk/virt/virtualization/53a0f6e87edc00cbbec401cb23be3c750642a4404b4f81d286a67428deac0af6.go rename to internal/sdk/virt/virtualization/c1ce2c5a2fccdbf2a806a624a160e1bede20065483e6fec186414957abf61a64.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_virtual_disks_disk_config.go b/internal/sdk/virt/virtualization/c29dec06d6f232ce93438db53bd2cc9e00944c19bb7b0e3d94122af4e3b1a113.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_virtual_disks_disk_config.go rename to internal/sdk/virt/virtualization/c29dec06d6f232ce93438db53bd2cc9e00944c19bb7b0e3d94122af4e3b1a113.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_protection_job_info_protection_policy_info.go b/internal/sdk/virt/virtualization/c4195e33ddc1a62725cfacf36abd6d2780fda2a79e51eac96da44724b61ff16d.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_protection_job_info_protection_policy_info.go rename to internal/sdk/virt/virtualization/c4195e33ddc1a62725cfacf36abd6d2780fda2a79e51eac96da44724b61ff16d.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member2_network_info_security_groups.go b/internal/sdk/virt/virtualization/c485251a19b54f6f7bb807d616827350422176bf46440eed67a4340aae33cd3e.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member2_network_info_security_groups.go rename to internal/sdk/virt/virtualization/c485251a19b54f6f7bb807d616827350422176bf46440eed67a4340aae33cd3e.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_customize_guest_os_post_request_body_linux_config_dns_settings.go b/internal/sdk/virt/virtualization/c4bb6291a69755c17441258d787ea46de116ad35ac541293fa8099ade760eb89.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_customize_guest_os_post_request_body_linux_config_dns_settings.go rename to internal/sdk/virt/virtualization/c4bb6291a69755c17441258d787ea46de116ad35ac541293fa8099ade760eb89.go diff --git a/internal/sdk/virt/virtualization/dee266204931b68999a3cfcb2ecd0ef06b342fa44377b094f1cb1c918a393e8a.go b/internal/sdk/virt/virtualization/c57a9c5003a0fd79f46052faf0b04840288321c77d757113f165604e28afc13f.go similarity index 100% rename from internal/sdk/virt/virtualization/dee266204931b68999a3cfcb2ecd0ef06b342fa44377b094f1cb1c918a393e8a.go rename to internal/sdk/virt/virtualization/c57a9c5003a0fd79f46052faf0b04840288321c77d757113f165604e28afc13f.go diff --git a/internal/sdk/virt/virtualization/aae7cdff1839c4dcedb986f08a17024d9fe9feb52d8527dcd70026c1ff36323c.go b/internal/sdk/virt/virtualization/c7a792bd7de3206c3b2fa616539725254ff4de8933c4f4348e0e27abb53f78fb.go similarity index 100% rename from internal/sdk/virt/virtualization/aae7cdff1839c4dcedb986f08a17024d9fe9feb52d8527dcd70026c1ff36323c.go rename to internal/sdk/virt/virtualization/c7a792bd7de3206c3b2fa616539725254ff4de8933c4f4348e0e27abb53f78fb.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_protection_job_info_protection_policy_info.go b/internal/sdk/virt/virtualization/c8903bf28f348388fa97b4a34c3344a8949cd5b4ee5839ba0a9b9822ec2e8cc0.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_protection_job_info_protection_policy_info.go rename to internal/sdk/virt/virtualization/c8903bf28f348388fa97b4a34c3344a8949cd5b4ee5839ba0a9b9822ec2e8cc0.go diff --git a/internal/sdk/virt/virtualization/bac747b21543ce5dd1a16e946df8e1d3a57d4a0219680a54ed800747d7401859.go b/internal/sdk/virt/virtualization/c937bb1cc19994512b0e54afa85b61ec557d1866190de6681544fa8e413a1eda.go similarity index 100% rename from internal/sdk/virt/virtualization/bac747b21543ce5dd1a16e946df8e1d3a57d4a0219680a54ed800747d7401859.go rename to internal/sdk/virt/virtualization/c937bb1cc19994512b0e54afa85b61ec557d1866190de6681544fa8e413a1eda.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info_network_info_subnet_group.go b/internal/sdk/virt/virtualization/cba23bd8119c8668fa297db47fd6296b0005bc78dd81c8b04c6425d8a5419788.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info_network_info_subnet_group.go rename to internal/sdk/virt/virtualization/cba23bd8119c8668fa297db47fd6296b0005bc78dd81c8b04c6425d8a5419788.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_ebs_info_ebs_optimized_info.go b/internal/sdk/virt/virtualization/cba4383de874492d1ffe34699285e7bc5bf89d72eeb177c1880a798d3b305f1e.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_ebs_info_ebs_optimized_info.go rename to internal/sdk/virt/virtualization/cba4383de874492d1ffe34699285e7bc5bf89d72eeb177c1880a798d3b305f1e.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_placement_group_info.go b/internal/sdk/virt/virtualization/cd88b30b6221307eab03e07471a3bb338f1465d31ce4f7c5e66e1b5b94e2f6b8.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1_placement_group_info.go rename to internal/sdk/virt/virtualization/cd88b30b6221307eab03e07471a3bb338f1465d31ce4f7c5e66e1b5b94e2f6b8.go diff --git a/internal/sdk/virt/virtualization/94ae48186063265e8ce543cdca9eb53289f99e678cba57f2efa609e1891d09f6.go b/internal/sdk/virt/virtualization/cee9173b59b85c3c9ae805975d7da08a1dda00c4bda4ae3bf4fc21797def746e.go similarity index 100% rename from internal/sdk/virt/virtualization/94ae48186063265e8ce543cdca9eb53289f99e678cba57f2efa609e1891d09f6.go rename to internal/sdk/virt/virtualization/cee9173b59b85c3c9ae805975d7da08a1dda00c4bda4ae3bf4fc21797def746e.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member1_network_info_vpc_info.go b/internal/sdk/virt/virtualization/d056d07e72b5421a71557b9fbf92c1e9369e5bbe503052b8a3bfda26badaa774.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member1_network_info_vpc_info.go rename to internal/sdk/virt/virtualization/d056d07e72b5421a71557b9fbf92c1e9369e5bbe503052b8a3bfda26badaa774.go diff --git a/internal/sdk/virt/virtualization/c46c6bd3ef8791a0c7115b18870a86eef6f9a7432254211b2569a995a600bd81.go b/internal/sdk/virt/virtualization/d0ae223fccc8b35037775af908d32316c3050c2f202474ca51cdd85a91b903d0.go similarity index 100% rename from internal/sdk/virt/virtualization/c46c6bd3ef8791a0c7115b18870a86eef6f9a7432254211b2569a995a600bd81.go rename to internal/sdk/virt/virtualization/d0ae223fccc8b35037775af908d32316c3050c2f202474ca51cdd85a91b903d0.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member1_network_info_subnet_info.go b/internal/sdk/virt/virtualization/d17c94515e7f4b82d05a4f6e31201598f57bb3a75a907439ec67352da02aafb8.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member1_network_info_subnet_info.go rename to internal/sdk/virt/virtualization/d17c94515e7f4b82d05a4f6e31201598f57bb3a75a907439ec67352da02aafb8.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_guest_info_vm_dns_setting_vm_dns.go b/internal/sdk/virt/virtualization/d245bfbe8c04e2a249a514de1981cc93acfafa629b40374ca34b2fad670abc3e.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_guest_info_vm_dns_setting_vm_dns.go rename to internal/sdk/virt/virtualization/d245bfbe8c04e2a249a514de1981cc93acfafa629b40374ca34b2fad670abc3e.go diff --git a/internal/sdk/virt/virtualization/e91f2371910442299e412e5d278e180cb087ed9e8491d0ac1e14bc96cf01dbb6.go b/internal/sdk/virt/virtualization/d52a9767cba443966173bd60b93144d42c0b902b0a5af4acb4df8dd3251158da.go similarity index 100% rename from internal/sdk/virt/virtualization/e91f2371910442299e412e5d278e180cb087ed9e8491d0ac1e14bc96cf01dbb6.go rename to internal/sdk/virt/virtualization/d52a9767cba443966173bd60b93144d42c0b902b0a5af4acb4df8dd3251158da.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_network_adapters_network_details.go b/internal/sdk/virt/virtualization/d59dd77e616fdbcf9e938179594a380a5b8c6e28606c2891e44bd699580a5fad.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_network_adapters_network_details.go rename to internal/sdk/virt/virtualization/d59dd77e616fdbcf9e938179594a380a5b8c6e28606c2891e44bd699580a5fad.go diff --git a/internal/sdk/virt/virtualization/43329fb3f7f0a47a35df4d60fa920d3f597c02081d99081c0babbcb2d23f2bbc.go b/internal/sdk/virt/virtualization/d65166e83a361f1cdcc3a29680fcd1bdbe14c8ca7dc5945fd179ae5d1956acc0.go similarity index 100% rename from internal/sdk/virt/virtualization/43329fb3f7f0a47a35df4d60fa920d3f597c02081d99081c0babbcb2d23f2bbc.go rename to internal/sdk/virt/virtualization/d65166e83a361f1cdcc3a29680fcd1bdbe14c8ca7dc5945fd179ae5d1956acc0.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_machine_instance_attachment_info_attached_to.go b/internal/sdk/virt/virtualization/d73174994de0904ebc8539be464739b4570772cad5fcf0c86a91f6a0f920258a.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_machine_instance_attachment_info_attached_to.go rename to internal/sdk/virt/virtualization/d73174994de0904ebc8539be464739b4570772cad5fcf0c86a91f6a0f920258a.go diff --git a/internal/sdk/virt/virtualization/146aaecc0f9c0667bc5b320c848a096a188f8c1b23d649e2fe4ac931a67f87e0.go b/internal/sdk/virt/virtualization/d81ba7607a9727ccd6e5a96d61f00969805f3459ade84f9e95f61f85e00ec037.go similarity index 100% rename from internal/sdk/virt/virtualization/146aaecc0f9c0667bc5b320c848a096a188f8c1b23d649e2fe4ac931a67f87e0.go rename to internal/sdk/virt/virtualization/d81ba7607a9727ccd6e5a96d61f00969805f3459ade84f9e95f61f85e00ec037.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member1_csp_tags.go b/internal/sdk/virt/virtualization/dfb8fecfb04102ac1a2b20335aa1ae3b3548cc240592aad4772810008e06d380.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member1_csp_tags.go rename to internal/sdk/virt/virtualization/dfb8fecfb04102ac1a2b20335aa1ae3b3548cc240592aad4772810008e06d380.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_network_adapters_network_details.go b/internal/sdk/virt/virtualization/e1dfa66bc742fcfac514b9d4354eb10c93b97dcac2025f48f9ed01ccb39d8dc5.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_network_adapters_network_details.go rename to internal/sdk/virt/virtualization/e1dfa66bc742fcfac514b9d4354eb10c93b97dcac2025f48f9ed01ccb39d8dc5.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_protection_job_info_protection_policy_info.go b/internal/sdk/virt/virtualization/e2d9e98ac98f32abfd7ed1ccc65ece44a6363f1f6c2deb238e2510281095b258.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_protection_job_info_protection_policy_info.go rename to internal/sdk/virt/virtualization/e2d9e98ac98f32abfd7ed1ccc65ece44a6363f1f6c2deb238e2510281095b258.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_app_info_vmware_resource_pool_info.go b/internal/sdk/virt/virtualization/e7ca840096d0be16014a88b3e6c409baa5151a8fff7e3771f7ef9e03a171333f.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_app_info_vmware_resource_pool_info.go rename to internal/sdk/virt/virtualization/e7ca840096d0be16014a88b3e6c409baa5151a8fff7e3771f7ef9e03a171333f.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/e94f2afeee082068119203cca21747488d06b67267c7ad91b22d0af6f7519dc9.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/e94f2afeee082068119203cca21747488d06b67267c7ad91b22d0af6f7519dc9.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member2_capabilities.go b/internal/sdk/virt/virtualization/ea36c7020c8e5d575c9c652cde86615ab731eabf50d042009eada0eb3a793ea7.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member2_capabilities.go rename to internal/sdk/virt/virtualization/ea36c7020c8e5d575c9c652cde86615ab731eabf50d042009eada0eb3a793ea7.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_app_info_vmware_datacenter_info.go b/internal/sdk/virt/virtualization/f01154f4bb53cf0fe898ff98658ae20efb4b18123a2ff57960e1ba6501994e1a.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_app_info_vmware_datacenter_info.go rename to internal/sdk/virt/virtualization/f01154f4bb53cf0fe898ff98658ae20efb4b18123a2ff57960e1ba6501994e1a.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_items_app_info_vmware_datacenter_info.go b/internal/sdk/virt/virtualization/f1051ee2b3b87f88600a15e18cc909cd846d13f0699abdccb0ad0f13e41a9f6d.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_items_app_info_vmware_datacenter_info.go rename to internal/sdk/virt/virtualization/f1051ee2b3b87f88600a15e18cc909cd846d13f0699abdccb0ad0f13e41a9f6d.go diff --git a/internal/sdk/virt/virtualization/eb8c26af446c704e7f4fedb1da63cea09510e83fa654408580933859e80c7f12.go b/internal/sdk/virt/virtualization/f30809423622a40ce8d06a2d49e5635bc74a1c00bc31d6e3baa4499782b6a938.go similarity index 100% rename from internal/sdk/virt/virtualization/eb8c26af446c704e7f4fedb1da63cea09510e83fa654408580933859e80c7f12.go rename to internal/sdk/virt/virtualization/f30809423622a40ce8d06a2d49e5635bc74a1c00bc31d6e3baa4499782b6a938.go diff --git a/internal/sdk/virt/virtualization/56ddbc401a90fd9e56b6df8d31c2e8c80f0313178635d4250f4e4e05578b2f0a.go b/internal/sdk/virt/virtualization/f31d1f2920a11f61a5525471d59614201a27f9878182def32b72bfe6374bd866.go similarity index 100% rename from internal/sdk/virt/virtualization/56ddbc401a90fd9e56b6df8d31c2e8c80f0313178635d4250f4e4e05578b2f0a.go rename to internal/sdk/virt/virtualization/f31d1f2920a11f61a5525471d59614201a27f9878182def32b72bfe6374bd866.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_app_info_vmware_datacenter_info.go b/internal/sdk/virt/virtualization/f45b992b738f7c87a4a043ca66257042f0e4845f56f34fe724036c23709068d5.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_app_info_vmware_datacenter_info.go rename to internal/sdk/virt/virtualization/f45b992b738f7c87a4a043ca66257042f0e4845f56f34fe724036c23709068d5.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/f479cedce73d8073a0eaf01bdaccfd77030522f47e648045abac1a30948b9b1a.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/f479cedce73d8073a0eaf01bdaccfd77030522f47e648045abac1a30948b9b1a.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_app_info_vmware_datacenter_info.go b/internal/sdk/virt/virtualization/f498d83656093393da67aa9d002733d676f90d21c73eb7aaf9a857b6e232746c.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_app_info_vmware_datacenter_info.go rename to internal/sdk/virt/virtualization/f498d83656093393da67aa9d002733d676f90d21c73eb7aaf9a857b6e232746c.go diff --git a/internal/sdk/virt/virtualization/bd517d384071e7913394f668d0ccaad657ef41bef712ad9d0a48cd91e33b7bd5.go b/internal/sdk/virt/virtualization/f565790db7c8f66b63a851d570830690524728987c4818fbd3a45547355425a3.go similarity index 100% rename from internal/sdk/virt/virtualization/bd517d384071e7913394f668d0ccaad657ef41bef712ad9d0a48cd91e33b7bd5.go rename to internal/sdk/virt/virtualization/f565790db7c8f66b63a851d570830690524728987c4818fbd3a45547355425a3.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member2_location_info.go b/internal/sdk/virt/virtualization/f7b5832d40f00e7861dd362b0538ff7070d24759f823718c33a1861e040bf359.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member2_location_info.go rename to internal/sdk/virt/virtualization/f7b5832d40f00e7861dd362b0538ff7070d24759f823718c33a1861e040bf359.go diff --git a/internal/sdk/virt/virtualization/e5b77754b380092aeaf1b0d1e1214eb66d2b16c071685733db3910ed9aff312a.go b/internal/sdk/virt/virtualization/f7dcea331f904b54f078cc1bf02d2b3ae50f20c87abf75afabf0f5671faafe2b.go similarity index 100% rename from internal/sdk/virt/virtualization/e5b77754b380092aeaf1b0d1e1214eb66d2b16c071685733db3910ed9aff312a.go rename to internal/sdk/virt/virtualization/f7dcea331f904b54f078cc1bf02d2b3ae50f20c87abf75afabf0f5671faafe2b.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_item_csp_machine_instance_types_get_response_csp_info_member1.go b/internal/sdk/virt/virtualization/f8ca19f460ce2ef49c2033dbe286553593e2b237df19505a26a25cb00c306754.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_item_csp_machine_instance_types_get_response_csp_info_member1.go rename to internal/sdk/virt/virtualization/f8ca19f460ce2ef49c2033dbe286553593e2b237df19505a26a25cb00c306754.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member1_block_device_mappings_ebs.go b/internal/sdk/virt/virtualization/fc0a40520a15a1f9d02162bf13365b605a4307ddb265b90eb49317cd1d555635.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member1_block_device_mappings_ebs.go rename to internal/sdk/virt/virtualization/fc0a40520a15a1f9d02162bf13365b605a4307ddb265b90eb49317cd1d555635.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_protection_job_info_asset_info.go b/internal/sdk/virt/virtualization/ff8357f6dd97c9a51aa64d0a87dcf7342c8474b488dae5b1bf5cdb506b686d10.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_protection_job_info_asset_info.go rename to internal/sdk/virt/virtualization/ff8357f6dd97c9a51aa64d0a87dcf7342c8474b488dae5b1bf5cdb506b686d10.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_items_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_escaped_items_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_items_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_escaped_items_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_items_inventory_refresh_info_inventory_type.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_escaped_items_escaped_inventory_refresh_info_escaped_inventory_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_items_inventory_refresh_info_inventory_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_escaped_items_escaped_inventory_refresh_info_escaped_inventory_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_items_inventory_refresh_info_status.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_escaped_items_escaped_inventory_refresh_info_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_items_inventory_refresh_info_status.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_escaped_items_escaped_inventory_refresh_info_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_items_validation_status.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_escaped_items_escaped_validation_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_items_validation_status.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_get_response_escaped_items_escaped_validation_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_request_body_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_request_body_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_request_body_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_request_body_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_inventory_refresh_info_inventory_type.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_escaped_inventory_refresh_info_escaped_inventory_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_inventory_refresh_info_inventory_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_escaped_inventory_refresh_info_escaped_inventory_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_inventory_refresh_info_status.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_escaped_inventory_refresh_info_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_inventory_refresh_info_status.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_escaped_inventory_refresh_info_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_validation_status.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_escaped_validation_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_validation_status.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/csp_accounts_post_response_escaped_validation_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_inventory_refresh_info_inventory_type.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_escaped_inventory_refresh_info_escaped_inventory_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_inventory_refresh_info_inventory_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_escaped_inventory_refresh_info_escaped_inventory_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_inventory_refresh_info_status.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_escaped_inventory_refresh_info_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_inventory_refresh_info_status.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_escaped_inventory_refresh_info_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_validation_status.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_escaped_validation_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_validation_status.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/account_get_response_escaped_validation_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspresourcegroups/csp_resource_groups_get_response_items_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspresourcegroups/csp_resource_groups_get_response_escaped_items_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspresourcegroups/csp_resource_groups_get_response_items_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspresourcegroups/csp_resource_groups_get_response_escaped_items_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspresourcegroups/item/with_resource_group_get_response_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspresourcegroups/item/with_resource_group_get_response_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspresourcegroups/item/with_resource_group_get_response_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspresourcegroups/item/with_resource_group_get_response_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubnets/csp_subnets_get_response_items_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubnets/csp_subnets_get_response_escaped_items_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubnets/csp_subnets_get_response_items_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubnets/csp_subnets_get_response_escaped_items_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubnets/item/with_subnet_get_response_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubnets/item/with_subnet_get_response_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubnets/item/with_subnet_get_response_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubnets/item/with_subnet_get_response_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubscriptions/csp_subscriptions_get_response_items_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubscriptions/csp_subscriptions_get_response_escaped_items_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubscriptions/csp_subscriptions_get_response_items_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubscriptions/csp_subscriptions_get_response_escaped_items_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubscriptions/item/with_subscription_get_response_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubscriptions/item/with_subscription_get_response_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubscriptions/item/with_subscription_get_response_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspsubscriptions/item/with_subscription_get_response_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspvpcs/csp_vpcs_get_response_items_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspvpcs/csp_vpcs_get_response_escaped_items_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspvpcs/csp_vpcs_get_response_items_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspvpcs/csp_vpcs_get_response_escaped_items_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspvpcs/item/with_vpc_get_response_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspvpcs/item/with_vpc_get_response_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspvpcs/item/with_vpc_get_response_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspaccounts/item/cspvpcs/item/with_vpc_get_response_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineimages/csp_machine_images_get_response_items_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineimages/csp_machine_images_get_response_escaped_items_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineimages/csp_machine_images_get_response_items_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineimages/csp_machine_images_get_response_escaped_items_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineimages/item/csp_machine_images_get_response_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineimages/item/csp_machine_images_get_response_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineimages/item/csp_machine_images_get_response_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineimages/item/csp_machine_images_get_response_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_items_protection_job_info_schedule_info_status.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/634c7398680882670b7bdcf21289cb2a77a16dcf94100e080796cdf32ebc732c.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_items_protection_job_info_schedule_info_status.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/634c7398680882670b7bdcf21289cb2a77a16dcf94100e080796cdf32ebc732c.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_items_backup_info_backup_type.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_escaped_items_escaped_backup_info_escaped_backup_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_items_backup_info_backup_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_escaped_items_escaped_backup_info_escaped_backup_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_items_csp_info_member1_state.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_escaped_items_escaped_csp_info_member1_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_items_csp_info_member1_state.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_escaped_items_escaped_csp_info_member1_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_items_csp_info_member2_state.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_escaped_items_escaped_csp_info_member2_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_items_csp_info_member2_state.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_escaped_items_escaped_csp_info_member2_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_items_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_escaped_items_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_items_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_escaped_items_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_items_protection_status.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_escaped_items_escaped_protection_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_items_protection_status.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_escaped_items_escaped_protection_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_items_state.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_escaped_items_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_items_state.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_get_response_escaped_items_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_post_request_body_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_post_request_body_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_post_request_body_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/csp_machine_instances_post_request_body_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_backup_info_backup_type.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_escaped_backup_info_escaped_backup_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_backup_info_backup_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_escaped_backup_info_escaped_backup_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_csp_info_member1_state.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_escaped_csp_info_member1_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_csp_info_member1_state.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_escaped_csp_info_member1_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_csp_info_member2_state.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_escaped_csp_info_member2_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_csp_info_member2_state.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_escaped_csp_info_member2_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_protection_job_info_schedule_info_status.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_escaped_protection_job_info_escaped_schedule_info_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_protection_job_info_schedule_info_status.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_escaped_protection_job_info_escaped_schedule_info_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_protection_status.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_escaped_protection_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_protection_status.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_escaped_protection_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_state.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_state.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstances/item/csp_machine_instances_get_response_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/4562a78af8009d14101d77b93b8695a004e510c48d4bd9bbce271acaede61871.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/54bedf1b4e1e039a17bc5990af80cd6e14d4628c1ea026bd7c04ff13d7e9fcec.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/4562a78af8009d14101d77b93b8695a004e510c48d4bd9bbce271acaede61871.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/54bedf1b4e1e039a17bc5990af80cd6e14d4628c1ea026bd7c04ff13d7e9fcec.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/csp_machine_instance_types_get_response_items_csp_info_member1_supported_virtualization_types.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/903710565e599de4e6004b0513231efb85a730562c280cff595e8abe38acb9ad.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/csp_machine_instance_types_get_response_items_csp_info_member1_supported_virtualization_types.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/903710565e599de4e6004b0513231efb85a730562c280cff595e8abe38acb9ad.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/csp_machine_instance_types_get_response_items_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/csp_machine_instance_types_get_response_escaped_items_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/csp_machine_instance_types_get_response_items_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/csp_machine_instance_types_get_response_escaped_items_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/csp_machine_instance_types_get_response_items_csp_info_member1_supported_usage_classes.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/df09994afba48aee2a226d0ba7191c0d1698d17e0baed12c94e9c67d74dddddd.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/csp_machine_instance_types_get_response_items_csp_info_member1_supported_usage_classes.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/df09994afba48aee2a226d0ba7191c0d1698d17e0baed12c94e9c67d74dddddd.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/ca502c11bab292d092e38fceb052d97581581a7ed85b4d3f9ee9f2b56d53af1d.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/e98cd21cddd470d2929e58d3242c04297cb6e5e141b1c402570a329f5740e7ad.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/ca502c11bab292d092e38fceb052d97581581a7ed85b4d3f9ee9f2b56d53af1d.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/e98cd21cddd470d2929e58d3242c04297cb6e5e141b1c402570a329f5740e7ad.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/csp_machine_instance_types_get_response_items_csp_info_member1_supported_root_device_types.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/f6d29325b89a1dcbac308757a3bc3e218397b8d18bd2e7f71202d4cd583a0768.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/csp_machine_instance_types_get_response_items_csp_info_member1_supported_root_device_types.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/f6d29325b89a1dcbac308757a3bc3e218397b8d18bd2e7f71202d4cd583a0768.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_csp_info_member1_processor_info_supported_architectures.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/6afe55219ad42db40fc191a0ccd9387ffcb70e3e1f77b17221e228dcf4cece5f.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_csp_info_member1_processor_info_supported_architectures.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/6afe55219ad42db40fc191a0ccd9387ffcb70e3e1f77b17221e228dcf4cece5f.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_csp_info_member1_supported_virtualization_types.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/866bcf57003d5b9cde424aad7d6ae7b01023614a202d3b0f4f8b4face54091a2.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_csp_info_member1_supported_virtualization_types.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/866bcf57003d5b9cde424aad7d6ae7b01023614a202d3b0f4f8b4face54091a2.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_csp_info_member1_supported_root_device_types.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_escaped_csp_info_member1_escaped_supported_root_device_types.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_csp_info_member1_supported_root_device_types.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_escaped_csp_info_member1_escaped_supported_root_device_types.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_csp_info_member1_supported_usage_classes.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_escaped_csp_info_member1_escaped_supported_usage_classes.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_csp_info_member1_supported_usage_classes.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_escaped_csp_info_member1_escaped_supported_usage_classes.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_csp_info_member1_placement_group_info_supported_strategies.go b/internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/fa2a08583ec2bd4f502c68bd100dcd1b41609f351deca409c671a67e72477d69.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/csp_machine_instance_types_get_response_csp_info_member1_placement_group_info_supported_strategies.go rename to internal/sdk/virt/virtualization/v1beta1/cspmachineinstancetypes/item/fa2a08583ec2bd4f502c68bd100dcd1b41609f351deca409c671a67e72477d69.go diff --git a/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_items_protection_job_info_schedule_info_status.go b/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/27b3e22c4df191674d1f015c508d1f689be7471f6ad5ae700b7478d8218ad96e.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_items_protection_job_info_schedule_info_status.go rename to internal/sdk/virt/virtualization/v1beta1/csprdsinstances/27b3e22c4df191674d1f015c508d1f689be7471f6ad5ae700b7478d8218ad96e.go diff --git a/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_items_backup_info_type.go b/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_escaped_items_escaped_backup_info_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_items_backup_info_type.go rename to internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_escaped_items_escaped_backup_info_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_items_protection_status.go b/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_escaped_items_escaped_protection_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_items_protection_status.go rename to internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_escaped_items_escaped_protection_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_items_refresh_info_status.go b/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_escaped_items_escaped_refresh_info_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_items_refresh_info_status.go rename to internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_escaped_items_escaped_refresh_info_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_items_state.go b/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_escaped_items_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_items_state.go rename to internal/sdk/virt/virtualization/v1beta1/csprdsinstances/csp_rds_instances_get_response_escaped_items_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_backup_info_type.go b/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_escaped_backup_info_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_backup_info_type.go rename to internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_escaped_backup_info_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_protection_job_info_schedule_info_status.go b/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_escaped_protection_job_info_escaped_schedule_info_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_protection_job_info_schedule_info_status.go rename to internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_escaped_protection_job_info_escaped_schedule_info_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_protection_status.go b/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_escaped_protection_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_protection_status.go rename to internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_escaped_protection_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_refresh_info_status.go b/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_escaped_refresh_info_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_refresh_info_status.go rename to internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_escaped_refresh_info_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_state.go b/internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_state.go rename to internal/sdk/virt/virtualization/v1beta1/csprdsinstances/item/csp_rds_instances_get_response_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_items_protection_job_info_schedule_info_status.go b/internal/sdk/virt/virtualization/v1beta1/cspvolumes/79f2f21fece1d296efc3b7ebd02b7af4f4d822c79da89092ce477502fdd198f3.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_items_protection_job_info_schedule_info_status.go rename to internal/sdk/virt/virtualization/v1beta1/cspvolumes/79f2f21fece1d296efc3b7ebd02b7af4f4d822c79da89092ce477502fdd198f3.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_items_backup_info_backup_type.go b/internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_escaped_items_escaped_backup_info_escaped_backup_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_items_backup_info_backup_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_escaped_items_escaped_backup_info_escaped_backup_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_items_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_escaped_items_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_items_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_escaped_items_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_items_protection_status.go b/internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_escaped_items_escaped_protection_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_items_protection_status.go rename to internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_escaped_items_escaped_protection_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_items_state.go b/internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_escaped_items_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_items_state.go rename to internal/sdk/virt/virtualization/v1beta1/cspvolumes/csp_volumes_get_response_escaped_items_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_backup_info_backup_type.go b/internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_escaped_backup_info_escaped_backup_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_backup_info_backup_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_escaped_backup_info_escaped_backup_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_csp_type.go b/internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_escaped_csp_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_csp_type.go rename to internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_escaped_csp_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_protection_job_info_schedule_info_status.go b/internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_escaped_protection_job_info_escaped_schedule_info_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_protection_job_info_schedule_info_status.go rename to internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_escaped_protection_job_info_escaped_schedule_info_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_protection_status.go b/internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_escaped_protection_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_protection_status.go rename to internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_escaped_protection_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_state.go b/internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_state.go rename to internal/sdk/virt/virtualization/v1beta1/cspvolumes/item/csp_volumes_get_response_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_replication_info_partner_details_vendor_name.go b/internal/sdk/virt/virtualization/v1beta1/datastores/38c72cda99d15f47d52d99ccc527aae67f9c5805d597e2f4686e0cd7fa5c0b5f.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_replication_info_partner_details_vendor_name.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/38c72cda99d15f47d52d99ccc527aae67f9c5805d597e2f4686e0cd7fa5c0b5f.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_allowed_operations.go b/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_allowed_operations.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_allowed_operations.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_allowed_operations.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_app_type.go b/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_app_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_app_type.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_app_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_datastore_classification.go b/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_datastore_classification.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_datastore_classification.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_datastore_classification.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_datastore_type.go b/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_datastore_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_datastore_type.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_datastore_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_protection_policy_applied_at_info_type.go b/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_protection_policy_applied_at_info_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_protection_policy_applied_at_info_type.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_protection_policy_applied_at_info_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_protection_status.go b/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_protection_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_protection_status.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_protection_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_replication_info_partner_details_mode.go b/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_replication_info_escaped_partner_details_escaped_mode.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_replication_info_partner_details_mode.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_replication_info_escaped_partner_details_escaped_mode.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_state.go b/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_state.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_status.go b/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_status.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_volumes_info_storage_system_info_type.go b/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_volumes_info_escaped_storage_system_info_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_items_volumes_info_storage_system_info_type.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/datastores_get_response_escaped_items_escaped_volumes_info_escaped_storage_system_info_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_post_request_body_datastore_type.go b/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_post_request_body_escaped_datastore_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/datastores_post_request_body_datastore_type.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/datastores_post_request_body_escaped_datastore_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_post_request_body_volume_info_encryption_cipher.go b/internal/sdk/virt/virtualization/v1beta1/datastores/datastores_post_request_body_escaped_volume_info_escaped_encryption_escaped_cipher.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/datastores_post_request_body_volume_info_encryption_cipher.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/datastores_post_request_body_escaped_volume_info_escaped_encryption_escaped_cipher.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_allowed_operations.go b/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_allowed_operations.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_allowed_operations.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_allowed_operations.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_app_type.go b/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_app_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_app_type.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_app_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_datastore_classification.go b/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_datastore_classification.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_datastore_classification.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_datastore_classification.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_datastore_type.go b/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_datastore_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_datastore_type.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_datastore_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_protection_policy_applied_at_info_type.go b/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_protection_policy_applied_at_info_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_protection_policy_applied_at_info_type.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_protection_policy_applied_at_info_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_protection_status.go b/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_protection_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_protection_status.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_protection_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_replication_info_partner_details_mode.go b/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_replication_info_escaped_partner_details_escaped_mode.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_replication_info_partner_details_mode.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_replication_info_escaped_partner_details_escaped_mode.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_replication_info_partner_details_vendor_name.go b/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_replication_info_escaped_partner_details_escaped_vendor_name.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_replication_info_partner_details_vendor_name.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_replication_info_escaped_partner_details_escaped_vendor_name.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_state.go b/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_state.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_status.go b/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_status.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_volumes_info_storage_system_info_type.go b/internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_volumes_info_escaped_storage_system_info_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_volumes_info_storage_system_info_type.go rename to internal/sdk/virt/virtualization/v1beta1/datastores/item/datastores_get_response_escaped_volumes_info_escaped_storage_system_info_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_items_app_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_escaped_items_escaped_app_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_items_app_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_escaped_items_escaped_app_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_items_cluster_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_escaped_items_escaped_cluster_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_items_cluster_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_escaped_items_escaped_cluster_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_items_state.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_escaped_items_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_items_state.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_escaped_items_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_items_status.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_escaped_items_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_items_status.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/hypervisor_clusters_get_response_escaped_items_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_app_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_escaped_app_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_app_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_escaped_app_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_cluster_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_escaped_cluster_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_cluster_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_escaped_cluster_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_state.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_state.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_status.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_status.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorclusters/item/cluster_get_response_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_items_app_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_escaped_items_escaped_app_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_items_app_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_escaped_items_escaped_app_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_items_host_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_escaped_items_escaped_host_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_items_host_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_escaped_items_escaped_host_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_items_parent_info_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_escaped_items_escaped_parent_info_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_items_parent_info_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_escaped_items_escaped_parent_info_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_items_state.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_escaped_items_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_items_state.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_escaped_items_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_items_status.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_escaped_items_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_items_status.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_escaped_items_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_items_storage_adapters_info_status.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_escaped_items_escaped_storage_adapters_info_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_items_storage_adapters_info_status.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/hypervisor_hosts_get_response_escaped_items_escaped_storage_adapters_info_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_app_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_escaped_app_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_app_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_escaped_app_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_host_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_escaped_host_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_host_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_escaped_host_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_parent_info_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_escaped_parent_info_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_parent_info_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_escaped_parent_info_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_state.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_state.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_status.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_status.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_storage_adapters_info_status.go b/internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_escaped_storage_adapters_info_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_storage_adapters_info_status.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisorhosts/item/host_get_response_escaped_storage_adapters_info_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_items_app_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_escaped_items_escaped_app_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_items_app_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_escaped_items_escaped_app_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_items_hypervisor_manager_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_escaped_items_escaped_hypervisor_manager_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_items_hypervisor_manager_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_escaped_items_escaped_hypervisor_manager_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_items_state.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_escaped_items_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_items_state.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_escaped_items_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_items_status.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_escaped_items_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_items_status.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/hypervisor_managers_get_response_escaped_items_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/folders/folders_get_response_items_folder_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/folders/folders_get_response_escaped_items_escaped_folder_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/folders/folders_get_response_items_folder_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/folders/folders_get_response_escaped_items_escaped_folder_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/folders/item/folder_get_response_folder_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/folders/item/folder_get_response_escaped_folder_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/folders/item/folder_get_response_folder_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/folders/item/folder_get_response_escaped_folder_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_app_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_escaped_app_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_app_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_escaped_app_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_hypervisor_manager_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_escaped_hypervisor_manager_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_hypervisor_manager_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_escaped_hypervisor_manager_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_state.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_state.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_status.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_status.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisor_get_response_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisorlibraryimages/hypervisor_library_images_get_response_items_file_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisorlibraryimages/hypervisor_library_images_get_response_escaped_items_escaped_file_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisorlibraryimages/hypervisor_library_images_get_response_items_file_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisorlibraryimages/hypervisor_library_images_get_response_escaped_items_escaped_file_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisorlibraryimages/item/hypervisor_library_image_get_response_file_type.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisorlibraryimages/item/hypervisor_library_image_get_response_escaped_file_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisorlibraryimages/item/hypervisor_library_image_get_response_file_type.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/hypervisorlibraryimages/item/hypervisor_library_image_get_response_escaped_file_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/item/network_get_response_state.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/item/network_get_response_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/item/network_get_response_state.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/item/network_get_response_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/item/network_get_response_status.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/item/network_get_response_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/item/network_get_response_status.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/item/network_get_response_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/networks_get_response_items_state.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/networks_get_response_escaped_items_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/networks_get_response_items_state.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/networks_get_response_escaped_items_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/networks_get_response_items_status.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/networks_get_response_escaped_items_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/networks_get_response_items_status.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/networks/networks_get_response_escaped_items_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/item/pool_get_response_state.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/item/pool_get_response_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/item/pool_get_response_state.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/item/pool_get_response_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/item/pool_get_response_status.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/item/pool_get_response_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/item/pool_get_response_status.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/item/pool_get_response_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/resource_pools_get_response_items_state.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/resource_pools_get_response_escaped_items_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/resource_pools_get_response_items_state.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/resource_pools_get_response_escaped_items_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/resource_pools_get_response_items_status.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/resource_pools_get_response_escaped_items_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/resource_pools_get_response_items_status.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/resourcepools/resource_pools_get_response_escaped_items_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/tags/item/tag_get_response_state.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/tags/item/tag_get_response_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/tags/item/tag_get_response_state.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/tags/item/tag_get_response_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/tags/tags_get_response_items_state.go b/internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/tags/tags_get_response_escaped_items_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/tags/tags_get_response_items_state.go rename to internal/sdk/virt/virtualization/v1beta1/hypervisormanagers/item/tags/tags_get_response_escaped_items_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_app_info_vmware_tools_info_status.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/0a72d28da1f8551a21c8383101a0472f368cc924bbae4dcdf334c0c28fc3b1a3.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_app_info_vmware_tools_info_status.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/0a72d28da1f8551a21c8383101a0472f368cc924bbae4dcdf334c0c28fc3b1a3.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_virtual_disks_app_info_vmware_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/21fe5a4f39541af90f52897c3be5ba3366659568acb95dc9814e9cf3cd0b0459.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_virtual_disks_app_info_vmware_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/21fe5a4f39541af90f52897c3be5ba3366659568acb95dc9814e9cf3cd0b0459.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_network_adapters_network_details_state.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/260b8a9525d749be23ee0a106555b9f85686fc6b749d79b4cf20e9c652823613.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_network_adapters_network_details_state.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/260b8a9525d749be23ee0a106555b9f85686fc6b749d79b4cf20e9c652823613.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_post_request_body_storage_config_volume_info_encryption_cipher.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/2ac509776b958ad2546137bacdefd499f6551d2eb9a53a0e114535f2210806f0.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_post_request_body_storage_config_volume_info_encryption_cipher.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/2ac509776b958ad2546137bacdefd499f6551d2eb9a53a0e114535f2210806f0.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_volumes_info_storage_system_info_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/be9285b76d59e7a006172db2e1f28a20717cb262316cdccfc9f9100489d04596.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_volumes_info_storage_system_info_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/be9285b76d59e7a006172db2e1f28a20717cb262316cdccfc9f9100489d04596.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/customizeguestos/customize_guest_os_post_request_body_linux_config_network_interfaces_network_adapter_ipv4_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/customizeguestos/0363f5d3a33cb61babed0d5d350c27f79de5238456ece53604ddd6aed9cbda47.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/customizeguestos/customize_guest_os_post_request_body_linux_config_network_interfaces_network_adapter_ipv4_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/customizeguestos/0363f5d3a33cb61babed0d5d350c27f79de5238456ece53604ddd6aed9cbda47.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_network_adapters_network_details_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_escaped_network_adapters_escaped_network_details_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_network_adapters_network_details_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_escaped_network_adapters_escaped_network_details_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_network_adapters_operation.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_escaped_network_adapters_escaped_operation.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_network_adapters_operation.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_escaped_network_adapters_escaped_operation.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_network_adapters_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_escaped_network_adapters_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_network_adapters_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_escaped_network_adapters_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_virtual_disks_disk_config_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_escaped_virtual_disks_escaped_disk_config_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_virtual_disks_disk_config_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_escaped_virtual_disks_escaped_disk_config_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_virtual_disks_operation.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_escaped_virtual_disks_escaped_operation.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_virtual_disks_operation.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/updatehardware/update_hardware_post_request_body_escaped_virtual_disks_escaped_operation.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_allowed_operations.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_allowed_operations.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_allowed_operations.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_allowed_operations.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_app_info_vmware_tools_info_status.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_app_info_escaped_vmware_escaped_tools_info_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_app_info_vmware_tools_info_status.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_app_info_escaped_vmware_escaped_tools_info_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_app_info_vmware_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_app_info_escaped_vmware_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_app_info_vmware_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_app_info_escaped_vmware_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_app_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_app_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_app_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_app_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_graphics_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_graphics_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_graphics_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_graphics_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_guest_info_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_guest_info_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_guest_info_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_guest_info_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_network_adapters_mac_address_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_network_adapters_escaped_mac_address_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_network_adapters_mac_address_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_network_adapters_escaped_mac_address_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_network_adapters_network_details_state.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_network_adapters_escaped_network_details_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_network_adapters_network_details_state.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_network_adapters_escaped_network_details_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_power_state.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_power_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_power_state.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_power_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_protection_policy_applied_at_info_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_protection_policy_applied_at_info_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_protection_policy_applied_at_info_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_protection_policy_applied_at_info_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_protection_status.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_protection_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_protection_status.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_protection_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_state.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_state.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_status.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_status.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_virtual_disks_app_info_vmware_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_virtual_disks_escaped_app_info_escaped_vmware_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_virtual_disks_app_info_vmware_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_virtual_disks_escaped_app_info_escaped_vmware_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_vm_classification.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_vm_classification.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_vm_classification.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_vm_classification.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_volumes_info_storage_system_info_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_volumes_info_escaped_storage_system_info_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_volumes_info_storage_system_info_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/item/virtual_machines_get_response_escaped_volumes_info_escaped_storage_system_info_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_allowed_operations.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_allowed_operations.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_allowed_operations.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_allowed_operations.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_app_info_vmware_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_app_info_escaped_vmware_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_app_info_vmware_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_app_info_escaped_vmware_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_app_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_app_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_app_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_app_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_graphics_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_graphics_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_graphics_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_graphics_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_guest_info_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_guest_info_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_guest_info_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_guest_info_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_network_adapters_mac_address_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_network_adapters_escaped_mac_address_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_network_adapters_mac_address_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_network_adapters_escaped_mac_address_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_power_state.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_power_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_power_state.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_power_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_protection_policy_applied_at_info_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_protection_policy_applied_at_info_escaped_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_protection_policy_applied_at_info_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_protection_policy_applied_at_info_escaped_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_protection_status.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_protection_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_protection_status.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_protection_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_state.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_state.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_state.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_state.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_status.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_status.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_status.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_status.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_vm_classification.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_vm_classification.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_items_vm_classification.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_get_response_escaped_items_escaped_vm_classification.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_post_request_body_image_source_image_source_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_post_request_body_escaped_image_source_escaped_image_source_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_post_request_body_image_source_image_source_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_post_request_body_escaped_image_source_escaped_image_source_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_post_request_body_network_config_ip_allocation_policy.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_post_request_body_escaped_network_config_escaped_ip_allocation_policy.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_post_request_body_network_config_ip_allocation_policy.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_post_request_body_escaped_network_config_escaped_ip_allocation_policy.go diff --git a/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_post_request_body_storage_config_provisioning_type.go b/internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_post_request_body_escaped_storage_config_escaped_provisioning_type.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_post_request_body_storage_config_provisioning_type.go rename to internal/sdk/virt/virtualization/v1beta1/virtualmachines/virtual_machines_post_request_body_escaped_storage_config_escaped_provisioning_type.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_get_response_items_inventory_refresh_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_get_response_escaped_items_escaped_inventory_refresh_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_get_response_items_inventory_refresh_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_get_response_escaped_items_escaped_inventory_refresh_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_get_response_items_onboarding_template.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_get_response_escaped_items_escaped_onboarding_template.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_get_response_items_onboarding_template.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_get_response_escaped_items_escaped_onboarding_template.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_account_get_response_inventory_refresh_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_account_get_response_escaped_inventory_refresh_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_account_get_response_inventory_refresh_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_account_get_response_escaped_inventory_refresh_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_account_get_response_onboarding_template.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_account_get_response_escaped_onboarding_template.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_account_get_response_onboarding_template.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_account_get_response_escaped_onboarding_template.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_items_account_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_escaped_items_escaped_account_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_items_account_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_escaped_items_escaped_account_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_items_csp_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_escaped_items_escaped_csp_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_items_csp_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_escaped_items_escaped_csp_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_items_subscription_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_escaped_items_escaped_subscription_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_items_subscription_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_get_response_escaped_items_escaped_subscription_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_item_with_resource_group_get_response_csp_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_item_with_resource_group_get_response_escaped_csp_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_item_with_resource_group_get_response_csp_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_resource_groups_item_with_resource_group_get_response_escaped_csp_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items.go similarity index 98% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items.go index 8f5bbfa..c52628d 100644 --- a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_items.go +++ b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items.go @@ -67,6 +67,11 @@ func CreateV1beta1CspAccountsItemCspSubnetsGetResponse_items_CspSubnetsGetRespon // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *V1beta1CspAccountsItemCspSubnetsGetResponse_items_CspSubnetsGetResponse_items_cspInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + if m.GetV1beta1CspAccountsItemCspSubnetsGetResponseItemsCspInfoMember1() != nil { + return m.GetV1beta1CspAccountsItemCspSubnetsGetResponseItemsCspInfoMember1().GetFieldDeserializers() + } else if m.GetV1beta1CspAccountsItemCspSubnetsGetResponseItemsCspInfoMember2() != nil { + return m.GetV1beta1CspAccountsItemCspSubnetsGetResponseItemsCspInfoMember2().GetFieldDeserializers() + } return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) } // GetIsComposedType determines if the current object is a wrapper around a composed type diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_items_account_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items_escaped_account_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_items_account_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items_escaped_account_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_items_csp_info_member1.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items_escaped_csp_info_member1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_items_csp_info_member1.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items_escaped_csp_info_member1.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_items_csp_info_member2.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items_escaped_csp_info_member2.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_items_csp_info_member2.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items_escaped_csp_info_member2.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_items_vpc_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items_escaped_vpc_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_items_vpc_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_get_response_escaped_items_escaped_vpc_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response.go index b1fd1d5..8d71aca 100644 --- a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response.go +++ b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response.go @@ -67,6 +67,11 @@ func CreateV1beta1CspAccountsItemCspSubnetsItemWithSubnetGetResponse_WithSubnetG // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *V1beta1CspAccountsItemCspSubnetsItemWithSubnetGetResponse_WithSubnetGetResponse_cspInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + if m.GetV1beta1CspAccountsItemCspSubnetsItemWithSubnetGetResponseCspInfoMember1() != nil { + return m.GetV1beta1CspAccountsItemCspSubnetsItemWithSubnetGetResponseCspInfoMember1().GetFieldDeserializers() + } else if m.GetV1beta1CspAccountsItemCspSubnetsItemWithSubnetGetResponseCspInfoMember2() != nil { + return m.GetV1beta1CspAccountsItemCspSubnetsItemWithSubnetGetResponseCspInfoMember2().GetFieldDeserializers() + } return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) } // GetIsComposedType determines if the current object is a wrapper around a composed type diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_account_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_escaped_account_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_account_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_escaped_account_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_csp_info_member1.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_escaped_csp_info_member1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_csp_info_member1.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_escaped_csp_info_member1.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_csp_info_member2.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_escaped_csp_info_member2.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_csp_info_member2.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_escaped_csp_info_member2.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_vpc_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_escaped_vpc_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_vpc_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subnets_item_with_subnet_get_response_escaped_vpc_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subscriptions_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subscriptions_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subscriptions_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subscriptions_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subscriptions_get_response_items_account_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subscriptions_get_response_escaped_items_escaped_account_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subscriptions_get_response_items_account_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subscriptions_get_response_escaped_items_escaped_account_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subscriptions_item_with_subscription_get_response_account_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subscriptions_item_with_subscription_get_response_escaped_account_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subscriptions_item_with_subscription_get_response_account_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_subscriptions_item_with_subscription_get_response_escaped_account_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_tag_keys_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_tag_keys_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_tag_keys_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_tag_keys_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_tags_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_tags_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_tags_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_tags_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items.go similarity index 98% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items.go index 833e10e..63250f9 100644 --- a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_items.go +++ b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items.go @@ -67,6 +67,11 @@ func CreateV1beta1CspAccountsItemCspVpcsGetResponse_items_CspVpcsGetResponse_ite // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *V1beta1CspAccountsItemCspVpcsGetResponse_items_CspVpcsGetResponse_items_cspInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + if m.GetV1beta1CspAccountsItemCspVpcsGetResponseItemsCspInfoMember1() != nil { + return m.GetV1beta1CspAccountsItemCspVpcsGetResponseItemsCspInfoMember1().GetFieldDeserializers() + } else if m.GetV1beta1CspAccountsItemCspVpcsGetResponseItemsCspInfoMember2() != nil { + return m.GetV1beta1CspAccountsItemCspVpcsGetResponseItemsCspInfoMember2().GetFieldDeserializers() + } return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) } // GetIsComposedType determines if the current object is a wrapper around a composed type diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_items_account_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items_escaped_account_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_items_account_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items_escaped_account_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_items_csp_info_member1.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items_escaped_csp_info_member1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_items_csp_info_member1.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items_escaped_csp_info_member1.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_items_csp_info_member2.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items_escaped_csp_info_member2.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_items_csp_info_member2.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items_escaped_csp_info_member2.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_items_subscription_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items_escaped_subscription_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_items_subscription_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_get_response_escaped_items_escaped_subscription_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response.go index 1482c85..000c31a 100644 --- a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response.go +++ b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response.go @@ -67,6 +67,11 @@ func CreateV1beta1CspAccountsItemCspVpcsItemWithVpcGetResponse_WithVpcGetRespons // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *V1beta1CspAccountsItemCspVpcsItemWithVpcGetResponse_WithVpcGetResponse_cspInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + if m.GetV1beta1CspAccountsItemCspVpcsItemWithVpcGetResponseCspInfoMember1() != nil { + return m.GetV1beta1CspAccountsItemCspVpcsItemWithVpcGetResponseCspInfoMember1().GetFieldDeserializers() + } else if m.GetV1beta1CspAccountsItemCspVpcsItemWithVpcGetResponseCspInfoMember2() != nil { + return m.GetV1beta1CspAccountsItemCspVpcsItemWithVpcGetResponseCspInfoMember2().GetFieldDeserializers() + } return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) } // GetIsComposedType determines if the current object is a wrapper around a composed type diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_account_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_escaped_account_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_account_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_escaped_account_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_csp_info_member1.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_escaped_csp_info_member1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_csp_info_member1.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_escaped_csp_info_member1.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_csp_info_member2.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_escaped_csp_info_member2.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_csp_info_member2.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_escaped_csp_info_member2.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_subscription_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_escaped_subscription_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_subscription_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_item_csp_vpcs_item_with_vpc_get_response_escaped_subscription_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_post_response_inventory_refresh_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_post_response_escaped_inventory_refresh_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_post_response_inventory_refresh_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_post_response_escaped_inventory_refresh_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_accounts_post_response_onboarding_template.go b/internal/sdk/virt/virtualization/v1beta1_csp_accounts_post_response_escaped_onboarding_template.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_accounts_post_response_onboarding_template.go rename to internal/sdk/virt/virtualization/v1beta1_csp_accounts_post_response_escaped_onboarding_template.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_escaped_items.go similarity index 98% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_escaped_items.go index ce9f904..3440758 100644 --- a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items.go +++ b/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_escaped_items.go @@ -66,6 +66,11 @@ func CreateV1beta1CspMachineImagesGetResponse_items_CspMachineImagesGetResponse_ // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *V1beta1CspMachineImagesGetResponse_items_CspMachineImagesGetResponse_items_cspInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + if m.GetV1beta1CspMachineImagesGetResponseItemsCspInfoMember1() != nil { + return m.GetV1beta1CspMachineImagesGetResponseItemsCspInfoMember1().GetFieldDeserializers() + } else if m.GetV1beta1CspMachineImagesGetResponseItemsCspInfoMember2() != nil { + return m.GetV1beta1CspMachineImagesGetResponseItemsCspInfoMember2().GetFieldDeserializers() + } return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) } // GetIsComposedType determines if the current object is a wrapper around a composed type diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member1.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member1.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member1.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member2.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member2.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member2.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member2.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member2_disallowed.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member2_escaped_disallowed.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member2_disallowed.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member2_escaped_disallowed.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member2_features.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member2_escaped_features.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member2_features.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member2_escaped_features.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member2_os_disk_image.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member2_escaped_os_disk_image.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member2_os_disk_image.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member2_escaped_os_disk_image.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member2_version_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member2_escaped_version_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_items_csp_info_member2_version_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_images_get_response_escaped_items_escaped_csp_info_member2_escaped_version_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response.go index efc5d09..1e1e8ea 100644 --- a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response.go +++ b/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response.go @@ -66,6 +66,11 @@ func CreateV1beta1CspMachineImagesItemCspMachineImagesGetResponse_CspMachineImag // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *V1beta1CspMachineImagesItemCspMachineImagesGetResponse_CspMachineImagesGetResponse_cspInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + if m.GetV1beta1CspMachineImagesItemCspMachineImagesGetResponseCspInfoMember1() != nil { + return m.GetV1beta1CspMachineImagesItemCspMachineImagesGetResponseCspInfoMember1().GetFieldDeserializers() + } else if m.GetV1beta1CspMachineImagesItemCspMachineImagesGetResponseCspInfoMember2() != nil { + return m.GetV1beta1CspMachineImagesItemCspMachineImagesGetResponseCspInfoMember2().GetFieldDeserializers() + } return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) } // GetIsComposedType determines if the current object is a wrapper around a composed type diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member1.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_escaped_csp_info_member1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member1.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_escaped_csp_info_member1.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member2.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_escaped_csp_info_member2.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_csp_info_member2.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_images_item_csp_machine_images_get_response_escaped_csp_info_member2.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_escaped_items.go similarity index 98% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_escaped_items.go index 425b457..97b04b6 100644 --- a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items.go +++ b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_escaped_items.go @@ -66,6 +66,11 @@ func CreateV1beta1CspMachineInstanceTypesGetResponse_items_CspMachineInstanceTyp // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *V1beta1CspMachineInstanceTypesGetResponse_items_CspMachineInstanceTypesGetResponse_items_cspInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + if m.GetV1beta1CspMachineInstanceTypesGetResponseItemsCspInfoMember1() != nil { + return m.GetV1beta1CspMachineInstanceTypesGetResponseItemsCspInfoMember1().GetFieldDeserializers() + } else if m.GetV1beta1CspMachineInstanceTypesGetResponseItemsCspInfoMember2() != nil { + return m.GetV1beta1CspMachineInstanceTypesGetResponseItemsCspInfoMember2().GetFieldDeserializers() + } return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) } // GetIsComposedType determines if the current object is a wrapper around a composed type diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_escaped_items_escaped_csp_info_member1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member1.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_escaped_items_escaped_csp_info_member1.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member2.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_escaped_items_escaped_csp_info_member2.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_items_csp_info_member2.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_get_response_escaped_items_escaped_csp_info_member2.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_item_csp_machine_instance_types_get_response.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_item_csp_machine_instance_types_get_response.go index 4759d05..af955b9 100644 --- a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_item_csp_machine_instance_types_get_response.go +++ b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instance_types_item_csp_machine_instance_types_get_response.go @@ -66,6 +66,11 @@ func CreateV1beta1CspMachineInstanceTypesItemCspMachineInstanceTypesGetResponse_ // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *V1beta1CspMachineInstanceTypesItemCspMachineInstanceTypesGetResponse_CspMachineInstanceTypesGetResponse_cspInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + if m.GetV1beta1CspMachineInstanceTypesItemCspMachineInstanceTypesGetResponseCspInfoMember1() != nil { + return m.GetV1beta1CspMachineInstanceTypesItemCspMachineInstanceTypesGetResponseCspInfoMember1().GetFieldDeserializers() + } else if m.GetV1beta1CspMachineInstanceTypesItemCspMachineInstanceTypesGetResponseCspInfoMember2() != nil { + return m.GetV1beta1CspMachineInstanceTypesItemCspMachineInstanceTypesGetResponseCspInfoMember2().GetFieldDeserializers() + } return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) } // GetIsComposedType determines if the current object is a wrapper around a composed type diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items.go similarity index 98% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items.go index 2d69c3b..eab978f 100644 --- a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items.go +++ b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items.go @@ -77,6 +77,11 @@ func CreateV1beta1CspMachineInstancesGetResponse_items_CspMachineInstancesGetRes // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *V1beta1CspMachineInstancesGetResponse_items_CspMachineInstancesGetResponse_items_cspInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + if m.GetV1beta1CspMachineInstancesGetResponseItemsCspInfoMember1() != nil { + return m.GetV1beta1CspMachineInstancesGetResponseItemsCspInfoMember1().GetFieldDeserializers() + } else if m.GetV1beta1CspMachineInstancesGetResponseItemsCspInfoMember2() != nil { + return m.GetV1beta1CspMachineInstancesGetResponseItemsCspInfoMember2().GetFieldDeserializers() + } return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) } // GetIsComposedType determines if the current object is a wrapper around a composed type diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_account_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_account_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_account_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_account_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_backup_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_backup_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_backup_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_backup_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member1.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_csp_info_member1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member1.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_csp_info_member1.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member1_csp_tags.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_csp_info_member1_escaped_csp_tags.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member1_csp_tags.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_csp_info_member1_escaped_csp_tags.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member2.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_csp_info_member2.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member2.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_csp_info_member2.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member2_csp_tags.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_csp_info_member2_escaped_csp_tags.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_csp_info_member2_csp_tags.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_csp_info_member2_escaped_csp_tags.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_protection_group_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_protection_group_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_protection_group_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_protection_group_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_protection_job_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_protection_job_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_protection_job_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_protection_job_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_resource_group_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_resource_group_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_resource_group_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_resource_group_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_subscription_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_subscription_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_subscription_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_subscription_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_volume_attachment_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_volume_attachment_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_items_volume_attachment_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_get_response_escaped_items_escaped_volume_attachment_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response.go index ceacc38..467e7c0 100644 --- a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response.go +++ b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response.go @@ -77,6 +77,11 @@ func CreateV1beta1CspMachineInstancesItemCspMachineInstancesGetResponse_CspMachi // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *V1beta1CspMachineInstancesItemCspMachineInstancesGetResponse_CspMachineInstancesGetResponse_cspInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + if m.GetV1beta1CspMachineInstancesItemCspMachineInstancesGetResponseCspInfoMember1() != nil { + return m.GetV1beta1CspMachineInstancesItemCspMachineInstancesGetResponseCspInfoMember1().GetFieldDeserializers() + } else if m.GetV1beta1CspMachineInstancesItemCspMachineInstancesGetResponseCspInfoMember2() != nil { + return m.GetV1beta1CspMachineInstancesItemCspMachineInstancesGetResponseCspInfoMember2().GetFieldDeserializers() + } return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) } // GetIsComposedType determines if the current object is a wrapper around a composed type diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_account_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_account_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_account_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_account_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_backup_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_backup_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_backup_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_backup_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member1.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_csp_info_member1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member1.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_csp_info_member1.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member2.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_csp_info_member2.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_csp_info_member2.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_csp_info_member2.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_protection_group_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_protection_group_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_protection_group_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_protection_group_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_protection_job_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_protection_job_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_protection_job_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_protection_job_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_resource_group_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_resource_group_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_resource_group_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_resource_group_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_subscription_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_subscription_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_subscription_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_subscription_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_volume_attachment_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_volume_attachment_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_volume_attachment_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_item_csp_machine_instances_get_response_escaped_volume_attachment_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_post_request_body.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_post_request_body.go index b018057..da2cfd2 100644 --- a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_post_request_body.go +++ b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_post_request_body.go @@ -52,6 +52,11 @@ func CreateV1beta1CspMachineInstancesPostRequestBody_CspMachineInstancesPostRequ // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *V1beta1CspMachineInstancesPostRequestBody_CspMachineInstancesPostRequestBody_cspMachineInstanceInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + if m.GetV1beta1CspMachineInstancesPostRequestBodyCspMachineInstanceInfoMember1() != nil { + return m.GetV1beta1CspMachineInstancesPostRequestBodyCspMachineInstanceInfoMember1().GetFieldDeserializers() + } else if m.GetV1beta1CspMachineInstancesPostRequestBodyCspMachineInstanceInfoMember2() != nil { + return m.GetV1beta1CspMachineInstancesPostRequestBodyCspMachineInstanceInfoMember2().GetFieldDeserializers() + } return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) } // GetIsComposedType determines if the current object is a wrapper around a composed type diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_post_request_body_csp_machine_instance_info_member1.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_post_request_body_escaped_csp_machine_instance_info_member1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_post_request_body_csp_machine_instance_info_member1.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_post_request_body_escaped_csp_machine_instance_info_member1.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_post_request_body_csp_machine_instance_info_member2.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_post_request_body_escaped_csp_machine_instance_info_member2.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_post_request_body_csp_machine_instance_info_member2.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_post_request_body_escaped_csp_machine_instance_info_member2.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_update_csp_tags_post_request_body_csp_tags_added.go b/internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_update_csp_tags_post_request_body_escaped_csp_tags_added.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_update_csp_tags_post_request_body_csp_tags_added.go rename to internal/sdk/virt/virtualization/v1beta1_csp_machine_instances_update_csp_tags_post_request_body_escaped_csp_tags_added.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_account_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_account_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_account_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_account_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_backup_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_backup_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_backup_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_backup_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_csp_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_csp_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_csp_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_csp_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_csp_info_csp_tags.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_csp_info_escaped_csp_tags.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_csp_info_csp_tags.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_csp_info_escaped_csp_tags.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_csp_info_network_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_csp_info_escaped_network_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_csp_info_network_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_csp_info_escaped_network_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_csp_info_storage_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_csp_info_escaped_storage_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_csp_info_storage_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_csp_info_escaped_storage_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_metadata.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_metadata.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_metadata.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_metadata.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_protection_job_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_protection_job_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_protection_job_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_protection_job_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_refresh_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_refresh_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_items_refresh_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_get_response_escaped_items_escaped_refresh_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_account_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_account_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_account_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_account_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_backup_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_backup_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_backup_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_backup_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_csp_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_csp_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info_csp_tags.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_csp_info_escaped_csp_tags.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info_csp_tags.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_csp_info_escaped_csp_tags.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info_network_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_csp_info_escaped_network_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info_network_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_csp_info_escaped_network_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info_storage_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_csp_info_escaped_storage_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_csp_info_storage_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_csp_info_escaped_storage_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_metadata.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_metadata.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_metadata.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_metadata.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_protection_job_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_protection_job_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_protection_job_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_protection_job_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_refresh_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_refresh_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_refresh_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_rds_instances_item_csp_rds_instances_get_response_escaped_refresh_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items.go similarity index 98% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items.go index d137862..bad5ecb 100644 --- a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items.go +++ b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items.go @@ -77,6 +77,11 @@ func CreateV1beta1CspVolumesGetResponse_items_CspVolumesGetResponse_items_cspInf // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *V1beta1CspVolumesGetResponse_items_CspVolumesGetResponse_items_cspInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + if m.GetV1beta1CspVolumesGetResponseItemsCspInfoMember1() != nil { + return m.GetV1beta1CspVolumesGetResponseItemsCspInfoMember1().GetFieldDeserializers() + } else if m.GetV1beta1CspVolumesGetResponseItemsCspInfoMember2() != nil { + return m.GetV1beta1CspVolumesGetResponseItemsCspInfoMember2().GetFieldDeserializers() + } return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) } // GetIsComposedType determines if the current object is a wrapper around a composed type diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_account_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_account_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_account_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_account_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_backup_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_backup_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_backup_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_backup_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_csp_info_member1.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_csp_info_member1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_csp_info_member1.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_csp_info_member1.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_csp_info_member1_csp_tags.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_csp_info_member1_escaped_csp_tags.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_csp_info_member1_csp_tags.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_csp_info_member1_escaped_csp_tags.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_csp_info_member2.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_csp_info_member2.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_csp_info_member2.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_csp_info_member2.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_csp_info_member2_csp_tags.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_csp_info_member2_escaped_csp_tags.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_csp_info_member2_csp_tags.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_csp_info_member2_escaped_csp_tags.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_machine_instance_attachment_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_machine_instance_attachment_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_machine_instance_attachment_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_machine_instance_attachment_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_protection_group_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_protection_group_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_protection_group_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_protection_group_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_protection_job_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_protection_job_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_protection_job_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_protection_job_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_protection_job_info_asset_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_protection_job_info_escaped_asset_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_protection_job_info_asset_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_protection_job_info_escaped_asset_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_protection_job_info_schedule_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_protection_job_info_escaped_schedule_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_protection_job_info_schedule_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_protection_job_info_escaped_schedule_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_resource_group_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_resource_group_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_resource_group_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_resource_group_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_subscription_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_subscription_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_items_subscription_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_get_response_escaped_items_escaped_subscription_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response.go index fe150e8..3fb9339 100644 --- a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response.go +++ b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response.go @@ -77,6 +77,11 @@ func CreateV1beta1CspVolumesItemCspVolumesGetResponse_CspVolumesGetResponse_cspI // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *V1beta1CspVolumesItemCspVolumesGetResponse_CspVolumesGetResponse_cspInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + if m.GetV1beta1CspVolumesItemCspVolumesGetResponseCspInfoMember1() != nil { + return m.GetV1beta1CspVolumesItemCspVolumesGetResponseCspInfoMember1().GetFieldDeserializers() + } else if m.GetV1beta1CspVolumesItemCspVolumesGetResponseCspInfoMember2() != nil { + return m.GetV1beta1CspVolumesItemCspVolumesGetResponseCspInfoMember2().GetFieldDeserializers() + } return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) } // GetIsComposedType determines if the current object is a wrapper around a composed type diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_account_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_account_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_account_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_account_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_backup_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_backup_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_backup_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_backup_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_csp_info_member1.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_csp_info_member1.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_csp_info_member1.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_csp_info_member1.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_csp_info_member1_csp_tags.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_csp_info_member1_escaped_csp_tags.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_csp_info_member1_csp_tags.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_csp_info_member1_escaped_csp_tags.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_csp_info_member2.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_csp_info_member2.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_csp_info_member2.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_csp_info_member2.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_csp_info_member2_csp_tags.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_csp_info_member2_escaped_csp_tags.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_csp_info_member2_csp_tags.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_csp_info_member2_escaped_csp_tags.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_machine_instance_attachment_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_machine_instance_attachment_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_machine_instance_attachment_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_machine_instance_attachment_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_protection_group_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_protection_group_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_protection_group_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_protection_group_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_protection_job_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_protection_job_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_protection_job_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_protection_job_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_protection_job_info_asset_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_protection_job_info_escaped_asset_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_protection_job_info_asset_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_protection_job_info_escaped_asset_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_protection_job_info_schedule_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_protection_job_info_escaped_schedule_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_protection_job_info_schedule_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_protection_job_info_escaped_schedule_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_resource_group_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_resource_group_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_resource_group_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_resource_group_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_subscription_info.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_subscription_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_subscription_info.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_item_csp_volumes_get_response_escaped_subscription_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_csp_volumes_update_csp_tags_post_request_body_csp_tags_added.go b/internal/sdk/virt/virtualization/v1beta1_csp_volumes_update_csp_tags_post_request_body_escaped_csp_tags_added.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_csp_volumes_update_csp_tags_post_request_body_csp_tags_added.go rename to internal/sdk/virt/virtualization/v1beta1_csp_volumes_update_csp_tags_post_request_body_escaped_csp_tags_added.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_cluster_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_cluster_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_cluster_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_cluster_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_datacenters_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_datacenters_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_datacenters_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_datacenters_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_folder_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_folder_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_folder_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_folder_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_hosts_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_hosts_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_hosts_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_hosts_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_hypervisor_manager_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_hypervisor_manager_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_protection_job_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_protection_job_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_protection_job_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_protection_job_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_protection_policy_applied_at_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_protection_policy_applied_at_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_protection_policy_applied_at_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_protection_policy_applied_at_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_provisioning_policy_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_provisioning_policy_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_provisioning_policy_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_provisioning_policy_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_replication_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_replication_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_replication_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_replication_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_replication_info_partner_details.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_replication_info_escaped_partner_details.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_replication_info_partner_details.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_replication_info_escaped_partner_details.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_storage_systems_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_storage_systems_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_storage_systems_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_storage_systems_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_vm_protection_groups_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_vm_protection_groups_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_vm_protection_groups_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_vm_protection_groups_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_volumes_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_volumes_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_volumes_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_volumes_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_volumes_info_storage_folder_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_volumes_info_escaped_storage_folder_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_volumes_info_storage_folder_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_volumes_info_escaped_storage_folder_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_volumes_info_storage_pool_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_volumes_info_escaped_storage_pool_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_volumes_info_storage_pool_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_volumes_info_escaped_storage_pool_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_volumes_info_storage_system_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_volumes_info_escaped_storage_system_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_volumes_info_storage_system_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_volumes_info_escaped_storage_system_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_volumes_info_volume_set_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_volumes_info_escaped_volume_set_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_get_response_items_volumes_info_volume_set_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_get_response_escaped_items_escaped_volumes_info_escaped_volume_set_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_cluster_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_cluster_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_cluster_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_cluster_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_datacenters_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_datacenters_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_datacenters_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_datacenters_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_folder_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_folder_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_folder_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_folder_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_hosts_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_hosts_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_hosts_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_hosts_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_hypervisor_manager_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_hypervisor_manager_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_protection_job_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_protection_job_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_protection_job_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_protection_job_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_protection_policy_applied_at_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_protection_policy_applied_at_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_protection_policy_applied_at_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_protection_policy_applied_at_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_provisioning_policy_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_provisioning_policy_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_provisioning_policy_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_provisioning_policy_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_replication_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_replication_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_replication_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_replication_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_replication_info_partner_details.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_replication_info_escaped_partner_details.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_replication_info_partner_details.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_replication_info_escaped_partner_details.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_storage_systems_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_storage_systems_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_storage_systems_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_storage_systems_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_vm_protection_groups_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_vm_protection_groups_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_vm_protection_groups_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_vm_protection_groups_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_volumes_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_volumes_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_volumes_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_volumes_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_volumes_info_storage_folder_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_volumes_info_escaped_storage_folder_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_volumes_info_storage_folder_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_volumes_info_escaped_storage_folder_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_volumes_info_storage_pool_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_volumes_info_escaped_storage_pool_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_volumes_info_storage_pool_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_volumes_info_escaped_storage_pool_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_volumes_info_storage_system_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_volumes_info_escaped_storage_system_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_volumes_info_storage_system_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_volumes_info_escaped_storage_system_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_volumes_info_volume_set_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_volumes_info_escaped_volume_set_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_volumes_info_volume_set_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_get_response_escaped_volumes_info_escaped_volume_set_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_patch_request_body_qos.go b/internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_patch_request_body_escaped_qos.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_patch_request_body_qos.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_item_datastores_patch_request_body_escaped_qos.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_post_request_body_volume_info.go b/internal/sdk/virt/virtualization/v1beta1_datastores_post_request_body_escaped_volume_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_post_request_body_volume_info.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_post_request_body_escaped_volume_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_post_request_body_volume_info_encryption.go b/internal/sdk/virt/virtualization/v1beta1_datastores_post_request_body_escaped_volume_info_escaped_encryption.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_post_request_body_volume_info_encryption.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_post_request_body_escaped_volume_info_escaped_encryption.go diff --git a/internal/sdk/virt/virtualization/v1beta1_datastores_post_request_body_volume_info_qos.go b/internal/sdk/virt/virtualization/v1beta1_datastores_post_request_body_escaped_volume_info_escaped_qos.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_datastores_post_request_body_volume_info_qos.go rename to internal/sdk/virt/virtualization/v1beta1_datastores_post_request_body_escaped_volume_info_escaped_qos.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_items_app_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_escaped_items_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_items_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_escaped_items_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_items_app_info_vmware.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_escaped_items_escaped_app_info_escaped_vmware.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_items_app_info_vmware.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_escaped_items_escaped_app_info_escaped_vmware.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_items_cluster_perf_metric_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_escaped_items_escaped_cluster_perf_metric_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_items_cluster_perf_metric_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_escaped_items_escaped_cluster_perf_metric_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_items_hypervisor_hosts.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_escaped_items_escaped_hypervisor_hosts.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_items_hypervisor_hosts.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_escaped_items_escaped_hypervisor_hosts.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_items_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_escaped_items_escaped_hypervisor_manager_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_items_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_get_response_escaped_items_escaped_hypervisor_manager_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_app_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_app_info_vmware.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_escaped_app_info_escaped_vmware.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_app_info_vmware.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_escaped_app_info_escaped_vmware.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_cluster_perf_metric_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_escaped_cluster_perf_metric_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_cluster_perf_metric_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_escaped_cluster_perf_metric_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_hypervisor_hosts.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_escaped_hypervisor_hosts.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_hypervisor_hosts.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_escaped_hypervisor_hosts.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_escaped_hypervisor_manager_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_clusters_item_cluster_get_response_escaped_hypervisor_manager_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_app_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_app_info_vmware.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_app_info_escaped_vmware.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_app_info_vmware.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_app_info_escaped_vmware.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_cpu_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_cpu_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_cpu_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_cpu_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_cpu_sockets.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_cpu_sockets.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_cpu_sockets.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_cpu_sockets.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_host_network_system.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_host_network_system.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_host_network_system.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_host_network_system.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_host_network_system_port_groups.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_host_network_system_escaped_port_groups.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_host_network_system_port_groups.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_host_network_system_escaped_port_groups.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_host_perf_metric_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_host_perf_metric_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_host_perf_metric_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_host_perf_metric_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_hypervisor_manager_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_hypervisor_manager_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_parent_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_parent_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_parent_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_parent_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_storage_adapters_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_storage_adapters_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_items_storage_adapters_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_get_response_escaped_items_escaped_storage_adapters_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_app_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_app_info_vmware.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_app_info_escaped_vmware.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_app_info_vmware.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_app_info_escaped_vmware.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_cpu_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_cpu_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_cpu_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_cpu_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_cpu_sockets.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_cpu_sockets.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_cpu_sockets.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_cpu_sockets.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_host_network_system.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_host_network_system.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_host_network_system.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_host_network_system.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_host_network_system_port_groups.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_host_network_system_escaped_port_groups.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_host_network_system_port_groups.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_host_network_system_escaped_port_groups.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_host_perf_metric_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_host_perf_metric_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_host_perf_metric_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_host_perf_metric_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_hypervisor_manager_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_hypervisor_manager_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_parent_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_parent_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_parent_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_parent_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_storage_adapters_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_storage_adapters_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_storage_adapters_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_hosts_item_host_get_response_escaped_storage_adapters_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_items_app_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_escaped_items_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_items_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_escaped_items_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_items_app_info_vmware.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_escaped_items_escaped_app_info_escaped_vmware.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_items_app_info_vmware.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_escaped_items_escaped_app_info_escaped_vmware.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_items_data_orchestrator_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_escaped_items_escaped_data_orchestrator_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_items_data_orchestrator_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_escaped_items_escaped_data_orchestrator_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_items_data_services_connectors_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_escaped_items_escaped_data_services_connectors_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_items_data_services_connectors_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_get_response_escaped_items_escaped_data_services_connectors_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_hypervisor_item_request_builder.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_hypervisor_item_request_builder.go index ea651c8..2451593 100644 --- a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_hypervisor_item_request_builder.go +++ b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_hypervisor_item_request_builder.go @@ -12,10 +12,6 @@ type V1beta1HypervisorManagersHypervisorItemRequestBuilder struct { } // HypervisorPatchRequestBody composed type wrapper for classes V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able, V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2able type HypervisorPatchRequestBody struct { - // Composed type representation for type V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able - hypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1 V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able - // Composed type representation for type V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2able - hypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2 V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2able // Composed type representation for type V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able v1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1 V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able // Composed type representation for type V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2able @@ -50,18 +46,13 @@ func CreateHypervisorPatchRequestBodyFromDiscriminatorValue(parseNode i878a80d23 // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *HypervisorPatchRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + if m.GetV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1() != nil { + return m.GetV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1().GetFieldDeserializers() + } else if m.GetV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2() != nil { + return m.GetV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2().GetFieldDeserializers() + } return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) } -// GetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1 gets the V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1 property value. Composed type representation for type V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able -// returns a V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able when successful -func (m *HypervisorPatchRequestBody) GetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1()(V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able) { - return m.hypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1 -} -// GetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2 gets the V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2 property value. Composed type representation for type V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2able -// returns a V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2able when successful -func (m *HypervisorPatchRequestBody) GetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2()(V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2able) { - return m.hypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2 -} // GetIsComposedType determines if the current object is a wrapper around a composed type // returns a bool when successful func (m *HypervisorPatchRequestBody) GetIsComposedType()(bool) { @@ -79,17 +70,7 @@ func (m *HypervisorPatchRequestBody) GetV1beta1HypervisorManagersItemHypervisorP } // Serialize serializes information the current object func (m *HypervisorPatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1() != nil { - err := writer.WriteObjectValue("", m.GetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1()) - if err != nil { - return err - } - } else if m.GetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2() != nil { - err := writer.WriteObjectValue("", m.GetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2()) - if err != nil { - return err - } - } else if m.GetV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1() != nil { + if m.GetV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1() != nil { err := writer.WriteObjectValue("", m.GetV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1()) if err != nil { return err @@ -102,14 +83,6 @@ func (m *HypervisorPatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3 } return nil } -// SetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1 sets the V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1 property value. Composed type representation for type V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able -func (m *HypervisorPatchRequestBody) SetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1(value V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able)() { - m.hypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1 = value -} -// SetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2 sets the V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2 property value. Composed type representation for type V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2able -func (m *HypervisorPatchRequestBody) SetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2(value V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2able)() { - m.hypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2 = value -} // SetV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1 sets the V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1 property value. Composed type representation for type V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able func (m *HypervisorPatchRequestBody) SetV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1(value V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able)() { m.v1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1 = value @@ -141,12 +114,8 @@ type V1beta1HypervisorManagersHypervisorItemRequestBuilderPatchRequestConfigurat } type HypervisorPatchRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1()(V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able) - GetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2()(V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2able) GetV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1()(V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able) GetV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2()(V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2able) - SetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1(value V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able)() - SetHypervisorPatchRequestBodyV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2(value V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2able)() SetV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1(value V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember1able)() SetV1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2(value V1beta1HypervisorManagersItemHypervisorPatchRequestBodyMember2able)() } diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_items_app_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_escaped_items_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_items_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_escaped_items_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_items_app_info_vmware.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_escaped_items_escaped_app_info_escaped_vmware.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_items_app_info_vmware.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_escaped_items_escaped_app_info_escaped_vmware.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_items_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_escaped_items_escaped_hypervisor_manager_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_items_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_escaped_items_escaped_hypervisor_manager_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_items_parent_folder_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_escaped_items_escaped_parent_folder_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_items_parent_folder_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_escaped_items_escaped_parent_folder_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_items_sub_folders.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_escaped_items_escaped_sub_folders.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_items_sub_folders.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_get_response_escaped_items_escaped_sub_folders.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_app_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_app_info_vmware.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_escaped_app_info_escaped_vmware.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_app_info_vmware.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_escaped_app_info_escaped_vmware.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_escaped_hypervisor_manager_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_escaped_hypervisor_manager_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_parent_folder_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_escaped_parent_folder_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_parent_folder_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_escaped_parent_folder_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_sub_folders.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_escaped_sub_folders.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_sub_folders.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_folders_item_folder_get_response_escaped_sub_folders.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_app_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_app_info_vmware.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_escaped_app_info_escaped_vmware.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_app_info_vmware.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_escaped_app_info_escaped_vmware.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_data_orchestrator_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_escaped_data_orchestrator_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_data_orchestrator_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_escaped_data_orchestrator_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_data_services_connectors_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_escaped_data_services_connectors_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_data_services_connectors_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_get_response_escaped_data_services_connectors_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_library_images_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_library_images_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_library_images_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_library_images_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_patch_request_body_member1_credentials.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_patch_request_body_member1_escaped_credentials.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_patch_request_body_member1_credentials.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_hypervisor_patch_request_body_member1_escaped_credentials.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_items_app_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_escaped_items_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_items_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_escaped_items_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_items_app_info_vmware.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_escaped_items_escaped_app_info_escaped_vmware.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_items_app_info_vmware.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_escaped_items_escaped_app_info_escaped_vmware.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_items_cluster_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_escaped_items_escaped_cluster_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_items_cluster_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_escaped_items_escaped_cluster_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_items_hosts_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_escaped_items_escaped_hosts_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_items_hosts_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_escaped_items_escaped_hosts_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_items_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_escaped_items_escaped_hypervisor_manager_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_items_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_get_response_escaped_items_escaped_hypervisor_manager_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_app_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_app_info_vmware.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_escaped_app_info_escaped_vmware.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_app_info_vmware.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_escaped_app_info_escaped_vmware.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_cluster_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_escaped_cluster_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_cluster_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_escaped_cluster_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_hosts_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_escaped_hosts_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_hosts_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_escaped_hosts_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_escaped_hypervisor_manager_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_networks_item_network_get_response_escaped_hypervisor_manager_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_app_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_escaped_items_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_escaped_items_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_cluster_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_escaped_items_escaped_cluster_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_cluster_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_escaped_items_escaped_cluster_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_hosts_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_escaped_items_escaped_hosts_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_hosts_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_escaped_items_escaped_hosts_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_owner_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_escaped_items_escaped_owner_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_items_owner_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_get_response_escaped_items_escaped_owner_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_app_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_child_resource_pools.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_escaped_child_resource_pools.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_child_resource_pools.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_escaped_child_resource_pools.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_cluster_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_escaped_cluster_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_cluster_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_escaped_cluster_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_hosts_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_escaped_hosts_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_hosts_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_escaped_hosts_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_owner_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_escaped_owner_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_owner_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_resource_pools_item_pool_get_response_escaped_owner_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_items_associated_resources.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_escaped_items_escaped_associated_resources.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_items_associated_resources.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_escaped_items_escaped_associated_resources.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_items_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_escaped_items_escaped_hypervisor_manager_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_items_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_escaped_items_escaped_hypervisor_manager_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_items_vm_protection_groups_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_escaped_items_escaped_vm_protection_groups_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_items_vm_protection_groups_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_get_response_escaped_items_escaped_vm_protection_groups_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_item_tag_get_response_associated_resources.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_item_tag_get_response_escaped_associated_resources.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_item_tag_get_response_associated_resources.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_item_tag_get_response_escaped_associated_resources.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_item_tag_get_response_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_item_tag_get_response_escaped_hypervisor_manager_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_item_tag_get_response_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_item_tag_get_response_escaped_hypervisor_manager_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_item_tag_get_response_vm_protection_groups_info.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_item_tag_get_response_escaped_vm_protection_groups_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_item_tag_get_response_vm_protection_groups_info.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_item_tags_item_tag_get_response_escaped_vm_protection_groups_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_post_request_body_member1_credentials.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_post_request_body_member1_escaped_credentials.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_post_request_body_member1_credentials.go rename to internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_post_request_body_member1_escaped_credentials.go diff --git a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_request_builder.go b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_request_builder.go index 91800be..1fe904f 100644 --- a/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_request_builder.go +++ b/internal/sdk/virt/virtualization/v1beta1_hypervisor_managers_request_builder.go @@ -12,10 +12,6 @@ type V1beta1HypervisorManagersRequestBuilder struct { } // HypervisorManagersPostRequestBody composed type wrapper for classes V1beta1HypervisorManagersPostRequestBodyMember1able, V1beta1HypervisorManagersPostRequestBodyMember2able type HypervisorManagersPostRequestBody struct { - // Composed type representation for type V1beta1HypervisorManagersPostRequestBodyMember1able - hypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember1 V1beta1HypervisorManagersPostRequestBodyMember1able - // Composed type representation for type V1beta1HypervisorManagersPostRequestBodyMember2able - hypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember2 V1beta1HypervisorManagersPostRequestBodyMember2able // Composed type representation for type V1beta1HypervisorManagersPostRequestBodyMember1able v1beta1HypervisorManagersPostRequestBodyMember1 V1beta1HypervisorManagersPostRequestBodyMember1able // Composed type representation for type V1beta1HypervisorManagersPostRequestBodyMember2able @@ -50,18 +46,13 @@ func CreateHypervisorManagersPostRequestBodyFromDiscriminatorValue(parseNode i87 // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *HypervisorManagersPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + if m.GetV1beta1HypervisorManagersPostRequestBodyMember1() != nil { + return m.GetV1beta1HypervisorManagersPostRequestBodyMember1().GetFieldDeserializers() + } else if m.GetV1beta1HypervisorManagersPostRequestBodyMember2() != nil { + return m.GetV1beta1HypervisorManagersPostRequestBodyMember2().GetFieldDeserializers() + } return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) } -// GetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember1 gets the V1beta1HypervisorManagersPostRequestBodyMember1 property value. Composed type representation for type V1beta1HypervisorManagersPostRequestBodyMember1able -// returns a V1beta1HypervisorManagersPostRequestBodyMember1able when successful -func (m *HypervisorManagersPostRequestBody) GetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember1()(V1beta1HypervisorManagersPostRequestBodyMember1able) { - return m.hypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember1 -} -// GetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember2 gets the V1beta1HypervisorManagersPostRequestBodyMember2 property value. Composed type representation for type V1beta1HypervisorManagersPostRequestBodyMember2able -// returns a V1beta1HypervisorManagersPostRequestBodyMember2able when successful -func (m *HypervisorManagersPostRequestBody) GetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember2()(V1beta1HypervisorManagersPostRequestBodyMember2able) { - return m.hypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember2 -} // GetIsComposedType determines if the current object is a wrapper around a composed type // returns a bool when successful func (m *HypervisorManagersPostRequestBody) GetIsComposedType()(bool) { @@ -89,27 +80,9 @@ func (m *HypervisorManagersPostRequestBody) Serialize(writer i878a80d2330e89d268 if err != nil { return err } - } else if m.GetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember1() != nil { - err := writer.WriteObjectValue("", m.GetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember1()) - if err != nil { - return err - } - } else if m.GetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember2() != nil { - err := writer.WriteObjectValue("", m.GetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember2()) - if err != nil { - return err - } } return nil } -// SetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember1 sets the V1beta1HypervisorManagersPostRequestBodyMember1 property value. Composed type representation for type V1beta1HypervisorManagersPostRequestBodyMember1able -func (m *HypervisorManagersPostRequestBody) SetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember1(value V1beta1HypervisorManagersPostRequestBodyMember1able)() { - m.hypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember1 = value -} -// SetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember2 sets the V1beta1HypervisorManagersPostRequestBodyMember2 property value. Composed type representation for type V1beta1HypervisorManagersPostRequestBodyMember2able -func (m *HypervisorManagersPostRequestBody) SetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember2(value V1beta1HypervisorManagersPostRequestBodyMember2able)() { - m.hypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember2 = value -} // SetV1beta1HypervisorManagersPostRequestBodyMember1 sets the V1beta1HypervisorManagersPostRequestBodyMember1 property value. Composed type representation for type V1beta1HypervisorManagersPostRequestBodyMember1able func (m *HypervisorManagersPostRequestBody) SetV1beta1HypervisorManagersPostRequestBodyMember1(value V1beta1HypervisorManagersPostRequestBodyMember1able)() { m.v1beta1HypervisorManagersPostRequestBodyMember1 = value @@ -149,12 +122,8 @@ type V1beta1HypervisorManagersRequestBuilderPostRequestConfiguration struct { } type HypervisorManagersPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember1()(V1beta1HypervisorManagersPostRequestBodyMember1able) - GetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember2()(V1beta1HypervisorManagersPostRequestBodyMember2able) GetV1beta1HypervisorManagersPostRequestBodyMember1()(V1beta1HypervisorManagersPostRequestBodyMember1able) GetV1beta1HypervisorManagersPostRequestBodyMember2()(V1beta1HypervisorManagersPostRequestBodyMember2able) - SetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember1(value V1beta1HypervisorManagersPostRequestBodyMember1able)() - SetHypervisorManagersPostRequestBodyV1beta1HypervisorManagersPostRequestBodyMember2(value V1beta1HypervisorManagersPostRequestBodyMember2able)() SetV1beta1HypervisorManagersPostRequestBodyMember1(value V1beta1HypervisorManagersPostRequestBodyMember1able)() SetV1beta1HypervisorManagersPostRequestBodyMember2(value V1beta1HypervisorManagersPostRequestBodyMember2able)() } diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_app_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_app_info_vmware.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_app_info_escaped_vmware.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_app_info_vmware.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_app_info_escaped_vmware.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_cluster_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_cluster_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_cluster_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_cluster_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_compute_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_compute_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_compute_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_compute_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_folder_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_folder_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_folder_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_folder_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_graphics.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_graphics.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_graphics.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_graphics.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_guest_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_guest_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_guest_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_guest_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_guest_info_routes.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_guest_info_escaped_routes.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_guest_info_routes.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_guest_info_escaped_routes.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_guest_info_vm_dns_setting.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_guest_info_escaped_vm_dns_setting.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_guest_info_vm_dns_setting.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_guest_info_escaped_vm_dns_setting.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_high_availability.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_high_availability.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_high_availability.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_high_availability.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_host_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_host_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_host_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_host_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_hypervisor_manager_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_hypervisor_manager_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_network_adapters.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_network_adapters.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_network_adapters.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_network_adapters.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_network_adapters_network_details.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_network_adapters_escaped_network_details.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_network_adapters_network_details.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_network_adapters_escaped_network_details.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_protection_job_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_protection_job_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_protection_job_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_protection_job_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_protection_policy_applied_at_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_protection_policy_applied_at_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_protection_policy_applied_at_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_protection_policy_applied_at_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_storage_systems_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_storage_systems_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_storage_systems_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_storage_systems_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_ahci_controllers.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_ahci_controllers.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_ahci_controllers.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_ahci_controllers.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_disks.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_disks.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_disks.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_disks.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_disks_app_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_disks_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_disks_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_disks_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_ide_controllers.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_ide_controllers.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_ide_controllers.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_ide_controllers.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_nvme_controllers.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_nvme_controllers.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_nvme_controllers.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_nvme_controllers.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_scsi_controllers.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_scsi_controllers.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_virtual_scsi_controllers.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_virtual_scsi_controllers.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_vm_perf_metric_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_vm_perf_metric_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_vm_perf_metric_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_vm_perf_metric_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_vm_protection_groups_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_vm_protection_groups_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_vm_protection_groups_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_vm_protection_groups_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_volumes_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_volumes_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_volumes_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_volumes_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_volumes_info_storage_folder_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_volumes_info_escaped_storage_folder_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_volumes_info_storage_folder_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_volumes_info_escaped_storage_folder_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_volumes_info_storage_pool_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_volumes_info_escaped_storage_pool_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_volumes_info_storage_pool_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_volumes_info_escaped_storage_pool_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_volumes_info_storage_system_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_volumes_info_escaped_storage_system_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_volumes_info_storage_system_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_volumes_info_escaped_storage_system_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_volumes_info_volume_set_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_volumes_info_escaped_volume_set_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_items_volumes_info_volume_set_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_get_response_escaped_items_escaped_volumes_info_escaped_volume_set_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_customize_guest_os_post_request_body_cloud_init.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_customize_guest_os_post_request_body_escaped_cloud_init.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_customize_guest_os_post_request_body_cloud_init.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_customize_guest_os_post_request_body_escaped_cloud_init.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_customize_guest_os_post_request_body_linux_config.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_customize_guest_os_post_request_body_escaped_linux_config.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_customize_guest_os_post_request_body_linux_config.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_customize_guest_os_post_request_body_escaped_linux_config.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_cpu_mem_config.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_escaped_cpu_mem_config.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_cpu_mem_config.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_escaped_cpu_mem_config.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_cpu_mem_config_cpu.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_escaped_cpu_mem_config_escaped_cpu.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_cpu_mem_config_cpu.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_escaped_cpu_mem_config_escaped_cpu.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_network_adapters.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_escaped_network_adapters.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_network_adapters.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_escaped_network_adapters.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_virtual_disks.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_escaped_virtual_disks.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_virtual_disks.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_update_hardware_post_request_body_escaped_virtual_disks.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_app_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_app_info_vmware.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_app_info_escaped_vmware.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_app_info_vmware.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_app_info_escaped_vmware.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_cluster_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_cluster_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_cluster_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_cluster_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_compute_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_compute_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_compute_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_compute_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_folder_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_folder_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_folder_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_folder_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_graphics.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_graphics.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_graphics.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_graphics.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_guest_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_guest_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info_routes.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_guest_info_escaped_routes.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_guest_info_routes.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_guest_info_escaped_routes.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_high_availability.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_high_availability.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_high_availability.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_high_availability.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_host_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_host_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_host_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_host_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_hypervisor_manager_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_hypervisor_manager_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_hypervisor_manager_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_hypervisor_manager_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_network_adapters.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_network_adapters.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_network_adapters.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_network_adapters.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_protection_job_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_protection_job_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_protection_job_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_protection_job_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_storage_systems_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_storage_systems_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_storage_systems_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_storage_systems_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_ahci_controllers.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_ahci_controllers.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_ahci_controllers.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_ahci_controllers.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_disks.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_disks.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_disks.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_disks.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_disks_app_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_disks_escaped_app_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_disks_app_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_disks_escaped_app_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_ide_controllers.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_ide_controllers.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_ide_controllers.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_ide_controllers.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_nvme_controllers.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_nvme_controllers.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_nvme_controllers.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_nvme_controllers.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_scsi_controllers.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_scsi_controllers.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_virtual_scsi_controllers.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_virtual_scsi_controllers.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_vm_perf_metric_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_vm_perf_metric_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_vm_perf_metric_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_vm_perf_metric_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_vm_protection_groups_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_vm_protection_groups_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_vm_protection_groups_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_vm_protection_groups_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_volumes_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_volumes_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_volumes_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_item_virtual_machines_get_response_escaped_volumes_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_destination.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_destination.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_destination.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_destination.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_image_source.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_image_source.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_image_source.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_image_source.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_network_config.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_network_config.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_network_config.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_network_config.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_network_config_network_mapping.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_network_config_escaped_network_mapping.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_network_config_network_mapping.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_network_config_escaped_network_mapping.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_storage_config.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_storage_config.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_storage_config.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_storage_config.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_storage_config_volume_info.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_storage_config_escaped_volume_info.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_storage_config_volume_info.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_storage_config_escaped_volume_info.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_storage_config_volume_info_qos.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_storage_config_escaped_volume_info_escaped_qos.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_storage_config_volume_info_qos.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_storage_config_escaped_volume_info_escaped_qos.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_vm_config.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_vm_config.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_vm_config.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_vm_config.go diff --git a/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_vm_config_property_config.go b/internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_vm_config_escaped_property_config.go similarity index 100% rename from internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_vm_config_property_config.go rename to internal/sdk/virt/virtualization/v1beta1_virtual_machines_post_request_body_escaped_vm_config_escaped_property_config.go